sr: Make wrappers honor return values.
This commit is contained in:
parent
0fc12d66f1
commit
69cfcfc8f0
10
hwdriver.c
10
hwdriver.c
|
@ -307,15 +307,15 @@ SR_API struct sr_hwcap_option *sr_hw_hwcap_get(int hwcap)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* unnecessary level of indirection follows. */
|
/* Unnecessary level of indirection follows. */
|
||||||
|
|
||||||
SR_PRIV void sr_source_remove(int fd)
|
SR_PRIV int sr_source_remove(int fd)
|
||||||
{
|
{
|
||||||
sr_session_source_remove(fd);
|
return sr_session_source_remove(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
SR_PRIV void sr_source_add(int fd, int events, int timeout,
|
SR_PRIV int sr_source_add(int fd, int events, int timeout,
|
||||||
sr_receive_data_callback_t cb, void *cb_data)
|
sr_receive_data_callback_t cb, void *cb_data)
|
||||||
{
|
{
|
||||||
sr_session_source_add(fd, events, timeout, cb, cb_data);
|
return sr_session_source_add(fd, events, timeout, cb, cb_data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,8 +91,8 @@ SR_PRIV struct sr_dev_inst *sr_dev_inst_new(int index, int status,
|
||||||
SR_PRIV struct sr_dev_inst *sr_dev_inst_get(GSList *dev_insts, int dev_index);
|
SR_PRIV struct sr_dev_inst *sr_dev_inst_get(GSList *dev_insts, int dev_index);
|
||||||
SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi);
|
SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi);
|
||||||
|
|
||||||
SR_PRIV void sr_source_remove(int fd);
|
SR_PRIV int sr_source_remove(int fd);
|
||||||
SR_PRIV void sr_source_add(int fd, int events, int timeout,
|
SR_PRIV int sr_source_add(int fd, int events, int timeout,
|
||||||
sr_receive_data_callback_t cb, void *cb_data);
|
sr_receive_data_callback_t cb, void *cb_data);
|
||||||
|
|
||||||
/*--- hardware/common/serial.c ----------------------------------------------*/
|
/*--- hardware/common/serial.c ----------------------------------------------*/
|
||||||
|
|
Loading…
Reference in New Issue