forked from IchthysMaranatha/asterisk-chan-quectel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
manager.h
42 lines (32 loc) · 1.98 KB
/
manager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
Copyright (C) 2010 bg <[email protected]>
*/
#ifndef CHAN_QUECTEL_MANAGER_H_INCLUDED
#define CHAN_QUECTEL_MANAGER_H_INCLUDED
#ifdef BUILD_MANAGER
#include "export.h" /* EXPORT_DECL EXPORT_DEF */
EXPORT_DECL void manager_register();
EXPORT_DECL void manager_unregister();
EXPORT_DECL void manager_event_message(const char * event, const char * devname, const char * message);
EXPORT_DECL void manager_event_message_raw(const char * event, const char * devname, const char * message);
EXPORT_DECL void manager_event_new_ussd(const char * devname, char * message);
EXPORT_DECL void manager_event_new_sms(const char * devname, char * number, char * message);
EXPORT_DECL void manager_event_new_sms_base64 (const char * devname, char * number, char * message_base64);
EXPORT_DECL void manager_event_cend(const char * devname, int call_index, int duration, int end_status, int cc_cause);
EXPORT_DECL void manager_event_call_state_change(const char * devname, int call_index, const char * newstate);
EXPORT_DECL void manager_event_device_status(const char * devname, const char * newstatus);
EXPORT_DECL void manager_event_report(const char * devname, const char *payload, size_t payload_len, const char *scts, const char *dt, int success, int type, const char *report_str);
#else /* BUILD_MANAGER */
#define manager_register()
#define manager_unregister()
#define manager_event_message(event, devname, message)
#define manager_event_message_raw(event, devname, message)
#define manager_event_new_ussd(devname, message)
#define manager_event_new_sms(devname, number, message)
#define manager_event_new_sms_base64(devname, number, message_base64)
#define manager_event_cend(devname, call_index, duration, end_status, cc_cause)
#define manager_event_call_state_change(devname, call_index, newstate)
#define manager_event_device_status(devname, newstatus)
#define manager_event_report(devname, payload, payload_len, scts, dt, success, type, report_str)
#endif /* BUILD_MANAGER */
#endif /* CHAN_QUECTEL_MANAGER_H_INCLUDED */