gir: Import DBus, DBusGLib
authorColin Walters <walters@verbum.org>
Tue, 17 Aug 2010 17:05:29 +0000 (13:05 -0400)
committerColin Walters <walters@verbum.org>
Tue, 17 Aug 2010 17:05:29 +0000 (13:05 -0400)
These used to live in gir-repository; similarly to how we're presently just holding
random .gir files for the lowlevel bits of the platform, suck these in.

In the future they'll be obsoleted by foreigns.

gir/DBus-1.0.gir [new file with mode: 0644]
gir/DBusGLib-1.0.gir [new file with mode: 0644]
gir/Makefile.am

diff --git a/gir/DBus-1.0.gir b/gir/DBus-1.0.gir
new file mode 100644 (file)
index 0000000..331c228
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<repository version="1.1"
+            xmlns="http://www.gtk.org/introspection/core/1.0"
+            xmlns:c="http://www.gtk.org/introspection/c/1.0"
+            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+  <package name="dbus-1"/>
+  <namespace name="DBus"
+             version="1.0"
+             c:prefix="DBus">
+    <enumeration name="BusType" c:type="DBusBusType">
+      <member name="session" value="0" c:identifier="DBUS_BUS_SESSION"/>
+      <member name="system" value="1" c:identifier="DBUS_BUS_SYSTEM"/>
+      <member name="starter" value="2" c:identifier="DBUS_BUS_STARTER"/>
+    </enumeration>
+    <record name="Connection"
+            c:type="DBusConnection"
+            glib:type-name="DBusConnection"
+            glib:get-type="dbus_connection_get_type">
+    </record>
+    <record name="Error" c:type="DBusError">
+    </record>
+    <record name="Message"
+            c:type="DBusMessage">
+    </record>
+    <record name="MessageIter" c:type="DBusMessageIter">
+    </record>
+    <record name="PendingCall" c:type="DBusPendingCall">
+    </record>
+  </namespace>
+</repository>
diff --git a/gir/DBusGLib-1.0.gir b/gir/DBusGLib-1.0.gir
new file mode 100644 (file)
index 0000000..c71d77b
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<repository version="1.1"
+            xmlns="http://www.gtk.org/introspection/core/1.0"
+            xmlns:c="http://www.gtk.org/introspection/c/1.0"
+           xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+  <include name="GObject" version="2.0"/>
+  <package name="dbus-glib-1"/>
+  <namespace name="DBusGLib" version="1.0" c:prefix="DBusG">
+    <record name="Connection" c:type="DBusGConnection"/>
+    <record name="MethodInvocation" c:type="DBusGMethodInvocation"/>
+    <class name="Proxy" c:type="DBusGProxy" parent="GObject.Object"
+      glib:type-name="DBusGProxy" glib:get-type="dbus_g_proxy_get_type">
+    </class>
+    <record name="ProxyClass" c:type="DBusGProxyClass"/>
+  </namespace>
+</repository>
index f9de713..30c0594 100644 (file)
@@ -8,6 +8,8 @@ EXTRA_DIST =
 
 BASE_GIRSOURCES =               \
         cairo-1.0.gir           \
+        DBus-1.0.gir           \
+        DBusGLib-1.0.gir           \
         fontconfig-2.0.gir      \
         freetype2-2.0.gir       \
         GL-1.0.gir              \
@@ -48,6 +50,8 @@ GLib_2_0_gir_FILES =  \
 INTROSPECTION_GIRS += GLib-2.0.gir
 EXTRA_DIST += glib-2.0.c GLib-2.0.xpath
 
+DBusGLib-1.0.typelib: GObject-2.0.gir
+
 # gobject
 GOBJECT_INCLUDEDIR=$(shell pkg-config --variable=includedir gobject-2.0)/glib-2.0
 GOBJECT_LIBDIR=$(shell pkg-config --variable=libdir gobject-2.0)