summaryrefslogtreecommitdiff
path: root/include/libgsmd/event.h
blob: e1338f7b34d098dc4323606db4abbb2c01fee9b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _LIBGSMD_EVENT_H
#define _LIBGSMD_EVENT_H

#include <gsmd/event.h>

/* Prototype of libgsmd callback handler function */
typedef int lgsm_evt_handler(struct lgsm_handle *lh, int evt_type, struct gsmd_evt_auxdata *aux);

/* Register an event callback handler with libgsmd */
extern int lgsm_evt_handler_register(struct lgsm_handle *lh, int evt_type,
				     lgsm_evt_handler *handler);
extern void lgsm_evt_handler_unregister(struct lgsm_handle *lh, int evt_type);

extern int lgsm_evt_init(struct lgsm_handle *lh);
extern void lgsm_evt_exit(struct lgsm_handle *lh);


#endif
personal git repositories of Harald Welte. Your mileage may vary