]> sigrok.org Git - libsigrokdecode.git/blobdiff - srd.c
Mark some variables more consistently as SRD_PRIV.
[libsigrokdecode.git] / srd.c
diff --git a/srd.c b/srd.c
index f5b885fecc8008ffdab72b81c92407e878a7058c..599d190081621357222d815ccf8397ac7c33e9e2 100644 (file)
--- a/srd.c
+++ b/srd.c
 SRD_PRIV GSList *searchpaths = NULL;
 
 /* session.c */
-extern GSList *sessions;
-extern int max_session_id;
-
-/* decoder.c */
-extern SRD_PRIV GSList *pd_list;
+extern SRD_PRIV GSList *sessions;
+extern SRD_PRIV int max_session_id;
 
 /** @endcond */
 
@@ -264,14 +261,4 @@ SRD_PRIV int srd_decoder_searchpath_add(const char *path)
        return SRD_OK;
 }
 
-/* @private */
-SRD_PRIV gboolean srd_check_init(void)
-{
-       if (max_session_id < 0) {
-               srd_err("Library is not initialized.");
-               return FALSE;
-       } else
-               return TRUE;
-}
-
 /** @} */