aboutsummaryrefslogtreecommitdiff
blob: 7f36d6a4dec2fc8dfeef212fed66989d94095bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _JH_FILTER_TYPES_H_
#define _JH_FILTER_TYPES_H_

#include <stdio.h>

#define JH_FILTER_BUFFER_SIZE 5

enum JH_filter_state
{
   JH_FILTER_IS_SENDING_DOWNSTREAM,
   JH_FILTER_IS_SENDING_UPSTREAM
};

struct JH_filter
{
   enum JH_filter_state state;
   int buffer_index;
   int prev_c;
};

#endif