diff options
author | Ossama Othman <ossama.othman@intel.com> | 2013-10-08 08:00:51 -0700 |
---|---|---|
committer | Ossama Othman <ossama.othman@intel.com> | 2013-10-15 13:31:16 -0700 |
commit | 6ae200e9ab7123dadc5ef90a8baddd5eb0b18928 (patch) | |
tree | 6edd468c58567d6ce01860ae79ac0b5141b4fbb1 /include | |
parent | 5fdabd6dd0f826bf20ab4909341d1611264821c6 (diff) | |
download | settings-daemon-6ae200e9ab7123dadc5ef90a8baddd5eb0b18928.tar.gz settings-daemon-6ae200e9ab7123dadc5ef90a8baddd5eb0b18928.tar.bz2 settings-daemon-6ae200e9ab7123dadc5ef90a8baddd5eb0b18928.zip |
Refactored connman signal callback to generic D-Bus signal callback.
Change-Id: I575f74a095a9b4fb0fb496935b384ab72c20a2f7
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/settingsd/Makefile.am | 3 | ||||
-rw-r--r-- | include/settingsd/dbus_signal_callback.hpp | 58 |
2 files changed, 60 insertions, 1 deletions
diff --git a/include/settingsd/Makefile.am b/include/settingsd/Makefile.am index eb43239..0eb9d72 100644 --- a/include/settingsd/Makefile.am +++ b/include/settingsd/Makefile.am @@ -28,4 +28,5 @@ pkginclude_HEADERS = \ glib_traits.hpp \ json_glib_traits.hpp \ smart_ptr.hpp \ - reverse_lock.hpp + reverse_lock.hpp \ + dbus_signal_callback.hpp diff --git a/include/settingsd/dbus_signal_callback.hpp b/include/settingsd/dbus_signal_callback.hpp new file mode 100644 index 0000000..7abea8b --- /dev/null +++ b/include/settingsd/dbus_signal_callback.hpp @@ -0,0 +1,58 @@ +/** + * @file dbus_signal_callback.hpp + * + * @brief D-Bus signal callback. + * + * @author Ossama Othman @<ossama.othman@@intel.com@> + * + * @copyright @par + * Copyright 2013 Intel Corporation All Rights Reserved. + * @par + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; + * version 2.1 of the License. + * @par + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * @par + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifndef IVI_SETTINGS_DBUS_SIGNAL_CALLBACK_HPP +#define IVI_SETTINGS_DBUS_SIGNAL_CALLBACK_HPP + +#include <settingsd/settings_api.hpp> + +#include <gio/gio.h> + + +namespace ivi +{ + namespace settings + { + extern "C" SETTINGS_API + void on_dbus_signal(GDBusConnection * connection, + char const * sender_name, + char const * object_path, + char const * interface_name, + char const * signal_name, + GVariant * parameters, + gpointer user_data); + } +} + + +#endif /* IVI_SETTINGS_DBUS_SIGNAL_CALLBACK_HPP */ + + +// Local Variables: +// mode:c++ +// c-basic-offset:2 +// indent-tabs-mode: nil +// End: |