/** The module receives a bitstream packed in bytres */ #define INPUT_MAX_DATA (100*1024) /*Max buffer size for data symbols*/ char input_data[INPUT_MAX_DATA]; /*DATA BUFFER*/ int process_input(int); int process_control(int); struct cconv_h control_cconv; /*CONTROL BUFFER*/ /** configure input interfaces */ /*Better define first control flow: Flows processed according definition position*/ struct utils_itf input_itfs[] = { {"control", sizeof(struct cconv_h), 1, &control_cconv, NULL, process_control, }, { "input", sizeof(char), INPUT_MAX_DATA, input_data, NULL, process_input, }, {NULL, 0, 0, 0, 0, 0}}; /** =============== End ================ */