]> sigrok.org Git - libsigrokdecode.git/commitdiff
Mark some variables more consistently as SRD_PRIV.
authorUwe Hermann <redacted>
Sun, 4 May 2014 19:00:24 +0000 (21:00 +0200)
committerUwe Hermann <redacted>
Sun, 4 May 2014 19:00:24 +0000 (21:00 +0200)
decoder.c
instance.c
session.c
srd.c

index a44a86a094ddfc6fa8b615aa3724e3b404e1bd13..ff6e7ac2746917476593c883c5b62b3473f23739 100644 (file)
--- a/decoder.c
+++ b/decoder.c
 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;
index 5f48b717a941090418d8e37a7bb704ec8b3e4bf9..8a5ddef044b9c10823c549b8551c1fa633a6c05f 100644 (file)
@@ -28,7 +28,7 @@
 
 /** @cond PRIVATE */
 
-extern GSList *sessions;
+extern SRD_PRIV GSList *sessions;
 
 /* type_logic.c */
 extern SRD_PRIV PyTypeObject srd_logic_type;
index 2ab7462ce7c01d31b126bb8cbc9b2248d03b5361..24846c5e7c48522bbfa8d1ecb9dd6f2c9f0a3af9 100644 (file)
--- 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 61280ef41d7f4f838472aa2f9ff98ec672305520..599d190081621357222d815ccf8397ac7c33e9e2 100644 (file)
--- 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 */