diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-08-09 18:49:52 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-09 18:49:52 -0700 |
commit | 32ad68a235d4ee69fae7f797c2052b7bd8b4ad1e (patch) | |
tree | 709f2b71c29d62e026f56cf68bcb37598ee918a2 /src | |
parent | 4910e36a8af3d651b15e1a46f5f03918b2389135 (diff) | |
download | connman-32ad68a235d4ee69fae7f797c2052b7bd8b4ad1e.tar.gz connman-32ad68a235d4ee69fae7f797c2052b7bd8b4ad1e.tar.bz2 connman-32ad68a235d4ee69fae7f797c2052b7bd8b4ad1e.zip |
Add skeletons for IP operation callbacks
Diffstat (limited to 'src')
-rw-r--r-- | src/ipconfig.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c index 013a14f0..2fd35596 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -44,6 +44,10 @@ struct connman_ipconfig { char *interface; unsigned short type; unsigned int flags; + + struct connman_ipconfig_ops *ops; + void *ops_data; + enum connman_ipconfig_method method; GSList *address_list; char *gateway; @@ -146,6 +150,42 @@ void connman_ipconfig_unref(struct connman_ipconfig *ipconfig) } /** + * connman_ipconfig_get_data: + * @ipconfig: ipconfig structure + * + * Get private data pointer + */ +void *connman_ipconfig_get_data(struct connman_ipconfig *ipconfig) +{ + return ipconfig->ops_data; +} + +/** + * connman_ipconfig_set_data: + * @ipconfig: ipconfig structure + * @data: data pointer + * + * Set private data pointer + */ +void connman_ipconfig_set_data(struct connman_ipconfig *ipconfig, void *data) +{ + ipconfig->ops_data = data; +} + +/** + * connman_ipconfig_set_ops: + * @ipconfig: ipconfig structure + * @ops: operation callbacks + * + * Set the operation callbacks + */ +void connman_ipconfig_set_ops(struct connman_ipconfig *ipconfig, + struct connman_ipconfig_ops *ops) +{ + ipconfig->ops = ops; +} + +/** * connman_ipconfig_set_method: * @ipconfig: ipconfig structure * @method: configuration method |