gprs-provision.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. *
  3. * oFono - Open Telephony stack for Linux
  4. *
  5. * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  19. *
  20. */
  21. #ifndef __OFONO_GPRS_PROVISION_H
  22. #define __OFONO_GPRS_PROVISION_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. #include "gprs-context.h"
  27. struct ofono_gprs_provision_data {
  28. enum ofono_gprs_context_type type;
  29. enum ofono_gprs_proto proto;
  30. char *name;
  31. char *apn;
  32. char *username;
  33. char *password;
  34. enum ofono_gprs_auth_method auth_method;
  35. char *message_proxy;
  36. char *message_center;
  37. };
  38. struct ofono_gprs_provision_driver {
  39. const char *name;
  40. int priority;
  41. int (*get_settings)(const char *mcc, const char *mnc, const char *spn,
  42. struct ofono_gprs_provision_data **settings,
  43. int *count);
  44. };
  45. int ofono_gprs_provision_driver_register(
  46. const struct ofono_gprs_provision_driver *driver);
  47. void ofono_gprs_provision_driver_unregister(
  48. const struct ofono_gprs_provision_driver *driver);
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif /* __OFONO_GPRS_PROVISION_H */