softwarecontainer  0.18.0-739e8d7 2017-05-04
proxy.h
1 /*
2  * Copyright (C) 2013-2016, Pelagicore AB <joakim.gross@pelagicore.com>
3  * Copyright (C) 2011, Stéphane Graber <stgraber@stgraber.org>
4  * Copyright (C) 2010, Alban Crequy <alban.crequy@collabora.co.uk>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * For further information see LICENSE
22  */
23 
24 #include <dbus/dbus.h>
25 #include <dbus/dbus-glib.h>
26 
32 void start_bus();
33 
34 gboolean is_allowed (const char *direction, const char *interface,
35  const char *path, const char *member);
36 gboolean is_conn_known_eavesdropper (const char *unique_name);
37 gboolean remove_name_from_known_eavesdroppers (const char *unique_name);
38 gboolean is_incoming_eavesdropping (DBusMessage *msg);
39 
40 // External
41 pid_t fork();
42 pid_t getpid();