#define INPUT_MAX_DATA 10*1024 typedef char input1_t; input1_t input_data0[INPUT_MAX_DATA]; input1_t input_data1[INPUT_MAX_DATA]; int process_input(int len); int process_control(int len); /** configure input interfaces */ struct utils_itf input_itfs[3] = { {"input0", sizeof(input1_t), INPUT_MAX_DATA, input_data0, NULL, process_input}, {"input1", sizeof(input1_t), INPUT_MAX_DATA, input_data1, NULL, process_input}, {NULL, 0, 0, 0, 0, 0}}; /** =============== End ================ */