Error checking in passphrase decryption method.
[platform/upstream/connman.git] / client / services.h
old mode 100644 (file)
new mode 100755 (executable)
index cdcc7b2..9b555fe
@@ -2,11 +2,12 @@
  *
  *  Connection Manager
  *
- *  Copyright (C) 2012  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2012-2013  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
- *  published by the Free Software Foundation.
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */
-#ifndef __CLIENT_SERVICES_H
-#define __CLIENT_SERVICES_H
 
-#include <stdint.h>
+#ifndef __CONNMANCTL_SERVICES_H
+#define __CONNMANCTL_SERVICES_H
 
 #include <dbus/dbus.h>
 
-struct service_data {
-       const char *path;
-       const char *name;
-       dbus_bool_t autoconn;
-       dbus_bool_t favorite;
-       dbus_bool_t connected;
-       dbus_bool_t online;
-};
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-char *strip_service_path(char *service);
-void extract_service_name(DBusMessageIter *dict, struct service_data *service);
-int set_service_property(DBusConnection *connection, DBusMessage *message,
-                               char *name, char *property, char **keys,
-                               void *data, int num_args);
-int set_proxy_manual(DBusConnection *connection, DBusMessage *message,
-                               char *name, char **servers, char **excludes,
-                               int num_servers, int num_excludes);
+void __connmanctl_services_list(DBusMessageIter *iter);
 
-const char *find_service(DBusConnection *connection, DBusMessage *message,
-                         char *service_name, struct service_data *service);
-void extract_services(DBusMessage *message, char *service_name);
-void get_services(DBusMessage *message);
-void iterate_dict(DBusMessageIter *dict, char *string, uint16_t key_int);
-int list_services(DBusConnection *connection, char *function);
-int list_services_properties(DBusConnection *connection, char *function,
-                               char *service_name);
-int listen_for_service_signal(DBusConnection *connection, char *signal_name,
-                       char *service_name);
-void iterate_array(DBusMessageIter *iter);
+#ifdef __cplusplus
+}
 #endif
+
+#endif /* __CONNMANCTL_SERVICES_H */