]> sigrok.org Git - libsigrok.git/blobdiff - src/libsigrok-internal.h
Store a context pointer in struct sr_session.
[libsigrok.git] / src / libsigrok-internal.h
index a12b8d535d33633c26023a6471eb988e7e396d29..e0c700e346785855469598f5eabe31b009407d9c 100644 (file)
@@ -663,6 +663,8 @@ SR_PRIV int sr_source_add_channel(GIOChannel *channel, int events, int timeout,
 /*--- session.c -------------------------------------------------------------*/
 
 struct sr_session {
+       /** Context this session exists in. */
+       struct sr_context *ctx;
        /** List of struct sr_dev_inst pointers. */
        GSList *devs;
        /** List of struct sr_dev_inst pointers owned by this session. */