diff --git a/daemon/yasnd-ipc.c b/daemon/yasnd-ipc.c index 4cca76f..3386240 100644 --- a/daemon/yasnd-ipc.c +++ b/daemon/yasnd-ipc.c @@ -2,6 +2,7 @@ #include #include "yasnd.h" +#include "yasnd-gammu.h" #include "yasnd-log.h" pid_t ipc_clone_pid; diff --git a/daemon/yasnd.c b/daemon/yasnd.c index aa491ce..c97e140 100644 --- a/daemon/yasnd.c +++ b/daemon/yasnd.c @@ -5,6 +5,7 @@ #include #include "yasnd.h" +#include "yasnd-gammu.h" #include "yasnd-log.h" #include "yasnd-lpt.h" diff --git a/yasnd-gammu.h b/yasnd-gammu.h new file mode 100644 index 0000000..ef341c3 --- /dev/null +++ b/yasnd-gammu.h @@ -0,0 +1,10 @@ +#ifndef YASND_GAMMU_H +#define YASND_GAMMU_H + +// External functions +extern bool gammu_init(); +extern bool gammu_send_sms(const char* message); +extern bool gammu_read_sms(); +extern void gammu_free(); + +#endif diff --git a/yasnd.h b/yasnd.h index eb9980d..b6f7663 100644 --- a/yasnd.h +++ b/yasnd.h @@ -34,13 +34,9 @@ typedef struct { // External functions extern void* allocate_memory(int bytes); -extern bool gammu_init(); -extern bool gammu_send_sms(const char* message); -extern bool gammu_read_sms(); extern void ipc_init(); extern void ipc_free(); extern int send_message(int qid, mymsgbuf* qbuf); -extern void gammu_free(); // External variables extern int hosts_count; // count of hosts