diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-06-29 20:42:11 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-06-29 20:42:11 +0200 |
commit | e911899c56f2c6a7c1742ea6c72405118e7b7aaa (patch) | |
tree | dfe93714db1ff9191b1237e01187ebdd6ee349dd /include/network.h | |
parent | e7268afd947083942836cea24b52a4bdccbf5d19 (diff) | |
download | connman-e911899c56f2c6a7c1742ea6c72405118e7b7aaa.tar.gz connman-e911899c56f2c6a7c1742ea6c72405118e7b7aaa.tar.bz2 connman-e911899c56f2c6a7c1742ea6c72405118e7b7aaa.zip |
Remove the useless extern declaration for public functions
Diffstat (limited to 'include/network.h')
-rw-r--r-- | include/network.h | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/include/network.h b/include/network.h index 7710913e..8d9a2fdb 100644 --- a/include/network.h +++ b/include/network.h @@ -53,61 +53,60 @@ enum connman_network_protocol { struct connman_network; -extern struct connman_network *connman_network_create(const char *identifier, - enum connman_network_type type); -extern struct connman_network *connman_network_ref(struct connman_network *network); -extern void connman_network_unref(struct connman_network *network); +struct connman_network *connman_network_create(const char *identifier, + enum connman_network_type type); +struct connman_network *connman_network_ref(struct connman_network *network); +void connman_network_unref(struct connman_network *network); -extern enum connman_network_type connman_network_get_type(struct connman_network *network); -extern const char *connman_network_get_identifier(struct connman_network *network); +enum connman_network_type connman_network_get_type(struct connman_network *network); +const char *connman_network_get_identifier(struct connman_network *network); -extern const char *connman_network_get_path(struct connman_network *network); -extern void connman_network_set_index(struct connman_network *network, - int index); -extern int connman_network_get_index(struct connman_network *network); +const char *connman_network_get_path(struct connman_network *network); +void connman_network_set_index(struct connman_network *network, int index); +int connman_network_get_index(struct connman_network *network); -extern void connman_network_set_protocol(struct connman_network *network, +void connman_network_set_protocol(struct connman_network *network, enum connman_network_protocol protocol); -extern void connman_network_set_group(struct connman_network *network, - const char *group); +void connman_network_set_group(struct connman_network *network, + const char *group); -extern int connman_network_set_available(struct connman_network *network, +int connman_network_set_available(struct connman_network *network, connman_bool_t available); -extern connman_bool_t connman_network_get_available(struct connman_network *network); -extern int connman_network_set_associating(struct connman_network *network, +connman_bool_t connman_network_get_available(struct connman_network *network); +int connman_network_set_associating(struct connman_network *network, connman_bool_t associating); -extern int connman_network_set_connected(struct connman_network *network, +int connman_network_set_connected(struct connman_network *network, connman_bool_t connected); -extern connman_bool_t connman_network_get_connected(struct connman_network *network); +connman_bool_t connman_network_get_connected(struct connman_network *network); -extern int connman_network_set_address(struct connman_network *network, +int connman_network_set_address(struct connman_network *network, const void *address, unsigned int size); -extern int connman_network_set_name(struct connman_network *network, +int connman_network_set_name(struct connman_network *network, const char *name); -extern int connman_network_set_strength(struct connman_network *network, +int connman_network_set_strength(struct connman_network *network, connman_uint8_t strength); -extern int connman_network_set_string(struct connman_network *network, +int connman_network_set_string(struct connman_network *network, const char *key, const char *value); -extern const char *connman_network_get_string(struct connman_network *network, +const char *connman_network_get_string(struct connman_network *network, const char *key); -extern int connman_network_set_uint8(struct connman_network *network, +int connman_network_set_uint8(struct connman_network *network, const char *key, connman_uint8_t value); -extern connman_uint8_t connman_network_get_uint8(struct connman_network *network, +connman_uint8_t connman_network_get_uint8(struct connman_network *network, const char *key); -extern int connman_network_set_uint16(struct connman_network *network, +int connman_network_set_uint16(struct connman_network *network, const char *key, connman_uint16_t value); -extern connman_uint16_t connman_network_get_uint16(struct connman_network *network, +connman_uint16_t connman_network_get_uint16(struct connman_network *network, const char *key); -extern int connman_network_set_blob(struct connman_network *network, +int connman_network_set_blob(struct connman_network *network, const char *key, const void *data, unsigned int size); -extern const void *connman_network_get_blob(struct connman_network *network, +const void *connman_network_get_blob(struct connman_network *network, const char *key, unsigned int *size); -extern struct connman_device *connman_network_get_device(struct connman_network *network); +struct connman_device *connman_network_get_device(struct connman_network *network); -extern void *connman_network_get_data(struct connman_network *network); -extern void connman_network_set_data(struct connman_network *network, void *data); +void *connman_network_get_data(struct connman_network *network); +void connman_network_set_data(struct connman_network *network, void *data); struct connman_network_driver { const char *name; @@ -119,8 +118,8 @@ struct connman_network_driver { int (*disconnect) (struct connman_network *network); }; -extern int connman_network_driver_register(struct connman_network_driver *driver); -extern void connman_network_driver_unregister(struct connman_network_driver *driver); +int connman_network_driver_register(struct connman_network_driver *driver); +void connman_network_driver_unregister(struct connman_network_driver *driver); #ifdef __cplusplus } |