Commit be7dc89d authored by David Zeuthen's avatar David Zeuthen
Browse files

Build gir/typelib for PolkitAgent-1.0


Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
parent cb7bfcb8
......@@ -100,6 +100,39 @@ polkit_agent_helper_1_LDADD = \
$(top_builddir)/src/polkit/libpolkit-gobject-1.la \
$(NULL)
if ENABLE_INTROSPECTION
girdir = $(GIRDIR)
gir_DATA = PolkitAgent-1.0.gir
typelibsdir = $(GIRTYPELIBDIR)
typelibs_DATA = PolkitAgent-1.0.typelib
PolkitAgent-1.0.gir: libpolkit-agent-1.la $(G_IR_SCANNER) Makefile.am
$(G_IR_SCANNER) -v \
--warn-all \
--namespace PolkitAgent \
--nsversion=1.0 \
--include=Gio-2.0 \
--include-uninstalled=$(top_builddir)/src/polkit/Polkit-1.0.gir \
--library=polkit-agent-1 \
--output $@ \
--pkg=glib-2.0 \
--pkg=gobject-2.0 \
--pkg=gio-2.0 \
--libtool=$(top_builddir)/libtool \
-I$(top_srcdir)/src \
-D_POLKIT_COMPILATION \
-D_POLKIT_AGENT_COMPILATION \
$(libpolkit_agent_1_la_SOURCES) \
$(NULL)
PolkitAgent-1.0.typelib: PolkitAgent-1.0.gir $(G_IR_COMPILER)
$(G_IR_COMPILER) \
--includedir $(top_builddir)/src/polkit \
$< -o $@
endif # ENABLE_INTROSPECTION
# polkit-agent-helper-1 need to be setuid root because it's used to
# authenticate not only the invoking user, but possibly also root
# and/or other users.
......
......@@ -385,8 +385,9 @@ server_thread_func (gpointer user_data)
*
* Note that the calling thread is blocked until a reply is received.
*
* Returns: %NULL if @error is set, otherwise a registration handle
* that can be used with polkit_agent_listener_unregister().
* Returns: (transfer full): %NULL if @error is set, otherwise a
* registration handle that can be used with
* polkit_agent_listener_unregister().
*/
gpointer
polkit_agent_listener_register (PolkitAgentListener *listener,
......
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