blob: 3556f5c9da13dd7335c0667979fe7ac3550c8d64 [file] [log] [blame]
Dmitry Shmidtdf5a7e42014-04-02 12:59:59 -07001/*
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;
Hai Shalom39ba6fc2019-01-22 12:40:38 -080019 const char *test;
Dmitry Shmidtdf5a7e42014-04-02 12:59:59 -070020};
21
22
23void debug_print(struct hs20_svc *ctx, int print, const char *fmt, ...)
24 __attribute__ ((format (printf, 3, 4)));
25void debug_dump_node(struct hs20_svc *ctx, const char *title, xml_node_t *node);
26
27xml_node_t * hs20_spp_server_process(struct hs20_svc *ctx, xml_node_t *node,
28 const char *auth_user,
29 const char *auth_realm, int dmacc);
30int hs20_spp_server_init(struct hs20_svc *ctx);
31void hs20_spp_server_deinit(struct hs20_svc *ctx);
32
33#endif /* SPP_SERVER_H */