summaryrefslogtreecommitdiff
path: root/vapi/dbus-glib-1.vapi
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2007-10-09 20:01:49 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-10-09 20:01:49 +0000
commitb3940e541c65cf0f2bf8a38790108b64257c8272 (patch)
treebf6e854234cad7c4430a5d2672458f2ba74e93ba /vapi/dbus-glib-1.vapi
parent1296b89eb0e3f6ca85c1a4f49146910db5fe28b9 (diff)
downloadvala-b3940e541c65cf0f2bf8a38790108b64257c8272.tar.gz
Use --basedir in build system and rename all VAPI files to .vapi, requires
2007-10-09 Juerg Billeter <j@bitron.ch> Use --basedir in build system and rename all VAPI files to .vapi, requires r646 to build svn path=/trunk/; revision=647
Diffstat (limited to 'vapi/dbus-glib-1.vapi')
-rw-r--r--vapi/dbus-glib-1.vapi118
1 files changed, 118 insertions, 0 deletions
diff --git a/vapi/dbus-glib-1.vapi b/vapi/dbus-glib-1.vapi
new file mode 100644
index 000000000..b9984db31
--- /dev/null
+++ b/vapi/dbus-glib-1.vapi
@@ -0,0 +1,118 @@
+/* dbus-glib-1.vala
+ *
+ * Copyright (C) 2007 Jürg Billeter
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author:
+ * Jürg Billeter <j@bitron.ch>
+ */
+
+[CCode (cheader_filename = "dbus/dbus-glib-lowlevel.h,dbus/dbus-glib.h")]
+namespace DBus {
+ [CCode (cprefix = "DBUS_BUS_")]
+ public enum BusType {
+ SESSION,
+ SYSTEM,
+ STARTER
+ }
+
+ public struct RawBus {
+ [CCode (cname = "dbus_bus_get")]
+ public static RawConnection get (BusType type, ref Error error);
+ }
+
+ [CCode (ref_function = "dbus_connection_ref", unref_function = "dbus_connection_unref", cname = "DBusConnection")]
+ public class RawConnection {
+ [CCode (cname = "dbus_connection_setup_with_g_main")]
+ public void setup_with_main (GLib.MainContext context = null);
+ }
+
+ [CCode (cname = "DBusError")]
+ public struct RawError {
+ public string name;
+ public string message;
+
+ [InstanceByReference]
+ public void init ();
+ [InstanceByReference]
+ public bool has_name (string name);
+ [InstanceByReference]
+ public bool is_set ();
+ }
+
+ [ErrorDomain]
+ [CCode (cname = "DBusGError", lower_case_csuffix = "gerror", cprefix = "DBUS_GERROR_")]
+ public enum Error {
+ FAILED,
+ NO_MEMORY,
+ SERVICE_UNKNOWN,
+ NAME_HAS_NO_OWNER,
+ NO_REPLY,
+ IO_ERROR,
+ BAD_ADDRESS,
+ NOT_SUPPORTED,
+ LIMITS_EXCEEDED,
+ ACCESS_DENIED,
+ AUTH_FAILED,
+ NO_SERVER,
+ TIMEOUT,
+ NO_NETWORK,
+ ADDRESS_IN_USE,
+ DISCONNECTED,
+ INVALID_ARGS,
+ FILE_NOT_FOUND,
+ FILE_EXISTS,
+ UNKNOWN_METHOD,
+ TIMED_OUT,
+ MATCH_RULE_NOT_FOUND,
+ MATCH_RULE_INVALID,
+ SPAWN_EXEC_FAILED,
+ SPAWN_FORK_FAILED,
+ SPAWN_CHILD_EXITED,
+ SPAWN_CHILD_SIGNALED,
+ SPAWN_FAILED,
+ UNIX_PROCESS_ID_UNKNOWN,
+ INVALID_SIGNATURE,
+ INVALID_FILE_CONTENT,
+ SELINUX_SECURITY_CONTEXT_UNKNOWN,
+ REMOTE_EXCEPTION
+ }
+
+ public struct Bus {
+ [CCode (cname = "dbus_g_bus_get")]
+ public static Connection get (BusType type) throws Error;
+
+ }
+
+ [CCode (ref_function = "dbus_g_connection_ref", unref_function = "dbus_g_connection_unref", cname = "DBusGConnection")]
+ public class Connection {
+ }
+
+ [CCode (cname = "DBusGProxy", lower_case_csuffix = "g_proxy")]
+ public class Proxy {
+ public Proxy.for_name (Connection! connection, string! name, string! path, string! interface_);
+ public bool call (string! method, out GLib.Error error, GLib.Type first_arg_type, ...);
+ public weak ProxyCall begin_call (string! method, ProxyCallNotify notify, pointer data, GLib.DestroyNotify destroy, GLib.Type first_arg_type, ...);
+ public bool end_call (ProxyCall call, out GLib.Error error, GLib.Type first_arg_type, ...);
+ public void cancel_call (ProxyCall call);
+ }
+
+ [CCode (cname = "DBusGProxyCallNotify")]
+ public static delegate void ProxyCallNotify (Proxy proxy, ProxyCall call_id, pointer user_data);
+
+ public class ProxyCall {
+ }
+}