~vorlon/debian/sid/upstart/debian

« back to all changes in this revision

Viewing changes to nih-dbus-tool/tests/signal_code.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2010-06-19 21:15:12 UTC
  • mfrom: (1.3.2 upstream) (0.1.1280 upstart)
  • Revision ID: james.westby@ubuntu.com-20100619211512-cu6b20sf8qmm4oek
Tags: 0.6.6-1
* New upstream release.
  - Mount /proc and /sys on initialisation. Closes: #577710
  - Since version 0.6.5 upstart no longer includes a internal copy of libnih
    but instead depends on it being installed system wide.
  - Provide a separate function to reconnect to the D-Bus system bus which
    can be triggered by the SIGUSR1 signal as a config reload has the
    negative side effect of losing state.
* debian/control
  - Add Build-Depends on libnih-dev (>= 1.0.2), libnih-dbus-dev (>= 1.0.2)
    and nih-dbus-tool.
  - Bump Standards-Version to 3.8.4. No further changes.
  - Add ${misc:Depends}.
* debian/conf/dbus-reconnect.conf
  - Use SIGUSR1 to tell upstart to reconnect to the D-Bus system bus.
* debian/upstart.docs
  - Remove ChangeLog.nih which is no longer included in the source.
* debian/conf/tty*.conf
  - Run getty in 8-bit clean mode to better handle UTF-8 environments.
* Switch to source format 3.0 (quilt).
  - Drop Build-Depends on quilt.
  - Remove quilt.make include and patch/unpatch targets from debian/rules.
  - Add debian/source/format.
* Add SELinux support. Closes: #543420
  - Add debian/patches/01-selinux.patch to make upstart load the policy if
    SELinux is enabled. Patch by Russell Coker with some minor changes and
    build system integration.
  - Add debian/patches/99-autoreconf.patch.
  - Add Build-Depends on libselinux-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* nih-dbus-tool
2
 
 *
3
 
 * Copyright © 2009 Scott James Remnant <scott@netsplit.com>.
4
 
 * Copyright © 2009 Canonical Ltd.
5
 
 *
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.
9
 
 *
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.
14
 
 *
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.
18
 
 */
19
 
 
20
 
#ifndef NIH_DBUS_TOOL_TESTS_SIGNAL_CODE_H
21
 
#define NIH_DBUS_TOOL_TESTS_SIGNAL_CODE_H
22
 
 
23
 
#include <nih/macros.h>
24
 
 
25
 
#include <dbus/dbus.h>
26
 
 
27
 
#include <nih-dbus/dbus_message.h>
28
 
#include <nih-dbus/dbus_object.h>
29
 
 
30
 
 
31
 
typedef void (*MySignalHandler) (void *data, NihDBusMessage *message,
32
 
                                 const char *msg);
33
 
 
34
 
 
35
 
NIH_BEGIN_EXTERN
36
 
 
37
 
int               my_emit_signal   (DBusConnection *connection,
38
 
                                    const char *origin_path, const char *msg)
39
 
        __attribute__ ((warn_unused_result));
40
 
 
41
 
DBusHandlerResult my_com_netsplit_Nih_Test_Signal_signal (DBusConnection *connection,
42
 
                                                          DBusMessage *signal,
43
 
                                                          NihDBusProxySignal *proxied);
44
 
 
45
 
NIH_END_EXTERN
46
 
 
47
 
#endif /* NIH_DBUS_TOOL_TESTS_SIGNAL_CODE_H */