X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=srd.c;h=599d190081621357222d815ccf8397ac7c33e9e2;hp=9d04a8e1d110307a221420d40a533f16ae7f83d7;hb=92682a9977259f32054e839aa4a76028fec9ecda;hpb=2060510aaafcc7eb27fac071334b4f8aa1f3cab2 diff --git a/srd.c b/srd.c index 9d04a8e..599d190 100644 --- a/srd.c +++ b/srd.c @@ -29,8 +29,8 @@ SRD_PRIV GSList *searchpaths = NULL; /* session.c */ -extern GSList *sessions; -extern int max_session_id; +extern SRD_PRIV GSList *sessions; +extern SRD_PRIV int max_session_id; /** @endcond */ @@ -261,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; -} - /** @} */