spp_server.h 847 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef SPP_SERVER_H
  9. #define SPP_SERVER_H
  10. struct hs20_svc {
  11. const void *ctx;
  12. struct xml_node_ctx *xml;
  13. char *root_dir;
  14. FILE *debug_log;
  15. sqlite3 *db;
  16. const char *addr;
  17. };
  18. void debug_print(struct hs20_svc *ctx, int print, const char *fmt, ...)
  19. __attribute__ ((format (printf, 3, 4)));
  20. void debug_dump_node(struct hs20_svc *ctx, const char *title, xml_node_t *node);
  21. xml_node_t * hs20_spp_server_process(struct hs20_svc *ctx, xml_node_t *node,
  22. const char *auth_user,
  23. const char *auth_realm, int dmacc);
  24. int hs20_spp_server_init(struct hs20_svc *ctx);
  25. void hs20_spp_server_deinit(struct hs20_svc *ctx);
  26. #endif /* SPP_SERVER_H */