From: Uwe Hermann Date: Tue, 6 Aug 2013 22:34:06 +0000 (+0200) Subject: Make sr_session_iteration() static. X-Git-Tag: libsigrok-0.2.1~4 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1861be0baf8792e48e0bc009a20074210b2c1370;p=libsigrok.git Make sr_session_iteration() static. This function is not used outside of session.c at the moment, so make it static for now. --- diff --git a/libsigrok-internal.h b/libsigrok-internal.h index 453c6583..5fc0fbfa 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -116,7 +116,6 @@ SR_PRIV int sr_source_add(int fd, int events, int timeout, /*--- session.c -------------------------------------------------------------*/ -SR_PRIV int sr_session_iteration(gboolean block); SR_PRIV int sr_session_send(const struct sr_dev_inst *sdi, const struct sr_datafeed_packet *packet); SR_PRIV int sr_session_stop_sync(void); diff --git a/session.c b/session.c index 514b620a..15be92c8 100644 --- a/session.c +++ b/session.c @@ -248,7 +248,7 @@ SR_API int sr_session_datafeed_callback_add(sr_datafeed_callback_t cb, void *cb_ * * @return SR_OK upon success, SR_ERR on errors. */ -SR_PRIV int sr_session_iteration(gboolean block) +static int sr_session_iteration(gboolean block) { unsigned int i; int ret;