summaryrefslogtreecommitdiff
path: root/src/connman.h
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2010-02-09 10:29:49 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-02-11 05:27:57 +0100
commite61f21a9e72cf4100c7ecbd80d2a25c84a63b33a (patch)
tree23f4a4560fc1232af07d5fd16be4685e38d45ad2 /src/connman.h
parent79e2ffe2f56701d43dce0fc890c8c956336cf68f (diff)
downloadconnman-e61f21a9e72cf4100c7ecbd80d2a25c84a63b33a.tar.gz
connman-e61f21a9e72cf4100c7ecbd80d2a25c84a63b33a.tar.bz2
connman-e61f21a9e72cf4100c7ecbd80d2a25c84a63b33a.zip
Add some ipconfig helpers
__connman_ipconfig_get_method(): Returns the selected ipconfig method. __connman_ipconfig_set_address(): Sets the device's IP address according to the selected method. Only the manual method is supported. __connman_ipconfig_clear_address(): Clears the device's IP address. Again, only the manual method is supported for now.
Diffstat (limited to 'src/connman.h')
-rw-r--r--src/connman.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index 593a5178..ff38ad56 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -151,6 +151,10 @@ void __connman_ipconfig_append_proxy(struct connman_ipconfig *ipconfig,
DBusMessageIter *iter);
void __connman_ipconfig_append_ethernet(struct connman_ipconfig *ipconfig,
DBusMessageIter *iter);
+enum connman_ipconfig_method __connman_ipconfig_get_method(
+ struct connman_ipconfig *ipconfig);
+int __connman_ipconfig_set_address(struct connman_ipconfig *ipconfig);
+int __connman_ipconfig_clear_address(struct connman_ipconfig *ipconfig);
int __connman_ipconfig_load(struct connman_ipconfig *ipconfig,
GKeyFile *keyfile, const char *identifier, const char *prefix);