move gammu-related code header info into separate file
This commit is contained in:
parent
2397a6df06
commit
92eb3d25ff
@ -2,6 +2,7 @@
|
|||||||
#include <sys/msg.h>
|
#include <sys/msg.h>
|
||||||
|
|
||||||
#include "yasnd.h"
|
#include "yasnd.h"
|
||||||
|
#include "yasnd-gammu.h"
|
||||||
#include "yasnd-log.h"
|
#include "yasnd-log.h"
|
||||||
|
|
||||||
pid_t ipc_clone_pid;
|
pid_t ipc_clone_pid;
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include <confuse.h>
|
#include <confuse.h>
|
||||||
|
|
||||||
#include "yasnd.h"
|
#include "yasnd.h"
|
||||||
|
#include "yasnd-gammu.h"
|
||||||
#include "yasnd-log.h"
|
#include "yasnd-log.h"
|
||||||
#include "yasnd-lpt.h"
|
#include "yasnd-lpt.h"
|
||||||
|
|
||||||
|
10
yasnd-gammu.h
Normal file
10
yasnd-gammu.h
Normal 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
|
4
yasnd.h
4
yasnd.h
@ -34,13 +34,9 @@ typedef struct {
|
|||||||
|
|
||||||
// External functions
|
// External functions
|
||||||
extern void* allocate_memory(int bytes);
|
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_init();
|
||||||
extern void ipc_free();
|
extern void ipc_free();
|
||||||
extern int send_message(int qid, mymsgbuf* qbuf);
|
extern int send_message(int qid, mymsgbuf* qbuf);
|
||||||
extern void gammu_free();
|
|
||||||
|
|
||||||
// External variables
|
// External variables
|
||||||
extern int hosts_count; // count of hosts
|
extern int hosts_count; // count of hosts
|
||||||
|
Loading…
Reference in New Issue
Block a user