summaryrefslogtreecommitdiffstats
path: root/include/dect/ss.h
blob: d16b78dd25d5171a9959976c21a0ea0b46686cbf (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
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * DECT Suplementary Services (SS) NWK <-> IWU interface
 *
 * Copyright (c) 2009-2010 Patrick McHardy <kaber@trash.net>
 */

#ifndef _LIBDECT_DECT_SS_H
#define _LIBDECT_DECT_SS_H

#include <dect/ie.h>

struct dect_mnss_param {
	struct dect_ie_collection		common;
	struct dect_ie_list			facility;
	struct dect_ie_display			*display;
	struct dect_ie_keypad			*keypad;
	struct dect_ie_feature_activate		*feature_activate;
	struct dect_ie_feature_indicate		*feature_indicate;
	struct dect_ie_escape_to_proprietary	*escape_to_proprietary;
};

struct dect_handle;
struct dect_ss_endpoint;

extern void *dect_ss_priv(struct dect_ss_endpoint *sse);
extern struct dect_ss_endpoint *dect_ss_endpoint_alloc(struct dect_handle *dh);

struct dect_ss_ops {
	size_t	priv_size;
	void	(*mnss_setup_ind)(struct dect_handle *dh, struct dect_ss_endpoint *sse,
				  struct dect_mnss_param *param);
	void	(*mnss_facility_ind)(struct dect_handle *dh, struct dect_ss_endpoint *sse,
				     struct dect_mnss_param *param);
	void	(*mnss_release_ind)(struct dect_handle *dh, struct dect_ss_endpoint *sse,
				    struct dect_mnss_param *param);
};

extern int dect_mnss_setup_req(struct dect_handle *dh, struct dect_ss_endpoint *sse,
			       const struct dect_ipui *ipui,
			       const struct dect_mnss_param *param);
extern int dect_mnss_facility_req(struct dect_handle *dh, struct dect_ss_endpoint *sse,
				  const struct dect_mnss_param *param);
extern int dect_mnss_release_req(struct dect_handle *dh, struct dect_ss_endpoint *sse,
				 const struct dect_mnss_param *param);

#endif /* _LIBDECT_DECT_SS_H */