19 #ifndef LBM_CHANNEL_H_
20 #define LBM_CHANNEL_H_
24 #include <platform_mutex.h>
26 #define TOKENIZER_BUFFER_SIZE 257
28 #define CHANNEL_SUCCESS 1
29 #define CHANNEL_MORE 2
31 #define CHANNEL_FULL 4
33 #define CHANNEL_READER_CLOSED 1000
38 char buffer[TOKENIZER_BUFFER_SIZE];
39 unsigned int write_pos;
40 unsigned int read_pos;
45 bool mutex_initialized;
57 unsigned int read_pos;
58 unsigned int write_pos;
bool lbm_channel_comment(lbm_char_channel_t *chan)
void lbm_create_string_char_channel(lbm_string_channel_state_t *st, lbm_char_channel_t *chan, char *str)
void lbm_channel_reader_close(lbm_char_channel_t *chan)
bool lbm_channel_reader_is_closed(lbm_char_channel_t *chan)
unsigned int lbm_channel_column(lbm_char_channel_t *chan)
struct lbm_char_channel_s lbm_char_channel_t
int lbm_channel_write(lbm_char_channel_t *chan, char c)
bool lbm_channel_is_full(lbm_char_channel_t *chan)
bool lbm_channel_read(lbm_char_channel_t *chan, char *res)
bool lbm_channel_more(lbm_char_channel_t *chan)
bool lbm_channel_is_empty(lbm_char_channel_t *chan)
void lbm_channel_set_comment(lbm_char_channel_t *chan, bool comment)
void lbm_create_buffered_char_channel(lbm_buffered_channel_state_t *st, lbm_char_channel_t *chan)
bool lbm_channel_drop(lbm_char_channel_t *chan, unsigned int n)
int lbm_channel_peek(lbm_char_channel_t *chan, unsigned int n, char *res)
unsigned int lbm_channel_row(lbm_char_channel_t *chan)
void lbm_channel_writer_close(lbm_char_channel_t *chan)
Definition: lbm_channel.h:37
Definition: lbm_channel.h:68
Definition: lbm_channel.h:54