Commit 34fe5033 authored by Zeeshan Ali's avatar Zeeshan Ali

Provide user-authorization agent interface XML

Also provide a generic D-Bus config for agents.
parent ffb35503
......@@ -131,6 +131,7 @@ AC_CONFIG_FILES([
Makefile
src/Makefile
src/geoclue-2.0.pc
src/agent/Makefile
src/geoip-server/Makefile
po/Makefile.in
data/org.freedesktop.GeoClue2.conf
......
......@@ -8,7 +8,9 @@ $(service_DATA): $(service_in_files) Makefile
# DBus Service policy file
dbusservicedir = $(DBUS_SYS_DIR)
dbusservice_DATA = org.freedesktop.GeoClue2.conf
dbusservice_DATA = org.freedesktop.GeoClue2.conf \
org.freedesktop.GeoClue2.Agent.conf
DISTCLEANFILES = $(service_DATA)
EXTRA_DIST = $(service_in_files)
EXTRA_DIST = $(service_in_files) \
org.freedesktop.GeoClue2.Agent.conf
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy context="default">
<allow send_interface="org.freedesktop.GeoClue2.Agent"/>
</policy>
</busconfig>
......@@ -2,10 +2,10 @@ include $(top_srcdir)/Makefile.decl
libexec_PROGRAMS = geoclue
SUBDIRS = agent
if BUILD_GEOIP_SERVER
SUBDIRS = geoip-server
else
SUBDIRS =
SUBDIRS += geoip-server
endif # BUILD_GEOIP_SERVER
interfacedir = $(datadir)/geoclue-2.0
......
include $(top_srcdir)/Makefile.decl
interfacedir = $(datadir)/geoclue-2.0
interface_DATA = geoclue-agent-interface.xml
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = $(interface_DATA)
-include $(top_srcdir)/git.mk
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.freedesktop.GeoClue2.Agent">
<method name="AuthorizeApp">
<arg name="bus_name" type="s" direction="in"/>
<arg name="title" type="s" direction="in"/>
<arg name="authorized" type="b" direction="out"/>
</method>
</interface>
</node>
......@@ -4,6 +4,7 @@ datarootdir=@datarootdir@
datadir=@datadir@
dbus_interface=${datadir}/geoclue-2.0/geoclue-interface.xml
agent_dbus_interface=${datadir}/geoclue-2.0/geoclue-agent-interface.xml
Name: Geoclue
Description: The Geoinformation Service
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment