summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-08-09 18:49:52 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-08-09 18:49:52 -0700
commit32ad68a235d4ee69fae7f797c2052b7bd8b4ad1e (patch)
tree709f2b71c29d62e026f56cf68bcb37598ee918a2 /include
parent4910e36a8af3d651b15e1a46f5f03918b2389135 (diff)
downloadconnman-32ad68a235d4ee69fae7f797c2052b7bd8b4ad1e.tar.gz
connman-32ad68a235d4ee69fae7f797c2052b7bd8b4ad1e.tar.bz2
connman-32ad68a235d4ee69fae7f797c2052b7bd8b4ad1e.zip
Add skeletons for IP operation callbacks
Diffstat (limited to 'include')
-rw-r--r--include/ipconfig.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ipconfig.h b/include/ipconfig.h
index e347063a..ad7cbc68 100644
--- a/include/ipconfig.h
+++ b/include/ipconfig.h
@@ -47,10 +47,23 @@ enum connman_ipconfig_method {
struct connman_ipconfig;
+struct connman_ipconfig_ops {
+ void (*up) (struct connman_ipconfig *ipconfig);
+ void (*down) (struct connman_ipconfig *ipconfig);
+ void (*lower_up) (struct connman_ipconfig *ipconfig);
+ void (*lower_down) (struct connman_ipconfig *ipconfig);
+};
+
struct connman_ipconfig *connman_ipconfig_create(int index);
struct connman_ipconfig *connman_ipconfig_ref(struct connman_ipconfig *ipconfig);
void connman_ipconfig_unref(struct connman_ipconfig *ipconfig);
+void *connman_ipconfig_get_data(struct connman_ipconfig *ipconfig);
+void connman_ipconfig_set_data(struct connman_ipconfig *ipconfig, void *data);
+
+void connman_ipconfig_set_ops(struct connman_ipconfig *ipconfig,
+ struct connman_ipconfig_ops *ops);
+
int connman_ipconfig_set_method(struct connman_ipconfig *ipconfig,
enum connman_ipconfig_method method);