| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * | 2  * | 
| 3  *  Connection Manager | 3  *  Connection Manager | 
| 4  * | 4  * | 
| 5  *  Copyright (C) 2007-2009  Intel Corporation. All rights reserved. | 5  *  Copyright (C) 2007-2009  Intel Corporation. All rights reserved. | 
| 6  * | 6  * | 
| 7  *  This program is free software; you can redistribute it and/or modify | 7  *  This program is free software; you can redistribute it and/or modify | 
| 8  *  it under the terms of the GNU General Public License version 2 as | 8  *  it under the terms of the GNU General Public License version 2 as | 
| 9  *  published by the Free Software Foundation. | 9  *  published by the Free Software Foundation. | 
| 10  * | 10  * | 
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 166 int __connman_resolver_init(void); | 166 int __connman_resolver_init(void); | 
| 167 void __connman_resolver_cleanup(void); | 167 void __connman_resolver_cleanup(void); | 
| 168 | 168 | 
| 169 int __connman_resolver_selftest(void); | 169 int __connman_resolver_selftest(void); | 
| 170 | 170 | 
| 171 #include <connman/crypto.h> | 171 #include <connman/crypto.h> | 
| 172 | 172 | 
| 173 int __connman_crypto_init(void); | 173 int __connman_crypto_init(void); | 
| 174 void __connman_crypto_cleanup(void); | 174 void __connman_crypto_cleanup(void); | 
| 175 | 175 | 
| 176 char *__connman_crypto_encrypt_keyvalue(const char *profile_name, | 176 char *__connman_crypto_encrypt_keyvalue(const char *key, const char *value); | 
| 177     const char *key, const char *value); | 177 char *__connman_crypto_decrypt_keyvalue(const char *key, const char *value); | 
| 178 char *__connman_crypto_decrypt_keyvalue(const char *profile_name, |  | 
| 179     const char *key, const char *value); |  | 
| 180 | 178 | 
| 181 #include <connman/storage.h> | 179 #include <connman/storage.h> | 
| 182 | 180 | 
| 183 int __connman_storage_init(void); | 181 int __connman_storage_init(void); | 
| 184 void __connman_storage_cleanup(void); | 182 void __connman_storage_cleanup(void); | 
| 185 | 183 | 
| 186 GKeyFile *__connman_storage_open(const char *ident); | 184 gboolean __connman_storage_exists(const struct connman_storage_ident *ident); | 
| 187 void __connman_storage_close(const char *ident, | 185 GKeyFile *__connman_storage_open(const struct connman_storage_ident *ident); | 
|  | 186 void __connman_storage_close(const struct connman_storage_ident *ident, | 
| 188                                         GKeyFile *keyfile, gboolean save); | 187                                         GKeyFile *keyfile, gboolean save); | 
| 189 void __connman_storage_delete(const char *ident); | 188 void __connman_storage_delete(const struct connman_storage_ident *ident); | 
| 190 | 189 | 
| 191 void __connman_storage_set_encrypted_value(GKeyFile *keyfile, | 190 void __connman_storage_set_encrypted_value(GKeyFile *keyfile, | 
| 192     const char *profile_name, const char *section, const char *key, | 191     const char *section, const char *key, const char *value); | 
| 193     const char *value); |  | 
| 194 char *__connman_storage_get_encrypted_value(GKeyFile *keyfile, | 192 char *__connman_storage_get_encrypted_value(GKeyFile *keyfile, | 
| 195     const char *profile_name, const char *section, const char *key); | 193     const char *section, const char *key); | 
| 196 | 194 | 
| 197 int __connman_storage_init_profile(void); | 195 int __connman_storage_init_profile(void); | 
| 198 int __connman_storage_load_profile(struct connman_profile *profile); | 196 int __connman_storage_load_profile(struct connman_profile *profile); | 
| 199 int __connman_storage_save_profile(struct connman_profile *profile); | 197 int __connman_storage_save_profile(struct connman_profile *profile); | 
| 200 int __connman_storage_load_service(struct connman_service *service); | 198 int __connman_storage_load_service(struct connman_service *service, | 
| 201 int __connman_storage_save_service(struct connman_service *service); | 199     const struct connman_storage_ident *profile_ident); | 
| 202 int __connman_storage_load_device(struct connman_device *device); | 200 int __connman_storage_save_service(struct connman_service *service, | 
| 203 int __connman_storage_save_device(struct connman_device *device); | 201     const struct connman_storage_ident *profile_ident); | 
| 204 int __connman_storage_load_ipconfig(struct connman_ipconfig *ipconfig); | 202 int __connman_storage_load_device(struct connman_device *device, | 
| 205 int __connman_storage_save_ipconfig(const struct connman_ipconfig *ipconfig); | 203     const struct connman_storage_ident *profile_ident); | 
|  | 204 int __connman_storage_save_device(struct connman_device *device, | 
|  | 205     const struct connman_storage_ident *profile_ident); | 
|  | 206 int __connman_storage_load_ipconfig(struct connman_ipconfig *ipconfig, | 
|  | 207     const struct connman_storage_ident *profile_ident); | 
|  | 208 int __connman_storage_save_ipconfig(const struct connman_ipconfig *ipconfig, | 
|  | 209     const struct connman_storage_ident *profile_ident); | 
| 206 | 210 | 
| 207 #include <connman/driver.h> | 211 #include <connman/driver.h> | 
| 208 | 212 | 
| 209 void __connman_driver_rescan(struct connman_driver *driver); | 213 void __connman_driver_rescan(struct connman_driver *driver); | 
| 210 | 214 | 
| 211 #include <connman/element.h> | 215 #include <connman/element.h> | 
| 212 | 216 | 
| 213 int __connman_element_init(char **devices, char **nodevices, const char *order); | 217 int __connman_element_init(char **devices, char **nodevices, const char *order); | 
| 214 void __connman_element_start(void); | 218 void __connman_element_start(void); | 
| 215 void __connman_element_stop(void); | 219 void __connman_element_stop(void); | 
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 336 | 340 | 
| 337 #include <connman/profile.h> | 341 #include <connman/profile.h> | 
| 338 | 342 | 
| 339 int __connman_profile_init(); | 343 int __connman_profile_init(); | 
| 340 void __connman_profile_cleanup(void); | 344 void __connman_profile_cleanup(void); | 
| 341 | 345 | 
| 342 connman_bool_t __connman_profile_get_offlinemode(void); | 346 connman_bool_t __connman_profile_get_offlinemode(void); | 
| 343 int __connman_profile_set_offlinemode(connman_bool_t offlinemode); | 347 int __connman_profile_set_offlinemode(connman_bool_t offlinemode); | 
| 344 int __connman_profile_save_default(void); | 348 int __connman_profile_save_default(void); | 
| 345 | 349 | 
|  | 350 int __connman_profile_load_service(struct connman_service *service); | 
|  | 351 int __connman_profile_save_service(struct connman_service *service); | 
|  | 352 int __connman_profile_load_device(struct connman_device *device); | 
|  | 353 int __connman_profile_save_device(struct connman_device *device); | 
|  | 354 int __connman_profile_load_ipconfig(struct connman_ipconfig *ipconfig); | 
|  | 355 int __connman_profile_save_ipconfig(const struct connman_ipconfig *ipconfig); | 
|  | 356 | 
| 346 void __connman_profile_list(DBusMessageIter *iter, void *); | 357 void __connman_profile_list(DBusMessageIter *iter, void *); | 
| 347 const char *__connman_profile_active_ident(void); | 358 const struct connman_storage_ident *__connman_profile_active_ident(void); | 
| 348 const char *__connman_profile_active_path(void); | 359 const char *__connman_profile_active_path(void); | 
| 349 | 360 | 
| 350 int __connman_profile_create(const char *name, const char **path); | 361 int __connman_profile_create(const char *name, const char **path); | 
| 351 int __connman_profile_remove(const char *path); | 362 int __connman_profile_remove(const char *path); | 
|  | 363 int __connman_profile_push(const char *ident, const char *name, | 
|  | 364                                 const char **path); | 
|  | 365 int __connman_profile_pop(const char *ident); | 
| 352 | 366 | 
| 353 void __connman_profile_changed(gboolean delayed); | 367 void __connman_profile_changed(gboolean delayed); | 
| 354 | 368 | 
| 355 int __connman_profile_add_device(struct connman_device *device); | 369 int __connman_profile_add_device(struct connman_device *device); | 
| 356 int __connman_profile_remove_device(struct connman_device *device); | 370 int __connman_profile_remove_device(struct connman_device *device); | 
| 357 | 371 | 
| 358 int __connman_profile_add_network(struct connman_network *network); | 372 int __connman_profile_add_network(struct connman_network *network); | 
| 359 int __connman_profile_update_network(struct connman_network *network); | 373 int __connman_profile_update_network(struct connman_network *network); | 
| 360 int __connman_profile_remove_network(struct connman_network *network); | 374 int __connman_profile_remove_network(struct connman_network *network); | 
| 361 | 375 | 
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 415                                                 connman_bool_t carrier); | 429                                                 connman_bool_t carrier); | 
| 416 int __connman_service_indicate_state(struct connman_service *service, | 430 int __connman_service_indicate_state(struct connman_service *service, | 
| 417                                         enum connman_service_state state); | 431                                         enum connman_service_state state); | 
| 418 int __connman_service_indicate_error(struct connman_service *service, | 432 int __connman_service_indicate_error(struct connman_service *service, | 
| 419                                         enum connman_service_error error); | 433                                         enum connman_service_error error); | 
| 420 int __connman_service_indicate_active(struct connman_service *service, | 434 int __connman_service_indicate_active(struct connman_service *service, | 
| 421                                       connman_bool_t is_active); | 435                                       connman_bool_t is_active); | 
| 422 | 436 | 
| 423 connman_bool_t __connman_service_check_prepared(const struct connman_service *); | 437 connman_bool_t __connman_service_check_prepared(const struct connman_service *); | 
| 424 | 438 | 
|  | 439 void __connman_service_invalidate_profile(const struct connman_storage_ident *); | 
|  | 440 | 
| 425 enum connman_service_type connman_service_string2type(const char *str); | 441 enum connman_service_type connman_service_string2type(const char *str); | 
| 426 void __connman_service_reset(struct connman_service *service); | 442 void __connman_service_reset(struct connman_service *service); | 
| 427 DBusMessage *__connman_get_wifi_service(DBusMessage *msg); | 443 DBusMessage *__connman_get_wifi_service(DBusMessage *msg); | 
| 428 DBusMessage *__connman_configure_wifi_service(DBusMessage *msg); | 444 DBusMessage *__connman_configure_wifi_service(DBusMessage *msg); | 
| 429 | 445 | 
| 430 int __connman_service_connect(struct connman_service *service); | 446 int __connman_service_connect(struct connman_service *service); | 
| 431 int __connman_service_disconnect(struct connman_service *service); | 447 int __connman_service_disconnect(struct connman_service *service); | 
| 432 struct connman_service *__connman_service_lookup(const char *identifier); | 448 struct connman_service *__connman_service_lookup(const char *identifier); | 
| 433 int __connman_service_create_and_connect(DBusMessage *msg); | 449 int __connman_service_create_and_connect(DBusMessage *msg); | 
| 434 void __connman_service_device_auto_connect(struct connman_device *); | 450 void __connman_service_device_auto_connect(struct connman_device *); | 
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 478 | 494 | 
| 479 connman_bool_t __connman_notifier_is_enabled(enum connman_service_type type); | 495 connman_bool_t __connman_notifier_is_enabled(enum connman_service_type type); | 
| 480 | 496 | 
| 481 #include <connman/rtnl.h> | 497 #include <connman/rtnl.h> | 
| 482 | 498 | 
| 483 int __connman_rtnl_init(void); | 499 int __connman_rtnl_init(void); | 
| 484 void __connman_rtnl_start(void); | 500 void __connman_rtnl_start(void); | 
| 485 void __connman_rtnl_cleanup(void); | 501 void __connman_rtnl_cleanup(void); | 
| 486 | 502 | 
| 487 int __connman_rtnl_send(const void *buf, size_t len); | 503 int __connman_rtnl_send(const void *buf, size_t len); | 
| OLD | NEW | 
|---|