summaryrefslogtreecommitdiff
path: root/vapi/unique-3.0.vapi
diff options
context:
space:
mode:
authorAlessandro Ghedini <al3xbio@gmail.com>2012-01-21 19:07:09 +0100
committerAlessandro Ghedini <al3xbio@gmail.com>2012-01-21 19:07:09 +0100
commit60560a030fda3c539ff9dc1563b9926414a193da (patch)
tree77590b395685a8d48d3615e45629a1610d08c071 /vapi/unique-3.0.vapi
parentd6b2677825cbb423e2099563c16321c3e23d7899 (diff)
Imported Upstream version 0.4.0upstream/0.4.0
Diffstat (limited to 'vapi/unique-3.0.vapi')
-rw-r--r--vapi/unique-3.0.vapi94
1 files changed, 94 insertions, 0 deletions
diff --git a/vapi/unique-3.0.vapi b/vapi/unique-3.0.vapi
new file mode 100644
index 0000000..79f67c5
--- /dev/null
+++ b/vapi/unique-3.0.vapi
@@ -0,0 +1,94 @@
+/* unique-3.0.vapi generated by vapigen, do not modify. */
+/* Pulled from http://permalink.gmane.org/gmane.linux.redhat.fedora.devel/147876 */
+
+[CCode (cprefix = "Unique", lower_case_cprefix = "unique_")]
+namespace Unique {
+ [CCode (cheader_filename = "unique/uniqueapp.h")]
+ public class App : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public App (string name, string? startup_id);
+ public void add_command (string command_name, int command_id);
+ public bool is_running ();
+ public Unique.Response send_message (int command_id, Unique.MessageData? message_data);
+ public void watch_window (Gtk.Window window);
+ [CCode (has_construct_function = false)]
+ public App.with_commands (string name, string startup_id, ...);
+ [NoAccessorMethod]
+ public string name { owned get; construct; }
+ [NoAccessorMethod]
+ public Gdk.Screen screen { owned get; set construct; }
+ [NoAccessorMethod]
+ public string startup_id { owned get; construct; }
+ public virtual signal Unique.Response message_received (int command, Unique.MessageData message_data, uint time_);
+ }
+ [CCode (cheader_filename = "unique/uniquebackend.h")]
+ public class Backend : GLib.Object {
+ public weak string name;
+ public weak Unique.App parent;
+ public weak Gdk.Screen screen;
+ public weak string startup_id;
+ public uint workspace;
+ [CCode (has_construct_function = false)]
+ protected Backend ();
+ public static unowned Unique.Backend create ();
+ public unowned string get_name ();
+ public unowned Gdk.Screen get_screen ();
+ public unowned string get_startup_id ();
+ public uint get_workspace ();
+ public virtual bool request_name ();
+ public virtual Unique.Response send_message (int command_id, Unique.MessageData message_data, uint time_);
+ public void set_name (string name);
+ public void set_screen (Gdk.Screen screen);
+ public void set_startup_id (string startup_id);
+ }
+ [Compact]
+ [CCode (copy_function = "unique_message_data_copy", type_id = "UNIQUE_TYPE_MESSAGE_DATA", cheader_filename = "unique/uniquemessage.h")]
+ public class MessageData {
+ [CCode (has_construct_function = false)]
+ public MessageData ();
+ public unowned Unique.MessageData copy ();
+ public unowned uchar[] @get (size_t length);
+ public unowned string get_filename ();
+ public unowned Gdk.Screen get_screen ();
+ public unowned string get_startup_id ();
+ public unowned string get_text ();
+ public unowned string get_uris ();
+ public uint get_workspace ();
+ public void @set (uchar[] data, ssize_t length);
+ public void set_filename (string filename);
+ public bool set_text (string str, ssize_t length);
+ public bool set_uris (string uris);
+ }
+ [CCode (cprefix = "UNIQUE_", cheader_filename = "unique/uniqueenumtypes.h")]
+ public enum Command {
+ INVALID,
+ ACTIVATE,
+ NEW,
+ OPEN,
+ CLOSE
+ }
+ [CCode (cprefix = "UNIQUE_RESPONSE_", cheader_filename = "unique/uniqueenumtypes.h")]
+ public enum Response {
+ INVALID,
+ OK,
+ CANCEL,
+ FAIL,
+ PASSTHROUGH
+ }
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const string API_VERSION_S;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const string DEFAULT_BACKEND_S;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const int MAJOR_VERSION;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const int MICRO_VERSION;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const int MINOR_VERSION;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const string PROTOCOL_VERSION_S;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const int VERSION_HEX;
+ [CCode (cheader_filename = "unique/uniqueversion.h")]
+ public const string VERSION_S;
+}