From: Uwe Hermann Date: Sun, 4 May 2014 19:00:24 +0000 (+0200) Subject: Mark some variables more consistently as SRD_PRIV. X-Git-Tag: libsigrokdecode-0.3.0~10 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=23a29d24b01a68acb11be55abfcbe8d3fb0cdeb2 Mark some variables more consistently as SRD_PRIV. --- diff --git a/decoder.c b/decoder.c index a44a86a..ff6e7ac 100644 --- a/decoder.c +++ b/decoder.c @@ -43,11 +43,11 @@ static GSList *pd_list = NULL; /* srd.c */ -extern GSList *searchpaths; +extern SRD_PRIV GSList *searchpaths; /* session.c */ -extern GSList *sessions; -extern int max_session_id; +extern SRD_PRIV GSList *sessions; +extern SRD_PRIV int max_session_id; /* module_sigrokdecode.c */ extern SRD_PRIV PyObject *mod_sigrokdecode; diff --git a/instance.c b/instance.c index 5f48b71..8a5ddef 100644 --- a/instance.c +++ b/instance.c @@ -28,7 +28,7 @@ /** @cond PRIVATE */ -extern GSList *sessions; +extern SRD_PRIV GSList *sessions; /* type_logic.c */ extern SRD_PRIV PyTypeObject srd_logic_type; diff --git a/session.c b/session.c index 2ab7462..24846c5 100644 --- a/session.c +++ b/session.c @@ -41,7 +41,7 @@ /** @cond PRIVATE */ SRD_PRIV GSList *sessions = NULL; -int max_session_id = -1; +SRD_PRIV int max_session_id = -1; /** @endcond */ diff --git a/srd.c b/srd.c index 61280ef..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 */