3
* Copyright © 2009 Scott James Remnant <scott@netsplit.com>.
4
* Copyright © 2009 Canonical Ltd.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2, as
8
* published by the Free Software Foundation.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
#ifndef NIH_DBUS_TOOL_TESTS_SIGNAL_CODE_H
21
#define NIH_DBUS_TOOL_TESTS_SIGNAL_CODE_H
23
#include <nih/macros.h>
25
#include <dbus/dbus.h>
27
#include <nih-dbus/dbus_message.h>
28
#include <nih-dbus/dbus_object.h>
31
typedef void (*MySignalHandler) (void *data, NihDBusMessage *message,
37
int my_emit_signal (DBusConnection *connection,
38
const char *origin_path, const char *msg)
39
__attribute__ ((warn_unused_result));
41
DBusHandlerResult my_com_netsplit_Nih_Test_Signal_signal (DBusConnection *connection,
43
NihDBusProxySignal *proxied);
47
#endif /* NIH_DBUS_TOOL_TESTS_SIGNAL_CODE_H */