diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-14 10:17:25 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-14 10:17:25 +0100 |
commit | cd9be57acfb10f8df742cc73f7da164eef2bd028 (patch) | |
tree | f1c9f02fb69ea96728a2d857b9c822bf0fe3d776 /include/provider.h | |
parent | a70b4abc989121e287a16bb26b2f17c6f2b6e47e (diff) | |
download | connman-cd9be57acfb10f8df742cc73f7da164eef2bd028.tar.gz connman-cd9be57acfb10f8df742cc73f7da164eef2bd028.tar.bz2 connman-cd9be57acfb10f8df742cc73f7da164eef2bd028.zip |
Add list of different provider types
Diffstat (limited to 'include/provider.h')
-rw-r--r-- | include/provider.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/provider.h b/include/provider.h index 81f7a19c..154565cf 100644 --- a/include/provider.h +++ b/include/provider.h @@ -34,6 +34,11 @@ extern "C" { * @short_description: Functions for handling providers */ +enum connman_provider_type { + CONNMAN_PROVIDER_TYPE_UNKNOWN = 0, + CONNMAN_PROVIDER_TYPE_VPN = 1, +}; + enum connman_provider_state { CONNMAN_PROVIDER_STATE_UNKNOWN = 0, CONNMAN_PROVIDER_STATE_IDLE = 1, @@ -48,7 +53,6 @@ enum connman_provider_error { CONNMAN_PROVIDER_ERROR_CONNECT_FAILED = 1, }; - struct connman_provider; struct connman_provider *connman_provider_ref(struct connman_provider *provider); @@ -79,9 +83,9 @@ void connman_provider_set_dns(struct connman_provider *provider, void connman_provider_set_domain(struct connman_provider *provider, const char *domain); - struct connman_provider_driver { const char *name; + enum connman_provider_type type; int (*probe) (struct connman_provider *provider); int (*remove) (struct connman_provider *provider); int (*connect) (struct connman_provider *provider); |