/* Global variables */
+
+#define GNOKII_DEV "/var/gnokii-dev"
+
//extern bool TerminateThread;
/* Local variables */
static bool UseSTDIO; /* Use STDIO for debugging purposes instead of pty */
bool CommandMode;
-static bool VM_ThreadLoop(void);
static GSM_Error VM_GSMInitialise(char *model, char *port, char *initlength, GSM_ConnectionType connection, char *synchronizetime);
static int VM_PtySetup(char *bindir);
static void VM_CharHandler(void);
-static bool VM_ThreadLoop(void)
+bool VM_ThreadLoop(void)
{
int res;
fd_set readfds;
#endif
#ifdef DEBUG
- fprintf (stderr, _("Slave pty is %s, calling %s to create /dev/gnokii.\n"), slave_name,
+ fprintf (stderr, _("Slave pty is %s, calling %s to create \"%s\".\n"), slave_name,
#ifndef UCLINUX
mgnokiidev
#else /* UCLINUX */
"<uClinux>"
#endif /* UCLINUX */
- );
+ ,GNOKII_DEV);
#endif /* DEBUG */
#ifndef UCLINUX
#else /* UCLINUX */
/* Remove symlink in case it already exists. Don't care if it fails. */
- unlink ("/dev/gnokii");
+ unlink (GNOKII_DEV);
/* Create symlink */
- err = symlink(slave_name, "/dev/gnokii");
+ err = symlink(slave_name, GNOKII_DEV);
#endif /* UCLINUX */