#include "libsigrok.h"
#include "libsigrok-internal.h"
+/** @cond PRIVATE */
#define LOG_PREFIX "backend"
+/** @endcond */
-extern struct sr_session *session;
+extern struct sr_session *sr_current_session;
/**
* @mainpage libsigrok API
*
* 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.
*
*ctx = context;
context = NULL;
- session = NULL;
+ sr_current_session = NULL;
ret = SR_OK;
done: