[libss7-commits] rmudgett: trunk r293 - in /trunk: ss7.c ss7_internal.h

SVN commits to the libss7 project libss7-commits at lists.digium.com
Fri Sep 16 14:18:31 CDT 2011


Author: rmudgett
Date: Fri Sep 16 14:18:29 2011
New Revision: 293

URL: http://svnview.digium.com/svn/libss7?view=rev&rev=293
Log:
Global function pointer variables need to be declared in a similar manner to other global variables.

Modified:
    trunk/ss7.c
    trunk/ss7_internal.h

Modified: trunk/ss7.c
URL: http://svnview.digium.com/svn/libss7/trunk/ss7.c?view=diff&rev=293&r1=292&r2=293
==============================================================================
--- trunk/ss7.c (original)
+++ trunk/ss7.c Fri Sep 16 14:18:29 2011
@@ -46,6 +46,9 @@
 
 static void (*__ss7_message)(struct ss7 *ss7, char *message);
 static void (*__ss7_error)(struct ss7 *ss7, char *message);
+void (*ss7_notinservice)(struct ss7 *ss7, int cic, unsigned int dpc);
+int (*ss7_hangup)(struct ss7 *ss7, int cic, unsigned int dpc, int cause, int do_hangup);
+void (*ss7_call_null)(struct ss7 *ss7, struct isup_call *c, int lock);
 
 void ss7_set_message(void (*func)(struct ss7 *ss7, char *message))
 {

Modified: trunk/ss7_internal.h
URL: http://svnview.digium.com/svn/libss7/trunk/ss7_internal.h?view=diff&rev=293&r1=292&r2=293
==============================================================================
--- trunk/ss7_internal.h (original)
+++ trunk/ss7_internal.h Fri Sep 16 14:18:29 2011
@@ -168,11 +168,9 @@
 
 void ss7_dump_msg(struct ss7 *ss7, unsigned char *buf, int len);
 
-void (*ss7_notinservice)(struct ss7 *ss7, int cic, unsigned int dpc);
-
-int (*ss7_hangup)(struct ss7 *ss7, int cic, unsigned int dpc, int cause, int do_hangup);
-
-void (*ss7_call_null)(struct ss7 *ss7, struct isup_call *c, int lock);
+extern void (*ss7_notinservice)(struct ss7 *ss7, int cic, unsigned int dpc);
+extern int (*ss7_hangup)(struct ss7 *ss7, int cic, unsigned int dpc, int cause, int do_hangup);
+extern void (*ss7_call_null)(struct ss7 *ss7, struct isup_call *c, int lock);
 
 int isup_needs_masquerade(struct ss7 *ss7, struct routing_label *rl, unsigned int cic, unsigned char *buf, int len);
 




More information about the libss7-commits mailing list