From e5fdb1cbef199fd48ed7615cc83383bc55a345fa Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Thu, 19 Feb 2009 14:50:19 +0100 Subject: Moved dbus backend from dbus lib to daemon - better OO model. Modified dbus policy config file to allow all users to call daemon's methods --- src/Daemon/DBusCommon.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/Daemon/DBusCommon.h (limited to 'src/Daemon/DBusCommon.h') diff --git a/src/Daemon/DBusCommon.h b/src/Daemon/DBusCommon.h new file mode 100644 index 0000000..9504344 --- /dev/null +++ b/src/Daemon/DBusCommon.h @@ -0,0 +1,29 @@ +/* + Copyright (C) 2009 Jiri Moskovcak (jmoskovc@redhat.com) + Copyright (C) 2009 RedHat inc. + + This program is free software; you can redistribute it and/or modify + 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 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/* we need this to know the data structures */ +#include "MiddleWare.h" + +#define CC_DBUS_NAME "com.redhat.CrashCatcher" +#define CC_DBUS_PATH "/com/redhat/CrashCatcher" +#define CC_DBUS_IFACE "com.redhat.CrashCatcher" + +//typedef std::vector vector_crash_infos_t; +typedef std::vector< std::vector > dbus_vector_crash_infos_t; +typedef std::vector< std::map > dbus_vector_map_crash_infos_t; -- cgit