]> sigrok.org Git - libsigrokdecode.git/blobdiff - srd.c
Move srd_check_init() to decoder.c and make it static.
[libsigrokdecode.git] / srd.c
diff --git a/srd.c b/srd.c
index f5b885fecc8008ffdab72b81c92407e878a7058c..61280ef41d7f4f838472aa2f9ff98ec672305520 100644 (file)
--- a/srd.c
+++ b/srd.c
@@ -32,9 +32,6 @@ SRD_PRIV GSList *searchpaths = NULL;
 extern GSList *sessions;
 extern int max_session_id;
 
-/* decoder.c */
-extern SRD_PRIV GSList *pd_list;
-
 /** @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;
-}
-
 /** @} */