Commit bcdaedbd authored by Zeeshan Ali's avatar Zeeshan Ali

Generate & link to wpa_supplicant D-Bus wrapper

parent e7760ff5
......@@ -7,7 +7,10 @@ SUBDIRS = public-api agent geocode-glib
interfacedir = $(datadir)/dbus-1/interfaces
interface_DATA = org.freedesktop.GeoClue2.xml
dbus_built_sources = geoclue-interface.c geoclue-interface.h
dbus_built_sources = geoclue-interface.c \
geoclue-interface.h \
wpa_supplicant-interface.c \
wpa_supplicant-interface.h
geoclue-interface.c: geoclue-interface.h
geoclue-interface.h: Makefile.am $(interface_DATA)
$(AM_V_GEN)$(GDBUS_CODEGEN) \
......@@ -17,6 +20,27 @@ geoclue-interface.h: Makefile.am $(interface_DATA)
--generate-docbook=docs \
$(srcdir)/$(interface_DATA)
wpa_supplicant-interface.c: wpa_supplicant-interface.h
wpa_supplicant-interface.h: Makefile.am fi.w1.wpa_supplicant1.xml
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--interface-prefix fi.w1 \
--annotate "fi.w1.wpa_supplicant1" \
org.gtk.GDBus.C.Name WPA_Supplicant \
--annotate "fi.w1.wpa_supplicant1.Interface" \
org.gtk.GDBus.C.Name WPA_Interface \
--annotate "fi.w1.wpa_supplicant1.BSS" \
org.gtk.GDBus.C.Name WPA_BSS \
--annotate "fi.w1.wpa_supplicant1.BSS:SSID" \
org.gtk.GDBus.C.ForceGVariant whatever \
--annotate "fi.w1.wpa_supplicant1.BSS:BSSID" \
org.gtk.GDBus.C.ForceGVariant whatever \
--annotate "fi.w1.wpa_supplicant1.Interface::BSSAdded" \
org.gtk.GDBus.C.Name BSS_Added \
--annotate "fi.w1.wpa_supplicant1.Interface::BSSRemoved" \
org.gtk.GDBus.C.Name BSS_Removed \
--generate-c-code wpa_supplicant-interface \
$(srcdir)/fi.w1.wpa_supplicant1.xml
BUILT_SOURCES = \
$(dbus_built_sources) \
$(NULL)
......@@ -90,7 +114,8 @@ geoclue_LDADD = $(GEOCLUE_LIBS) \
$(builddir)/public-api/libgeoclue-public-api.la
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = $(interface_DATA)
EXTRA_DIST = $(interface_DATA) \
fi.w1.wpa_supplicant1.xml
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = geoclue-$(GEOCLUE_API_VERSION).pc
......
<?xml version="1.0"?>
<!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="fi.w1.wpa_supplicant1">
<signal name="InterfaceAdded">
<arg name="path" type="o"/>
<arg name="properties" type="a{sv}"/>
</signal>
<signal name="InterfaceRemoved">
<arg name="path" type="o"/>
</signal>
<property name="Interfaces" type="ao" access="read"/>
</interface>
<interface name="fi.w1.wpa_supplicant1.Interface">
<signal name="BSSAdded">
<arg name="path" type="o"/>
<arg name="properties" type="a{sv}"/>
</signal>
<signal name="BSSRemoved">
<arg name="path" type="o"/>
</signal>
<property name="State" type="s" access="read"/>
<property name="Ifname" type="s" access="read"/>
<property name="BSSs" type="ao" access="read"/>
</interface>
<interface name="fi.w1.wpa_supplicant1.BSS">
<property name="SSID" type="ay" access="read"/>
<property name="BSSID" type="ay" access="read"/>
<property name="Signal" type="n" access="read"/>
<property name="Frequency" type="q" access="read"/>
</interface>
</node>
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