speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] output_modules should be declared in a c file not a header


From: Trevor Saunders
Subject: [PATCH 1/3] output_modules should be declared in a c file not a header
Date: Thu, 18 Nov 2010 06:40:11 -0500

We move the declaration of output_modules to speechd.c and declare it
extern in speechd.h
---
 src/server/speechd.c |    3 +++
 src/server/speechd.h |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/server/speechd.c b/src/server/speechd.c
index 10cf20c..73dfec9 100644
--- a/src/server/speechd.c
+++ b/src/server/speechd.c
@@ -48,6 +48,9 @@
 
 #include <i18n.h>
 
+/* list of output modules */
+GList *output_modules;
+
 /* Manipulating pid files */
 int create_pid_file();
 void destroy_pid_file();
diff --git a/src/server/speechd.h b/src/server/speechd.h
index 929301e..1240857 100644
--- a/src/server/speechd.h
+++ b/src/server/speechd.h
@@ -187,7 +187,7 @@ key_t speaking_sem_key;
 int speaking_sem_id;
 
 /* Table of all configured (and succesfully loaded) output modules */
-GList *output_modules;
+extern GList *output_modules;
 
 /* Table of settings for each active client (=each active socket)*/
 GHashTable *fd_settings;       
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]