#include #include #include #include /* Non standard include */ #include #include __thread void ** volatile store_var = NULL; void *create_comm_channel(void) { return (void *) &store_var; } int destroy_comm_channel(void *unused) { return 0; } /* * Copy at max count received data into buf * @param buf The buffer in which received data must be copied into * @return Number of data received and copied into buf * * @warning recv_one_data should not be used in conjonction of * recv_some_data */ void *recv_one_data(struct channel *channel) { return NULL; } /* * Copy at max count received data into buf * @param buf The buffer in which received data must be copied into * @return Number of data received and copied into buf * * @warning recv_some_data should not be used in conjonction of * recv_one_data * @warning count must be a multiple of BUF_SIZE */ ssize_t recv_some_data(struct channel *channel, void **buf, size_t count) { return count; }