]> sigrok.org Git - libsigrok.git/commitdiff
session: Expose sr_session_trigger_get() as a public API call.
authorBert Vermeulen <redacted>
Sat, 31 May 2014 08:17:17 +0000 (10:17 +0200)
committerBert Vermeulen <redacted>
Sat, 31 May 2014 08:34:39 +0000 (10:34 +0200)
libsigrok-internal.h
proto.h
session.c

index 6ae785617146036e4e9069ddfb4df5d8b82cc769..2a1426987bc5f55499aaf65157f601dd138622ae 100644 (file)
@@ -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 e4d667eae806cd723b5636bcad41d8053e6c2bb0..668192dcf64f5b8bfc3ef276aa1c42e9e60a1383 100644 (file)
--- 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);
index 86d641efee9a8b92431b580e505d08aecd583662..ed31bbe62ec70e9bc7eee9d6b35a7dff5731a2f6 100644 (file)
--- 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;
 }