projects
/
framework
/
connectivity
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: Check that the supplied nameserver is in numeric format
[framework/connectivity/connman.git]
/
src
/
connman.h
diff --git
a/src/connman.h
b/src/connman.h
index
34584b3
..
adfdcea
100644
(file)
--- a/
src/connman.h
+++ b/
src/connman.h
@@
-2,7
+2,7
@@
*
* Connection Manager
*
*
* Connection Manager
*
- * Copyright (C) 2007-201
0
Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-201
2
Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@
-91,10
+91,10
@@
typedef void (* authentication_cb_t) (struct connman_service *service,
const char *name, int name_len,
const char *identifier, const char *secret,
gboolean wps, const char *wpspin,
const char *name, int name_len,
const char *identifier, const char *secret,
gboolean wps, const char *wpspin,
- void *user_data);
+
const char *error,
void *user_data);
typedef void (* browser_authentication_cb_t) (struct connman_service *service,
connman_bool_t authentication_done,
typedef void (* browser_authentication_cb_t) (struct connman_service *service,
connman_bool_t authentication_done,
- void *user_data);
+
const char *error,
void *user_data);
typedef void (* report_error_cb_t) (struct connman_service *service,
gboolean retry, void *user_data);
int __connman_agent_request_passphrase_input(struct connman_service *service,
typedef void (* report_error_cb_t) (struct connman_service *service,
gboolean retry, void *user_data);
int __connman_agent_request_passphrase_input(struct connman_service *service,
@@
-117,9
+117,6
@@
void __connman_log_cleanup(void);
void __connman_log_enable(struct connman_debug_desc *start,
struct connman_debug_desc *stop);
void __connman_log_enable(struct connman_debug_desc *start,
struct connman_debug_desc *stop);
-void __connman_debug_list_available(DBusMessageIter *iter, void *user_data);
-void __connman_debug_list_enabled(DBusMessageIter *iter, void *user_data);
-
#include <connman/option.h>
#include <connman/setting.h>
#include <connman/option.h>
#include <connman/setting.h>
@@
-150,6
+147,9
@@
typedef void (*__connman_inet_rs_cb_t) (struct nd_router_advert *reply,
int __connman_inet_ipv6_send_rs(int index, int timeout,
__connman_inet_rs_cb_t callback, void *user_data);
int __connman_inet_ipv6_send_rs(int index, int timeout,
__connman_inet_rs_cb_t callback, void *user_data);
+
+int __connman_refresh_rs_ipv6(struct connman_network *network, int index);
+
GSList *__connman_inet_ipv6_get_prefixes(struct nd_router_advert *hdr,
unsigned int length);
GSList *__connman_inet_ipv6_get_prefixes(struct nd_router_advert *hdr,
unsigned int length);
@@
-199,22
+199,22
@@
int __connman_resolver_init(connman_bool_t dnsproxy);
void __connman_resolver_cleanup(void);
int __connman_resolvfile_append(const char *interface, const char *domain, const char *server);
int __connman_resolvfile_remove(const char *interface, const char *domain, const char *server);
void __connman_resolver_cleanup(void);
int __connman_resolvfile_append(const char *interface, const char *domain, const char *server);
int __connman_resolvfile_remove(const char *interface, const char *domain, const char *server);
+int __connman_resolver_redo_servers(const char *interface);
void __connman_storage_migrate(void);
GKeyFile *__connman_storage_open_global();
GKeyFile *__connman_storage_load_global();
void __connman_storage_migrate(void);
GKeyFile *__connman_storage_open_global();
GKeyFile *__connman_storage_load_global();
-
void
__connman_storage_save_global(GKeyFile *keyfile);
+
int
__connman_storage_save_global(GKeyFile *keyfile);
void __connman_storage_delete_global();
GKeyFile *__connman_storage_load_config(const char *ident);
void __connman_storage_delete_global();
GKeyFile *__connman_storage_load_config(const char *ident);
-void __connman_storage_save_config(GKeyFile *keyfile, const char *ident);
-void __connman_storage_delete_config(const char *ident);
GKeyFile *__connman_storage_open_service(const char *ident);
GKeyFile *__connman_storage_open_service(const char *ident);
-
void
__connman_storage_save_service(GKeyFile *keyfile, const char *ident);
+
int
__connman_storage_save_service(GKeyFile *keyfile, const char *ident);
GKeyFile *__connman_storage_load_provider(const char *identifier);
void __connman_storage_save_provider(GKeyFile *keyfile, const char *identifier);
char **__connman_storage_get_providers(void);
GKeyFile *__connman_storage_load_provider(const char *identifier);
void __connman_storage_save_provider(GKeyFile *keyfile, const char *identifier);
char **__connman_storage_get_providers(void);
+gboolean __connman_storage_remove_service(const char *service_id);
int __connman_detect_init(void);
void __connman_detect_cleanup(void);
int __connman_detect_init(void);
void __connman_detect_cleanup(void);
@@
-298,7
+298,8
@@
enum connman_ipconfig_type __connman_ipconfig_get_config_type(
struct connman_ipconfig *ipconfig);
unsigned short __connman_ipconfig_get_type_from_index(int index);
unsigned int __connman_ipconfig_get_flags_from_index(int index);
struct connman_ipconfig *ipconfig);
unsigned short __connman_ipconfig_get_type_from_index(int index);
unsigned int __connman_ipconfig_get_flags_from_index(int index);
-const char *__connman_ipconfig_get_gateway_from_index(int index);
+const char *__connman_ipconfig_get_gateway_from_index(int index,
+ enum connman_ipconfig_type type);
void __connman_ipconfig_set_index(struct connman_ipconfig *ipconfig, int index);
const char *__connman_ipconfig_get_local(struct connman_ipconfig *ipconfig);
void __connman_ipconfig_set_index(struct connman_ipconfig *ipconfig, int index);
const char *__connman_ipconfig_get_local(struct connman_ipconfig *ipconfig);
@@
-370,6
+371,9
@@
void __connman_timeserver_cleanup(void);
char **__connman_timeserver_system_get();
char **__connman_timeserver_system_get();
+GSList *__connman_timeserver_add_list(GSList *server_list,
+ const char *timeserver);
+GSList *__connman_timeserver_get_all(struct connman_service *service);
int __connman_timeserver_sync(struct connman_service *service);
void __connman_timeserver_sync_next();
int __connman_timeserver_sync(struct connman_service *service);
void __connman_timeserver_sync_next();
@@
-482,8
+486,6
@@
int __connman_device_enable(struct connman_device *device);
int __connman_device_disable(struct connman_device *device);
int __connman_device_disconnect(struct connman_device *device);
int __connman_device_disable(struct connman_device *device);
int __connman_device_disconnect(struct connman_device *device);
-connman_bool_t __connman_device_scanning(struct connman_device *device);
-
connman_bool_t __connman_device_has_driver(struct connman_device *device);
void __connman_device_set_reconnect(struct connman_device *device,
connman_bool_t __connman_device_has_driver(struct connman_device *device);
void __connman_device_set_reconnect(struct connman_device *device,
@@
-523,7
+525,7
@@
void __connman_config_cleanup(void);
int __connman_config_load_service(GKeyFile *keyfile, const char *group, connman_bool_t persistent);
int __connman_config_provision_service(struct connman_service *service);
int __connman_config_provision_service_ident(struct connman_service *service,
int __connman_config_load_service(GKeyFile *keyfile, const char *group, connman_bool_t persistent);
int __connman_config_provision_service(struct connman_service *service);
int __connman_config_provision_service_ident(struct connman_service *service,
-
const char *ident
);
+
const char *ident, const char *file, const char *entry
);
int __connman_tethering_init(void);
void __connman_tethering_cleanup(void);
int __connman_tethering_init(void);
void __connman_tethering_cleanup(void);
@@
-563,6
+565,7
@@
void __connman_service_list_struct(DBusMessageIter *iter);
struct connman_service *__connman_service_lookup_from_network(struct connman_network *network);
struct connman_service *__connman_service_lookup_from_index(int index);
struct connman_service *__connman_service_lookup_from_network(struct connman_network *network);
struct connman_service *__connman_service_lookup_from_index(int index);
+struct connman_service *__connman_service_lookup_from_ident(const char *identifier);
struct connman_service *__connman_service_create_from_network(struct connman_network *network);
struct connman_service *__connman_service_create_from_provider(struct connman_provider *provider);
struct connman_service *__connman_service_get_default(void);
struct connman_service *__connman_service_create_from_network(struct connman_network *network);
struct connman_service *__connman_service_create_from_provider(struct connman_provider *provider);
struct connman_service *__connman_service_get_default(void);
@@
-592,8
+595,13
@@
const char *__connman_service_get_phase2(struct connman_service *service);
connman_bool_t __connman_service_wps_enabled(struct connman_service *service);
int __connman_service_set_favorite(struct connman_service *service,
connman_bool_t favorite);
connman_bool_t __connman_service_wps_enabled(struct connman_service *service);
int __connman_service_set_favorite(struct connman_service *service,
connman_bool_t favorite);
+int __connman_service_set_favorite_delayed(struct connman_service *service,
+ connman_bool_t favorite,
+ gboolean delay_ordering);
int __connman_service_set_immutable(struct connman_service *service,
connman_bool_t immutable);
int __connman_service_set_immutable(struct connman_service *service,
connman_bool_t immutable);
+void __connman_service_set_userconnect(struct connman_service *service,
+ connman_bool_t userconnect);
void __connman_service_set_string(struct connman_service *service,
const char *key, const char *value);
void __connman_service_set_string(struct connman_service *service,
const char *key, const char *value);
@@
-615,8
+623,11
@@
int __connman_service_connect(struct connman_service *service);
int __connman_service_disconnect(struct connman_service *service);
int __connman_service_disconnect_all(void);
void __connman_service_auto_connect(void);
int __connman_service_disconnect(struct connman_service *service);
int __connman_service_disconnect_all(void);
void __connman_service_auto_connect(void);
+gboolean __connman_service_remove(struct connman_service *service);
-void __connman_service_provision_changed(const char *ident);
+int __connman_service_provision_changed(const char *ident);
+void __connman_service_set_config(struct connman_service *service,
+ const char *file_id, const char *section);
const char *__connman_service_type2string(enum connman_service_type type);
enum connman_service_type __connman_service_string2type(const char *str);
const char *__connman_service_type2string(enum connman_service_type type);
enum connman_service_type __connman_service_string2type(const char *str);
@@
-634,11
+645,14
@@
int __connman_service_timeserver_append(struct connman_service *service,
const char *timeserver);
int __connman_service_timeserver_remove(struct connman_service *service,
const char *timeserver);
const char *timeserver);
int __connman_service_timeserver_remove(struct connman_service *service,
const char *timeserver);
+void __connman_service_timeserver_changed(struct connman_service *service,
+ GSList *ts_list);
void __connman_service_set_pac(struct connman_service *service,
const char *pac);
connman_bool_t __connman_service_is_hidden(struct connman_service *service);
connman_bool_t __connman_service_is_split_routing(struct connman_service *service);
int __connman_service_get_index(struct connman_service *service);
void __connman_service_set_pac(struct connman_service *service,
const char *pac);
connman_bool_t __connman_service_is_hidden(struct connman_service *service);
connman_bool_t __connman_service_is_split_routing(struct connman_service *service);
int __connman_service_get_index(struct connman_service *service);
+void __connman_service_set_hidden(struct connman_service *service);
void __connman_service_set_domainname(struct connman_service *service,
const char *domainname);
const char *__connman_service_get_domainname(struct connman_service *service);
void __connman_service_set_domainname(struct connman_service *service,
const char *domainname);
const char *__connman_service_get_domainname(struct connman_service *service);
@@
-680,6
+694,8
@@
GSequence *__connman_service_get_list(struct connman_session *session,
void __connman_service_session_inc(struct connman_service *service);
connman_bool_t __connman_service_session_dec(struct connman_service *service);
void __connman_service_session_inc(struct connman_service *service);
connman_bool_t __connman_service_session_dec(struct connman_service *service);
+void __connman_service_mark_dirty();
+void __connman_service_save(struct connman_service *service);
#include <connman/notifier.h>
#include <connman/notifier.h>
@@
-692,6
+708,8
@@
void __connman_notifier_cleanup(void);
void __connman_notifier_service_add(struct connman_service *service,
const char *name);
void __connman_notifier_service_remove(struct connman_service *service);
void __connman_notifier_service_add(struct connman_service *service,
const char *name);
void __connman_notifier_service_remove(struct connman_service *service);
+void __connman_notifier_enter_online(enum connman_service_type type);
+void __connman_notifier_leave_online(enum connman_service_type type);
void __connman_notifier_connect(enum connman_service_type type);
void __connman_notifier_disconnect(enum connman_service_type type);
void __connman_notifier_offlinemode(connman_bool_t enabled);
void __connman_notifier_connect(enum connman_service_type type);
void __connman_notifier_disconnect(enum connman_service_type type);
void __connman_notifier_offlinemode(connman_bool_t enabled);
@@
-702,7
+720,7
@@
void __connman_notifier_service_state_changed(struct connman_service *service,
void __connman_notifier_ipconfig_changed(struct connman_service *service,
struct connman_ipconfig *ipconfig);
void __connman_notifier_ipconfig_changed(struct connman_service *service,
struct connman_ipconfig *ipconfig);
-
unsigned int __connman_notifier_count
_connected(void);
+
connman_bool_t __connman_notifier_is
_connected(void);
const char *__connman_notifier_get_state(void);
#include <connman/rtnl.h>
const char *__connman_notifier_get_state(void);
#include <connman/rtnl.h>