blob: 76c08b456e11c07436cb5054a4cdad88799ffceb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef _LGSM_INTERNALS_H
#define _LGSM_INTERNALS_H
#include <gsmd/usock.h>
#include <libgsmd/misc.h>
struct lgsm_handle {
int fd;
lgsm_msg_handler *handler[__NUM_GSMD_MSGS];
enum lgsm_netreg_state netreg_state;
/* any data set by the user */
void *user_data;
};
int lgsm_send(struct lgsm_handle *lh, struct gsmd_msg_hdr *gmh);
int lgsm_send_simple(struct lgsm_handle *lh, int type, int sub_type);
struct gsmd_msg_hdr *lgsm_gmh_fill(int type, int subtype, int payload_len);
#define lgsm_gmh_free(x) free(x)
#endif /* _LGSM_INTERNALS_H */
|