X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=backend.c;h=f650fe1206edb36bcf0eb0b023b036c84b0902ab;hb=c26162ffe0d08ba6b40125bd581046a7b16dfcbe;hp=2f51eedd02a595c6be9039470a1151d1890ae7f3;hpb=2ad1deb89d9f459752687a03c3d0539d122ea354;p=libsigrok.git diff --git a/backend.c b/backend.c index 2f51eedd..f650fe12 100644 --- a/backend.c +++ b/backend.c @@ -27,8 +27,6 @@ #define LOG_PREFIX "backend" /** @endcond */ -extern struct sr_session *session; - /** * @mainpage libsigrok API * @@ -81,7 +79,8 @@ extern struct sr_session *session; * * Initializing and shutting down libsigrok. * - * Before using any of the libsigrok functionality, sr_init() must + * Before using any of the libsigrok functionality (except + * sr_log_loglevel_set() and sr_log_opts_set()), sr_init() must * be called to initialize the library, which will return a struct sr_context * when the initialization was successful. * @@ -359,7 +358,6 @@ SR_API int sr_init(struct sr_context **ctx) *ctx = context; context = NULL; - session = NULL; ret = SR_OK; done: