5 * Copyright (C) 2012 Intel Corporation. All rights reserved.
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
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __CLIENT_SERVICES_H
22 #define __CLIENT_SERVICES_H
26 #include <dbus/dbus.h>
33 dbus_bool_t connected;
37 char *strip_service_path(char *service);
38 void extract_service_name(DBusMessageIter *dict, struct service_data *service);
39 int set_service_property(DBusConnection *connection, DBusMessage *message,
40 char *name, char *property, char **keys,
41 void *data, int num_args);
42 int set_proxy_manual(DBusConnection *connection, DBusMessage *message,
43 char *name, char **servers, char **excludes,
44 int num_servers, int num_excludes);
46 const char *find_service(DBusConnection *connection, DBusMessage *message,
47 char *service_name, struct service_data *service);
48 void extract_services(DBusMessage *message, char *service_name);
49 void get_services(DBusMessage *message);
50 void iterate_dict(DBusMessageIter *dict, char *string, uint16_t key_int);
51 int list_services(DBusConnection *connection, char *function);
52 int list_services_properties(DBusConnection *connection, char *function,
54 int listen_for_service_signal(DBusConnection *connection, char *signal_name,
56 void iterate_array(DBusMessageIter *iter);