summaryrefslogtreecommitdiff
path: root/include/provider.h
diff options
context:
space:
mode:
authorMohamed Abbas <mabbas@linux.intel.com>2011-01-27 20:55:33 -0800
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-28 12:33:09 +0100
commit864c2f1123c8db196c7a9225ba3f5f4851ef8678 (patch)
tree99418f9471add704cad9b5bdd674f163aa6784b4 /include/provider.h
parentab4cdff6852fd5fe26ee3ad588f0200952841ffe (diff)
downloadconnman-864c2f1123c8db196c7a9225ba3f5f4851ef8678.tar.gz
connman-864c2f1123c8db196c7a9225ba3f5f4851ef8678.tar.bz2
connman-864c2f1123c8db196c7a9225ba3f5f4851ef8678.zip
provider: Report VPN error code
Diffstat (limited to 'include/provider.h')
-rw-r--r--include/provider.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/provider.h b/include/provider.h
index b46033fd..03700aa1 100644
--- a/include/provider.h
+++ b/include/provider.h
@@ -49,8 +49,10 @@ enum connman_provider_state {
};
enum connman_provider_error {
- CONNMAN_PROVIDER_ERROR_UNKNOWN = 0,
- CONNMAN_PROVIDER_ERROR_CONNECT_FAILED = 1,
+ CONNMAN_PROVIDER_ERROR_UNKNOWN = 0,
+ CONNMAN_PROVIDER_ERROR_CONNECT_FAILED = 1,
+ CONNMAN_PROVIDER_ERROR_LOGIN_FAILED = 2,
+ CONNMAN_PROVIDER_ERROR_AUTH_FAILED = 3,
};
struct connman_provider;
@@ -66,6 +68,9 @@ const char *connman_provider_get_string(struct connman_provider *provider,
int connman_provider_set_state(struct connman_provider *provider,
enum connman_provider_state state);
+int connman_provider_indicate_error(struct connman_provider *provider,
+ enum connman_provider_error error);
+
void connman_provider_set_index(struct connman_provider *provider, int index);
int connman_provider_get_index(struct connman_provider *provider);