Commit b20a390c authored by Arnaud Blanchard's avatar Arnaud Blanchard

Text function return the size of the writing

parent 5ea7e619
......@@ -80,9 +80,9 @@ typedef struct blc_channel
int fscan_info(FILE *file, int scan_id);
/**Write the properties of the blc_channel on the buffer*/
void sprint_info(char *buffer, size_t buffer_size);
int sprint_info(char *buffer, size_t buffer_size);
/**Write the properties of the blc_channel in the file. **print_id** is a flag in order to require to print or not the blc_channel id*/
void fprint_info(FILE *file, int print_id);
int fprint_info(FILE *file, int print_id);
/**Create a new blc_channel with the list of dims described as va_args*/
void vcreate(char const *name, int mode, uint32_t type, uint32_t format, int dims_nb, size_t length0, va_list arguments);
/**Create a new blc_channel with the list of dims described as va_args*/
......@@ -121,6 +121,7 @@ typedef struct blc_channel
/**Post acknoledged data the semaphore exist (otherwise return -1). Return 1, if the data has been used ( sem_new_data busy which is normal ), 0 otherwise ( which means nobody is checking that).*/
int post_ack_data();
blc_array array;// Not beautiful but makes it easy to convert C++ heritage of "class" in C struct inclusion.
......@@ -169,8 +170,6 @@ typedef struct blc_channel
void blc_channel_check_for_event(void (*callback)(void*user_data), void *user_data);
void blc_channel_destroy(blc_channel *channel);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment