diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-05 00:00:55 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-05 00:00:55 +0100 |
commit | a2a0ab77eb03a56044c13ca5886065d092364481 (patch) | |
tree | 0354356e2b7ee5010bd293cb6ab4132c4c5ec6f2 /include | |
parent | 79b06da8b3eb03ed8da7f9a3a3ea11822c75fa1d (diff) | |
download | connman-a2a0ab77eb03a56044c13ca5886065d092364481.tar.gz connman-a2a0ab77eb03a56044c13ca5886065d092364481.tar.bz2 connman-a2a0ab77eb03a56044c13ca5886065d092364481.zip |
Add functions for setting network properties
Diffstat (limited to 'include')
-rw-r--r-- | include/network.h | 7 | ||||
-rw-r--r-- | include/types.h | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/network.h b/include/network.h index 61faf473..7249264d 100644 --- a/include/network.h +++ b/include/network.h @@ -72,6 +72,13 @@ extern void connman_network_set_protocol(struct connman_network *network, extern int connman_network_set_connected(struct connman_network *network, connman_bool_t connected); +extern int connman_network_set_string(struct connman_network *network, + const char *key, const char *value); +extern int connman_network_set_uint8(struct connman_network *network, + const char *key, connman_uint8_t value); +extern int connman_network_set_blob(struct connman_network *network, + const char *key, const void *data, unsigned int size); + extern struct connman_device *connman_network_get_device(struct connman_network *network); extern void *connman_network_get_data(struct connman_network *network); diff --git a/include/types.h b/include/types.h index 648fee1e..af2a81bc 100644 --- a/include/types.h +++ b/include/types.h @@ -34,7 +34,8 @@ extern "C" { #define TRUE (!FALSE) #endif -typedef int connman_bool_t; +typedef int connman_bool_t; +typedef unsigned char connman_uint8_t; #ifdef __cplusplus } |