]> git.ipfire.org Git - thirdparty/hostap.git/blame - hs20/server/spp_server.h
tests: Add basic power saving tests for ap_open
[thirdparty/hostap.git] / hs20 / server / spp_server.h
CommitLineData
0f27c20d
JM
1/*
2 * Hotspot 2.0 SPP server
3 * Copyright (c) 2012-2013, Qualcomm Atheros, Inc.
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#ifndef SPP_SERVER_H
10#define SPP_SERVER_H
11
12struct hs20_svc {
13 const void *ctx;
14 struct xml_node_ctx *xml;
15 char *root_dir;
16 FILE *debug_log;
17 sqlite3 *db;
18 const char *addr;
a9574f0f 19 const char *test;
89ae3583
JM
20 const char *imsi;
21 const char *eap_method;
22 const char *id_hash;
0f27c20d
JM
23};
24
25
26void debug_print(struct hs20_svc *ctx, int print, const char *fmt, ...)
27 __attribute__ ((format (printf, 3, 4)));
28void debug_dump_node(struct hs20_svc *ctx, const char *title, xml_node_t *node);
29
30xml_node_t * hs20_spp_server_process(struct hs20_svc *ctx, xml_node_t *node,
31 const char *auth_user,
32 const char *auth_realm, int dmacc);
33int hs20_spp_server_init(struct hs20_svc *ctx);
34void hs20_spp_server_deinit(struct hs20_svc *ctx);
35
36#endif /* SPP_SERVER_H */