diff options
Diffstat (limited to 'include/ipconfig.h')
-rw-r--r-- | include/ipconfig.h | 13 |
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); |