X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=include%2Fdbus.h;h=4007a14dea37cc6e7e77947856ab25513144a2ef;hb=2f91f80f19788f0e1734c586dbadb399d03940b5;hp=c1760e09cec2b2b8ebeb6cbf7bcb42722d6b5286;hpb=0dd05b756d0d86aa90c2edcd6b5dc79e5eba87dd;p=connman diff --git a/include/dbus.h b/include/dbus.h index c1760e0..4007a14 100644 --- a/include/dbus.h +++ b/include/dbus.h @@ -2,7 +2,7 @@ * * Connection Manager * - * Copyright (C) 2007-2008 Intel Corporation. All rights reserved. + * Copyright (C) 2007-2009 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 @@ -28,27 +28,33 @@ extern "C" { #include -#define CONNMAN_SERVICE "org.moblin.connman" +#define CONNMAN_SERVICE "org.moblin.connman" -#define CONNMAN_ERROR_INTERFACE CONNMAN_SERVICE ".Error" +#define CONNMAN_DEBUG_INTERFACE CONNMAN_SERVICE ".Debug" +#define CONNMAN_ERROR_INTERFACE CONNMAN_SERVICE ".Error" +#define CONNMAN_AGENT_INTERFACE CONNMAN_SERVICE ".Agent" -#define CONNMAN_AGENT_INTERFACE CONNMAN_SERVICE ".Agent" +#define CONNMAN_MANAGER_INTERFACE CONNMAN_SERVICE ".Manager" +#define CONNMAN_MANAGER_PATH "/" -#define CONNMAN_ELEMENT_INTERFACE CONNMAN_SERVICE ".Element" +#define CONNMAN_PROFILE_INTERFACE CONNMAN_SERVICE ".Profile" +#define CONNMAN_SERVICE_INTERFACE CONNMAN_SERVICE ".Service" +#define CONNMAN_DEVICE_INTERFACE CONNMAN_SERVICE ".Device" +#define CONNMAN_NETWORK_INTERFACE CONNMAN_SERVICE ".Network" +#define CONNMAN_CONNECTION_INTERFACE CONNMAN_SERVICE ".Connection" -#define CONNMAN_PROFILE_INTERFACE CONNMAN_SERVICE ".Profile" +extern DBusConnection *connman_dbus_get_connection(void); -#define CONNMAN_MANAGER_INTERFACE CONNMAN_SERVICE ".Manager" -#define CONNMAN_MANAGER_PATH "/" - -#define CONNMAN_DEVICE_INTERFACE CONNMAN_SERVICE ".Device" -#define CONNMAN_NETWORK_INTERFACE CONNMAN_SERVICE ".Network" +extern void connman_dbus_property_append_variant(DBusMessageIter *property, + const char *key, int type, void *val); extern void connman_dbus_dict_append_array(DBusMessageIter *dict, const char *key, int type, void *val, int len); extern void connman_dbus_dict_append_variant(DBusMessageIter *dict, const char *key, int type, void *val); +extern char *connman_dbus_encode_string(const char *value); + #ifdef __cplusplus } #endif