The function srd_check_init() is only used in decoder.c.
/* session.c */
extern GSList *sessions;
+extern int max_session_id;
/* module_sigrokdecode.c */
extern SRD_PRIV PyObject *mod_sigrokdecode;
/** @endcond */
+static gboolean srd_check_init(void)
+{
+ if (max_session_id < 0) {
+ srd_err("Library is not initialized.");
+ return FALSE;
+ } else
+ return TRUE;
+}
+
/**
* Returns the list of supported/loaded protocol decoders.
*
/* srd.c */
SRD_PRIV int srd_decoder_searchpath_add(const char *path);
-SRD_PRIV gboolean srd_check_init(void);
/* session.c */
SRD_PRIV int session_is_valid(struct srd_session *sess);
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;
-}
-
/** @} */