From: Jürg Billeter Date: Sat, 5 Jul 2008 12:33:58 +0000 (+0000) Subject: Add unique-1.0 bindings, patch by Phil Housley, fixes bug 540821 X-Git-Tag: VALA_0_3_5~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98484808829afbc67ae653a881c005276e47ee14;p=platform%2Fupstream%2Fvala.git Add unique-1.0 bindings, patch by Phil Housley, fixes bug 540821 2008-07-05 Jürg Billeter * vapi/Makefile.am: * vapi/unique-1.0.deps: * vapi/unique-1.0.vapi: * vapi/packages/unique-1.0/: Add unique-1.0 bindings, patch by Phil Housley, fixes bug 540821 svn path=/trunk/; revision=1674 --- diff --git a/ChangeLog b/ChangeLog index 8261a6c..0b6ef89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-07-05 Jürg Billeter + + * vapi/Makefile.am: + * vapi/unique-1.0.deps: + * vapi/unique-1.0.vapi: + * vapi/packages/unique-1.0/: + + Add unique-1.0 bindings, patch by Phil Housley, fixes bug 540821 + 2008-07-03 Jürg Billeter * gobject-introspection/scanner.c: (g_igenerator_add_symbol): diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 0c67957..d75cb46 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -122,6 +122,8 @@ dist_vapi_DATA = \ sqlite3.vapi \ taglib_c.vapi \ tiff.vapi \ + unique-1.0.deps \ + unique-1.0.vapi \ vala-1.0.vapi \ vte.deps \ vte.vapi \ diff --git a/vapi/packages/unique-1.0/unique-1.0.deps b/vapi/packages/unique-1.0/unique-1.0.deps new file mode 100644 index 0000000..ed3fb6d --- /dev/null +++ b/vapi/packages/unique-1.0/unique-1.0.deps @@ -0,0 +1,3 @@ +gdk-2.0 +gtk+-2.0 + diff --git a/vapi/packages/unique-1.0/unique-1.0.files b/vapi/packages/unique-1.0/unique-1.0.files new file mode 100644 index 0000000..4ac61ad --- /dev/null +++ b/vapi/packages/unique-1.0/unique-1.0.files @@ -0,0 +1,2 @@ +include/unique-1.0 +lib/libunique-1.0.so diff --git a/vapi/packages/unique-1.0/unique-1.0.gi b/vapi/packages/unique-1.0/unique-1.0.gi new file mode 100644 index 0000000..0d75eb8 --- /dev/null +++ b/vapi/packages/unique-1.0/unique-1.0.gi @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/unique-1.0/unique-1.0.metadata b/vapi/packages/unique-1.0/unique-1.0.metadata new file mode 100644 index 0000000..9087fa1 --- /dev/null +++ b/vapi/packages/unique-1.0/unique-1.0.metadata @@ -0,0 +1,9 @@ +Unique cheader_filename="unique/unique.h" +unique_app_is_running hidden="1" +unique_app_send_message.message_data nullable="1" +unique_message_data_copy transfer_ownership="1" +unique_message_data_set.data nullable="1" +unique_message_data_get_text transfer_ownership="1" +unique_message_data_get_uris is_array="1" no_array_length="1" transfer_ownership="1" +unique_message_data_set_uris no_array_length="1" +unique_message_data_set_uris.uris is_array="1" diff --git a/vapi/packages/unique-1.0/unique-1.0.namespace b/vapi/packages/unique-1.0/unique-1.0.namespace new file mode 100644 index 0000000..4708f7e --- /dev/null +++ b/vapi/packages/unique-1.0/unique-1.0.namespace @@ -0,0 +1 @@ +Unique diff --git a/vapi/unique-1.0.deps b/vapi/unique-1.0.deps new file mode 100644 index 0000000..ed3fb6d --- /dev/null +++ b/vapi/unique-1.0.deps @@ -0,0 +1,3 @@ +gdk-2.0 +gtk+-2.0 + diff --git a/vapi/unique-1.0.vapi b/vapi/unique-1.0.vapi new file mode 100644 index 0000000..ed02dff --- /dev/null +++ b/vapi/unique-1.0.vapi @@ -0,0 +1,87 @@ +/* unique-1.0.vapi generated by vapigen, do not modify. */ + +[CCode (cprefix = "Unique", lower_case_cprefix = "unique_")] +namespace Unique { + [CCode (cprefix = "UNIQUE_", has_type_id = "0", cheader_filename = "unique/unique.h")] + public enum Command { + INVALID, + ACTIVATE, + NEW, + OPEN, + CLOSE + } + [CCode (cprefix = "UNIQUE_RESPONSE_", has_type_id = "0", cheader_filename = "unique/unique.h")] + public enum Response { + INVALID, + OK, + CANCEL, + FAIL + } + [Compact] + [CCode (copy_function = "unique_message_data_copy", cheader_filename = "unique/unique.h")] + public class MessageData { + public Unique.MessageData copy (); + public weak Gdk.Screen get_screen (); + public weak string get_startup_id (); + public string get_text (); + [NoArrayLength] + public string[] get_uris (); + public uint get_workspace (); + public MessageData (); + public void set (uchar[] data, ulong length); + public bool set_text (string str, long length); + [NoArrayLength] + public bool set_uris (string[] uris); + } + [CCode (cheader_filename = "unique/unique.h")] + public class App : GLib.Object { + public void add_command (string command_name, int command_id); + public App (string name, string startup_id); + public App.with_commands (string name, string startup_id, ...); + public Unique.Response send_message (int command_id, Unique.MessageData? message_data); + public void watch_window (Gtk.Window window); + [NoAccessorMethod] + public bool is_running { get; } + [NoAccessorMethod] + public string name { get; construct; } + [NoAccessorMethod] + public Gdk.Screen screen { get; set construct; } + [NoAccessorMethod] + public string startup_id { get; construct; } + public virtual signal Unique.Response message_received (int command, Unique.MessageData message_data, uint time_); + } + [CCode (cheader_filename = "unique/unique.h")] + public class Backend : GLib.Object { + public weak Unique.App parent; + public weak string name; + public weak string startup_id; + public weak Gdk.Screen screen; + public uint workspace; + public static weak Unique.Backend create (); + public weak string get_name (); + public weak Gdk.Screen get_screen (); + public weak string get_startup_id (); + public uint get_workspace (); + public void set_name (string name); + public void set_screen (Gdk.Screen screen); + public void set_startup_id (string startup_id); + public virtual bool request_name (); + public virtual Unique.Response send_message (int command_id, Unique.MessageData message_data, uint time_); + } + [CCode (cheader_filename = "unique/unique.h")] + public const string API_VERSION_S; + [CCode (cheader_filename = "unique/unique.h")] + public const string DEFAULT_BACKEND_S; + [CCode (cheader_filename = "unique/unique.h")] + public const int MAJOR_VERSION; + [CCode (cheader_filename = "unique/unique.h")] + public const int MICRO_VERSION; + [CCode (cheader_filename = "unique/unique.h")] + public const int MINOR_VERSION; + [CCode (cheader_filename = "unique/unique.h")] + public const string PROTOCOL_VERSION_S; + [CCode (cheader_filename = "unique/unique.h")] + public const int VERSION_HEX; + [CCode (cheader_filename = "unique/unique.h")] + public const string VERSION_S; +}