summaryrefslogtreecommitdiff
path: root/src/libgsmd/lgsm_internals.h
blob: c826723c3cce02e8c8d1f4cab64b6d0b340e562e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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;
};

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 */
personal git repositories of Harald Welte. Your mileage may vary