Add sr_ prefix to receive_data_callback typedef.
Also, drop obsolete add_source() prototype from sigrok-cli.h.
This commit is contained in:
parent
13b0573369
commit
a887e3da97
|
@ -236,7 +236,7 @@ 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)
|
||||
{
|
||||
sr_session_source_add(fd, events, timeout, rcv_cb, user_data);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ struct source {
|
|||
int fd;
|
||||
int events;
|
||||
int timeout;
|
||||
receive_data_callback cb;
|
||||
sr_receive_data_callback cb;
|
||||
void *user_data;
|
||||
};
|
||||
|
||||
|
@ -223,7 +223,7 @@ void sr_session_bus(struct sr_device *device, struct sr_datafeed_packet *packet)
|
|||
}
|
||||
|
||||
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;
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ int sr_find_hwcap(int *capabilities, int hwcap);
|
|||
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 -------------------------------------------------------------*/
|
||||
|
||||
|
@ -118,7 +118,7 @@ void sr_session_bus(struct sr_device *device,
|
|||
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 ---------------------------------------------------------*/
|
||||
|
|
4
sigrok.h
4
sigrok.h
|
@ -74,7 +74,7 @@ extern "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 {
|
||||
|
@ -345,7 +345,7 @@ struct sr_session {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue