diff options
author | Martin Xu <martin.xu@intel.com> | 2009-11-23 15:56:56 +0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-11-23 09:19:07 +0100 |
commit | cc350edc6b66083b3f29c576b31e5a7570945080 (patch) | |
tree | 47d5a0878c762bffbba40d565bba43719865801c /include | |
parent | 66101a531e2b230d9f1c799cd816b26d53377385 (diff) | |
download | connman-cc350edc6b66083b3f29c576b31e5a7570945080.tar.gz connman-cc350edc6b66083b3f29c576b31e5a7570945080.tar.bz2 connman-cc350edc6b66083b3f29c576b31e5a7570945080.zip |
Add function connman_network_set_error
Diffstat (limited to 'include')
-rw-r--r-- | include/network.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/network.h b/include/network.h index ab3784fb..2378d306 100644 --- a/include/network.h +++ b/include/network.h @@ -53,6 +53,11 @@ enum connman_network_protocol { CONNMAN_NETWORK_PROTOCOL_PPP = 2, }; +enum connman_network_error { + CONNMAN_NETWORK_ERROR_UNKNOWN = 0, + CONNMAN_NETWORK_ERROR_ASSOCIATE_FAIL = 1, +}; + struct connman_network; struct connman_network *connman_network_create(const char *identifier, @@ -78,6 +83,8 @@ int connman_network_set_available(struct connman_network *network, connman_bool_t connman_network_get_available(struct connman_network *network); int connman_network_set_associating(struct connman_network *network, connman_bool_t associating); +void connman_network_set_error(struct connman_network *network, + enum connman_network_error error); int connman_network_set_connected(struct connman_network *network, connman_bool_t connected); connman_bool_t connman_network_get_connected(struct connman_network *network); |