summaryrefslogtreecommitdiff
path: root/src/gsmd/vendorplugin.h
blob: 62546bad6ff4df7e95a19b6e797b790fa516b5bb (plain)
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
#ifndef __GSMD_VENDORPLUG_H
#define __GSMD_VENDORPLUG_H

#ifdef __GSMD__

#include "gsmd.h"

/* gsmd vendor-specific plugin */

enum gsmd_options {
	GSMD_OPT_NONE,
	GSMD_OPT_CIPHER_IND,
};

/* CIPHER_IND */
enum gsmd_cipher_ind {
	GSMD_CIPHER_IND_OFF,
	GSMD_CIPHER_IND_ON,
	GSMD_CIPHER_IND_SIM_FORBID,
};

struct gsmd_vendorspecific {
	/* callback function to parse unknown unsolicited responses */	
	int (*parse_unsolicit)(void);
	int (*getopt)(struct gsmd *gh, int optname, void *optval, int *optlen);
	int (*setopt)(struct gsmd *gh, int optname, const void *optval, int optlen);
};

/* ciphering indications */

#endif /* __GSMD__ */

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