Also, drop obsolete add_source() prototype from sigrok-cli.h.
}
void sr_source_add(int fd, int events, int timeout,
- receive_data_callback rcv_cb, void *user_data)
+ sr_receive_data_callback rcv_cb, void *user_data)
{
sr_session_source_add(fd, events, timeout, rcv_cb, user_data);
}
int fd;
int events;
int timeout;
- receive_data_callback cb;
+ sr_receive_data_callback cb;
void *user_data;
};
}
void sr_session_source_add(int fd, int events, int timeout,
- receive_data_callback callback, void *user_data)
+ sr_receive_data_callback callback, void *user_data)
{
struct source *new_sources, *s;
struct sr_hwcap_option *sr_find_hwcap_option(int hwcap);
void sr_source_remove(int fd);
void sr_source_add(int fd, int events, int timeout,
- receive_data_callback rcv_cb, void *user_data);
+ sr_receive_data_callback rcv_cb, void *user_data);
/*--- session.c -------------------------------------------------------------*/
struct sr_datafeed_packet *packet);
int sr_session_save(const char *filename);
void sr_session_source_add(int fd, int events, int timeout,
- receive_data_callback callback, void *user_data);
+ sr_receive_data_callback callback, void *user_data);
void sr_session_source_remove(int fd);
/*--- input/input.c ---------------------------------------------------------*/
#define ARRAY_AND_SIZE(a) (a), ARRAY_SIZE(a)
#endif
-typedef int (*receive_data_callback) (int fd, int revents, void *user_data);
+typedef int (*sr_receive_data_callback) (int fd, int revents, void *user_data);
/* Data types used by hardware plugins for set_configuration() */
enum {
GSList *devices;
/* List of struct analyzer* */
GSList *analyzers;
- /* list of receive_data_callback */
+ /* list of sr_receive_data_callback */
GSList *datafeed_callbacks;
GTimeVal starttime;
gboolean running;