]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/dbus.h
1 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
7 This file is part of systemd.
9 Copyright 2010 Lennart Poettering
11 systemd is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
16 systemd is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
25 #include <dbus/dbus.h>
29 int bus_init(Manager
*m
, bool try_bus_connect
);
30 void bus_done(Manager
*m
);
32 unsigned bus_dispatch(Manager
*m
);
34 void bus_watch_event(Manager
*m
, Watch
*w
, int events
);
35 void bus_timeout_event(Manager
*m
, Watch
*w
, int events
);
37 int bus_query_pid(Manager
*m
, const char *name
);
39 int bus_broadcast(Manager
*m
, DBusMessage
*message
);
41 bool bus_has_subscriber(Manager
*m
);
42 bool bus_connection_has_subscriber(Manager
*m
, DBusConnection
*c
);
44 int bus_fdset_add_all(Manager
*m
, FDSet
*fds
);
46 void bus_broadcast_finished(Manager
*m
, usec_t kernel_usec
, usec_t initrd_usec
, usec_t userspace_usec
, usec_t total_usec
);
48 #define BUS_CONNECTION_SUBSCRIBED(m, c) dbus_connection_get_data((c), (m)->subscribed_data_slot)
49 #define BUS_PENDING_CALL_NAME(m, p) dbus_pending_call_get_data((p), (m)->name_data_slot)
51 extern const char * const bus_interface_table
[];