Commit 4afc11d7 authored by Jussi Kukkonen's avatar Jussi Kukkonen

add manual provider

parent e74429f8
......@@ -83,7 +83,7 @@ AC_SUBST(CONNECTIVITY_LIBS)
AC_SUBST(CONNECTIVITY_CFLAGS)
PROVIDER_SUBDIRS="example hostip geonames"
PROVIDER_SUBDIRS="example hostip geonames manual"
PKG_CHECK_MODULES(GYPSY, [
gypsy
......@@ -118,6 +118,7 @@ providers/gypsy/Makefile
providers/gpsd/Makefile
providers/hostip/Makefile
providers/geonames/Makefile
providers/manual/Makefile
src/Makefile
])
......
libexec_PROGRAMS = geoclue-manual
BUILT_SOURCES = \
geoclue-manual-glue.h
geoclue_manual_SOURCES = \
$(BUILT_SOURCES) \
geoclue-manual.c
CLEANFILES = \
$(BUILT_SOURCES) \
stamp-geoclue-manual-glue.h
EXTRA_DIST = \
$(BUILT_SOURCES)
geoclue_manual_CFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
$(GEOCLUE_CFLAGS)
geoclue_manual_LDADD = \
$(GEOCLUE_LIBS) \
$(top_builddir)/geoclue/libgeoclue.la
providersdir = $(datadir)/geoclue-providers
providers_DATA = geoclue-manual.provider
servicedir = $(DBUS_SERVICES_DIR)
service_in_files = org.freedesktop.Geoclue.Providers.Manual.service.in
service_DATA = $(service_in_files:.service.in=.service)
$(service_DATA): $(service_in_files) Makefile
@sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
%-glue.h: stamp-%-glue.h
@true
stamp-geoclue-manual-glue.h: geoclue-manual.xml
$(DBUS_BINDING_TOOL) --prefix=geoclue_manual --mode=glib-server $< > xgen-$(@F) \
&& (cmp -s xgen-$(@F) $(@F:stamp-%=%) || cp xgen-$(@F) $(@F:stamp-%=%)) \
&& rm -f xgen-$(@F) \
&& echo timestamp > $(@F)
This diff is collapsed.
[Geoclue Provider]
Name=Manual
Service=org.freedesktop.Geoclue.Providers.Manual
Path=/org/freedesktop/Geoclue/Providers/Manual
Interfaces=org.freedesktop.Geoclue.Address
Provides=ProvidesUpdates
Accuracy=5
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/">
<interface name="org.freedesktop.Geoclue.Manual">
<method name="SetAddress">
<arg type="i" name="valid_for" direction="in"/>
<arg name="address" type="a{ss}" direction="in"/>
<arg name="accuracy" type="a(idd)" direction="in"/>
</method>
<method name="SetAddressFields">
<arg type="i" name="valid_for" direction="in"/>
<arg type="s" name="countrycode" direction="in"/>
<arg type="s" name="country" direction="in"/>
<arg type="s" name="region" direction="in"/>
<arg type="s" name="locality" direction="in"/>
<arg type="s" name="area" direction="in"/>
<arg type="s" name="postalcode" direction="in"/>
<arg type="s" name="street" direction="in"/>
</method>
</interface>
</node>
[D-BUS Service]
Name=org.freedesktop.Geoclue.Providers.Manual
Exec=@libexecdir@/geoclue-manual
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