move gammu-related code header info into separate file

This commit is contained in:
Sergey Popov 2012-03-22 17:37:01 +04:00
parent 2397a6df06
commit 92eb3d25ff
4 changed files with 12 additions and 4 deletions

View File

@ -2,6 +2,7 @@
#include <sys/msg.h>
#include "yasnd.h"
#include "yasnd-gammu.h"
#include "yasnd-log.h"
pid_t ipc_clone_pid;

View File

@ -5,6 +5,7 @@
#include <confuse.h>
#include "yasnd.h"
#include "yasnd-gammu.h"
#include "yasnd-log.h"
#include "yasnd-lpt.h"

10
yasnd-gammu.h Normal file
View File

@ -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

View File

@ -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