X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=backend.c;h=0d1b47263f66ba14eb5eff371a1d7773ee9d0eca;hb=refs%2Fheads%2Flibsigrok-0.2.x;hp=ca1460f8e29e1ac0a7878c2753e4184097020206;hpb=17f63de642c3cb613f91eabd2e19ebed6785f755;p=libsigrok.git diff --git a/backend.c b/backend.c index ca1460f8..0d1b4726 100644 --- a/backend.c +++ b/backend.c @@ -23,6 +23,8 @@ #include "libsigrok.h" #include "libsigrok-internal.h" +extern struct sr_session *session; + /** * @mainpage libsigrok API * @@ -320,7 +322,7 @@ static int sanity_check_all_output_modules(void) * the context will be free'd by sr_exit() as part of the libsigrok * shutdown. * - * @since 0.1.0 (but the API changed in 0.2.0) + * @since 0.2.0 */ SR_API int sr_init(struct sr_context **ctx) { @@ -366,6 +368,7 @@ SR_API int sr_init(struct sr_context **ctx) *ctx = context; context = NULL; + session = NULL; ret = SR_OK; done: @@ -381,7 +384,7 @@ done: * * @return SR_OK upon success, a (negative) error code otherwise. * - * @since 0.1.0 (but the API changed in 0.2.0) + * @since 0.2.0 */ SR_API int sr_exit(struct sr_context *ctx) {