forked from Mirrors/flatpak-builder
Break out dbus proxy implementation to separate file
parent
c0dca8dee4
commit
7183917583
|
@ -43,6 +43,7 @@ include libglnx/Makefile-libglnx.am.inc
|
|||
noinst_LTLIBRARIES = libglnx.la
|
||||
|
||||
xdg_app_helper_SOURCES = xdg-app-helper.c
|
||||
xdg_app_helper_LDADD = -L/gnome/lib -lglib-2.0
|
||||
|
||||
dbus_built_sources = xdg-app-dbus.c xdg-app-dbus.h
|
||||
systemd_dbus_built_sources = xdg-app-systemd-dbus.c xdg-app-systemd-dbus.h
|
||||
|
@ -126,6 +127,8 @@ xdg_app_LDADD = $(BASE_LIBS) $(OSTREE_LIBS) $(SOUP_LIBS) libglnx.la
|
|||
xdg_app_CFLAGS = $(BASE_CFLAGS) $(OSTREE_CFLAGS) $(SOUP_CFLAGS) -I$(srcdir)/libglnx
|
||||
|
||||
dbus_proxy_SOURCES = \
|
||||
xdg-app-proxy.c \
|
||||
xdg-app-proxy.h \
|
||||
dbus-proxy.c \
|
||||
$(NULL)
|
||||
|
||||
|
|
1840
dbus-proxy.c
1840
dbus-proxy.c
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* Copyright © 2015 Red Hat, Inc
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Authors:
|
||||
* Alexander Larsson <alexl@redhat.com>
|
||||
*/
|
||||
|
||||
#ifndef __XDG_APP_PROXY_H__
|
||||
#define __XDG_APP_PROXY_H__
|
||||
|
||||
#include <gio/gio.h>
|
||||
|
||||
typedef enum {
|
||||
XDG_APP_POLICY_NONE,
|
||||
XDG_APP_POLICY_SEE,
|
||||
XDG_APP_POLICY_TALK,
|
||||
XDG_APP_POLICY_OWN
|
||||
} XdgAppPolicy;
|
||||
|
||||
typedef struct XdgAppProxy XdgAppProxy;
|
||||
|
||||
GType xdg_app_proxy_get_type (void);
|
||||
|
||||
XdgAppProxy *xdg_app_proxy_new (const char *dbus_address);
|
||||
void xdg_app_proxy_set_log_messages (XdgAppProxy *proxy,
|
||||
gboolean log);
|
||||
void xdg_app_proxy_set_filter (XdgAppProxy *proxy,
|
||||
gboolean filter);
|
||||
void xdg_app_proxy_add_policy (XdgAppProxy *proxy,
|
||||
const char *name,
|
||||
XdgAppPolicy policy);
|
||||
void xdg_app_proxy_add_wildcarded_policy (XdgAppProxy *proxy,
|
||||
const char *name,
|
||||
XdgAppPolicy policy);
|
||||
gboolean xdg_app_proxy_start (XdgAppProxy *proxy,
|
||||
GError **error);
|
||||
|
||||
#endif /* __XDG_APP_PROXY_H__ */
|
Loading…
Reference in New Issue