From: Bert Vermeulen Date: Sat, 31 May 2014 08:17:17 +0000 (+0200) Subject: session: Expose sr_session_trigger_get() as a public API call. X-Git-Tag: libsigrok-0.4.0~1292 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d292f767bd031979edbcbf54b7daa39b0aad7812;p=libsigrok.git session: Expose sr_session_trigger_get() as a public API call. --- diff --git a/libsigrok-internal.h b/libsigrok-internal.h index 6ae78561..2a142698 100644 --- a/libsigrok-internal.h +++ b/libsigrok-internal.h @@ -303,7 +303,6 @@ 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); SR_PRIV int sr_sessionfile_check(const char *filename); -SR_PRIV struct sr_trigger *sr_session_trigger_get(void); /*--- std.c -----------------------------------------------------------------*/ diff --git a/proto.h b/proto.h index e4d667ea..668192dc 100644 --- a/proto.h +++ b/proto.h @@ -80,6 +80,7 @@ SR_API const struct sr_config_info *sr_config_info_name_get(const char *optname) typedef void (*sr_datafeed_callback)(const struct sr_dev_inst *sdi, const struct sr_datafeed_packet *packet, void *cb_data); +SR_API struct sr_trigger *sr_session_trigger_get(void); /* Session setup */ SR_API int sr_session_load(const char *filename); diff --git a/session.c b/session.c index 86d641ef..ed31bbe6 100644 --- a/session.c +++ b/session.c @@ -291,7 +291,7 @@ SR_API int sr_session_datafeed_callback_add(sr_datafeed_callback cb, void *cb_da return SR_OK; } -SR_PRIV struct sr_trigger *sr_session_trigger_get(void) +SR_API struct sr_trigger *sr_session_trigger_get(void) { return session->trigger; }