Found in "gnokii-working" directory, some November-patches version
[gnokii.git] / common / links / fbus-phonet.c
index 328fd09..d2f0b8b 100644 (file)
@@ -17,8 +17,8 @@
   The various routines are called PHONET_(whatever).
 
   $Log$
-  Revision 1.1.1.1  2001/11/25 21:59:09  short
-  :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
+  Revision 1.1.1.2  2002/04/03 00:08:07  short
+  Found in "gnokii-working" directory, some November-patches version
 
   Revision 1.8  2001/08/20 23:27:37  pkot
   Add hardware shakehand to the link layer (Manfred Jonsson)
@@ -80,9 +80,9 @@
 
 /* Some globals */
 
-GSM_Link *glink;
-GSM_Statemachine *statemachine;
-PHONET_IncomingMessage imessage;
+static GSM_Link *glink;
+static GSM_Statemachine *PHONET_statemachine;
+static PHONET_IncomingMessage imessage;
 
 
 /*--------------------------------------------*/
@@ -186,7 +186,7 @@ void PHONET_RX_StateMachine(unsigned char rx_byte) {
                /* Is that it? */
 
                if (i->BufferCount == i->MessageLength) {
-                       SM_IncomingFunction(statemachine, i->MessageType, i->MessageBuffer, i->MessageLength);
+                       SM_IncomingFunction(PHONET_statemachine, i->MessageType, i->MessageBuffer, i->MessageLength);
                        i->state = FBUS_RX_Sync;
                }
                break;
@@ -288,7 +288,7 @@ GSM_Error PHONET_Initialise(GSM_Link *newlink, GSM_Statemachine *state)
        
        /* 'Copy in' the global structures */
        glink = newlink;
-       statemachine = state;
+       PHONET_statemachine = state;
        
        /* Fill in the link functions */
        glink->Loop = &PHONET_Loop;