summaryrefslogtreecommitdiff
path: root/vapi
diff options
context:
space:
mode:
Diffstat (limited to 'vapi')
-rw-r--r--vapi/libbamf3.vapi166
-rw-r--r--vapi/libwnck-3.0.deps2
-rw-r--r--vapi/libwnck-3.0.vapi369
-rw-r--r--vapi/unique-3.0.deps8
-rw-r--r--vapi/unique-3.0.vapi94
5 files changed, 639 insertions, 0 deletions
diff --git a/vapi/libbamf3.vapi b/vapi/libbamf3.vapi
new file mode 100644
index 0000000..1edeacc
--- /dev/null
+++ b/vapi/libbamf3.vapi
@@ -0,0 +1,166 @@
+/* libbamf3.vapi generated by vapigen, do not modify. */
+
+namespace Bamf {
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h")]
+ public class Application : Bamf.View {
+ [CCode (has_construct_function = false)]
+ protected Application ();
+ public unowned string get_application_type ();
+ public unowned string get_desktop_file ();
+ public bool get_show_menu_stubs ();
+ public unowned GLib.List get_windows ();
+ public unowned GLib.Array get_xids ();
+ public virtual signal void window_added (Bamf.View p0);
+ public virtual signal void window_removed (Bamf.View p0);
+ }
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h")]
+ public class Control : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected Control ();
+ public static unowned Bamf.Control get_default ();
+ public void insert_desktop_file (string desktop_file);
+ public void register_application_for_pid (string application, int32 pid);
+ public void register_tab_provider (string path);
+ public void set_approver_behavior (int32 behavior);
+ }
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h")]
+ public class Indicator : Bamf.View {
+ [CCode (has_construct_function = false)]
+ protected Indicator ();
+ public unowned string get_dbus_menu_path ();
+ public unowned string get_remote_address ();
+ public unowned string get_remote_path ();
+ }
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h")]
+ public class Matcher : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected Matcher ();
+ public bool application_is_running (string application);
+ public unowned Bamf.Application get_active_application ();
+ public unowned Bamf.Window get_active_window ();
+ public unowned Bamf.Application get_application_for_desktop_file (string desktop_file_path, bool create_if_not_found);
+ public unowned Bamf.Application get_application_for_window (Bamf.Window window);
+ public unowned Bamf.Application get_application_for_xid (uint32 xid);
+ public unowned GLib.List get_applications ();
+ public static unowned Bamf.Matcher get_default ();
+ public unowned GLib.List get_running_applications ();
+ public unowned GLib.List get_tabs ();
+ public unowned GLib.List get_windows ();
+ public unowned GLib.Array get_xids_for_application (string application);
+ public void register_favorites (string favorites);
+ public virtual signal void active_application_changed (GLib.Object p0, GLib.Object p1);
+ public virtual signal void active_window_changed (GLib.Object p0, GLib.Object p1);
+ public virtual signal void view_closed (GLib.Object p0);
+ public virtual signal void view_opened (GLib.Object p0);
+ }
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h")]
+ public class Tab : Bamf.View {
+ [CCode (has_construct_function = false)]
+ public Tab (string id, string uri);
+ public unowned string get_id ();
+ public unowned string get_preview ();
+ public unowned string get_uri ();
+ public void set_preview (string uri);
+ public void set_uri (string uri);
+ public virtual void show ();
+ [NoAccessorMethod]
+ public string id { owned get; set construct; }
+ public string preview { get; set; }
+ public string uri { get; set construct; }
+ public virtual signal void preview_updated ();
+ public virtual signal void uri_changed (string new_uri, string p1);
+ }
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h")]
+ public class TabSource : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected TabSource ();
+ public unowned string get_tab_ids ();
+ public unowned GLib.Array get_tab_preview (string tab_id);
+ public unowned string get_tab_uri (string tab_id);
+ public uint32 get_tab_xid (string tab_id);
+ public virtual void show_tab (string tab_id, GLib.Error error);
+ [NoWrapper]
+ public virtual unowned string tab_ids ();
+ [NoWrapper]
+ public virtual unowned GLib.Array tab_preview (string tab_id);
+ [NoWrapper]
+ public virtual unowned string tab_uri (string tab_id);
+ [NoWrapper]
+ public virtual uint32 tab_xid (string tab_id);
+ [NoAccessorMethod]
+ public string id { owned get; set construct; }
+ public virtual signal void tab_closed (string p0);
+ public virtual signal void tab_opened (string p0);
+ public virtual signal void tab_uri_changed (string p0, string p1, string p2);
+ }
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h")]
+ public class View : GLib.InitiallyUnowned {
+ [CCode (has_construct_function = false)]
+ protected View ();
+ [NoWrapper]
+ public virtual Bamf.ClickBehavior click_behavior ();
+ public virtual unowned GLib.List get_children ();
+ public Bamf.ClickBehavior get_click_suggestion ();
+ public virtual unowned string get_icon ();
+ public virtual unowned string get_name ();
+ public unowned string get_view_type ();
+ public virtual bool is_active ();
+ public bool is_closed ();
+ public virtual bool is_running ();
+ public bool is_sticky ();
+ public virtual bool is_urgent ();
+ [NoWrapper]
+ public virtual void set_path (string path);
+ public void set_sticky (bool value);
+ public bool user_visible ();
+ [NoWrapper]
+ public virtual unowned string view_type ();
+ [NoAccessorMethod]
+ public bool active { get; }
+ [NoAccessorMethod]
+ public string path { owned get; }
+ [NoAccessorMethod]
+ public bool running { get; }
+ [NoAccessorMethod]
+ public bool urgent { get; }
+ public virtual signal void active_changed (bool active);
+ public virtual signal void child_added (Bamf.View child);
+ public virtual signal void child_removed (Bamf.View child);
+ public virtual signal void closed ();
+ public virtual signal void name_changed (string old_name, string new_name);
+ public virtual signal void running_changed (bool running);
+ public virtual signal void urgent_changed (bool urgent);
+ public virtual signal void user_visible_changed (bool user_visible);
+ }
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h")]
+ public class Window : Bamf.View {
+ [CCode (has_construct_function = false)]
+ protected Window ();
+ public unowned Bamf.Window get_transient ();
+ public Bamf.WindowType get_window_type ();
+ public uint32 get_xid ();
+ public ulong last_active ();
+ }
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h", cprefix = "BAMF_CLICK_BEHAVIOR_", has_type_id = false)]
+ public enum ClickBehavior {
+ NONE,
+ OPEN,
+ FOCUS,
+ FOCUS_ALL,
+ MINIMIZE,
+ RESTORE,
+ RESTORE_ALL,
+ PICKER
+ }
+ [CCode (cheader_filename = "libbamf3/libbamf/libbamf.h", cprefix = "BAMF_WINDOW_", has_type_id = false)]
+ public enum WindowType {
+ NORMAL,
+ DESKTOP,
+ DOCK,
+ DIALOG,
+ TOOLBAR,
+ MENU,
+ UTILITY,
+ SPLASHSCREEN
+ }
+}
diff --git a/vapi/libwnck-3.0.deps b/vapi/libwnck-3.0.deps
new file mode 100644
index 0000000..85f5d99
--- /dev/null
+++ b/vapi/libwnck-3.0.deps
@@ -0,0 +1,2 @@
+gio-2.0
+gtk+-3.0
diff --git a/vapi/libwnck-3.0.vapi b/vapi/libwnck-3.0.vapi
new file mode 100644
index 0000000..94c52a8
--- /dev/null
+++ b/vapi/libwnck-3.0.vapi
@@ -0,0 +1,369 @@
+/* libwnck-3.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Wnck", gir_namespace = "Wnck", gir_version = "3.0", lower_case_cprefix = "wnck_")]
+namespace Wnck {
+ namespace Version {
+ [CCode (cheader_filename = "libwnck/libwnck.h", cname = "WNCK_MAJOR_VERSION")]
+ public const int MAJOR_VERSION;
+ [CCode (cheader_filename = "libwnck/libwnck.h", cname = "WNCK_MICRO_VERSION")]
+ public const int MICRO_VERSION;
+ [CCode (cheader_filename = "libwnck/libwnck.h", cname = "WNCK_MINOR_VERSION")]
+ public const int MINOR_VERSION;
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_action_menu_get_type ()")]
+ public class ActionMenu : Gtk.Menu, Atk.Implementor, Gtk.Buildable {
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
+ public ActionMenu (Wnck.Window window);
+ [NoAccessorMethod]
+ public void* window { get; construct; }
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_application_get_type ()")]
+ public class Application : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected Application ();
+ public static unowned Wnck.Application @get (ulong xwindow);
+ public unowned Gdk.Pixbuf get_icon ();
+ public bool get_icon_is_fallback ();
+ public unowned string get_icon_name ();
+ public unowned Gdk.Pixbuf get_mini_icon ();
+ public int get_n_windows ();
+ public unowned string get_name ();
+ public int get_pid ();
+ public unowned string get_startup_id ();
+ public unowned GLib.List<Wnck.Window> get_windows ();
+ public ulong get_xid ();
+ public virtual signal void icon_changed ();
+ public virtual signal void name_changed ();
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_class_group_get_type ()")]
+ public class ClassGroup : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected ClassGroup ();
+ public static unowned Wnck.ClassGroup @get (string id);
+ public unowned Gdk.Pixbuf get_icon ();
+ public unowned string get_id ();
+ public unowned Gdk.Pixbuf get_mini_icon ();
+ public unowned string get_name ();
+ public unowned string get_res_class ();
+ public unowned GLib.List<Wnck.Window> get_windows ();
+ public virtual signal void icon_changed ();
+ public virtual signal void name_changed ();
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_pager_get_type ()")]
+ public class Pager : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
+ public Pager ();
+ public void set_display_mode (Wnck.PagerDisplayMode mode);
+ public bool set_n_rows (int n_rows);
+ public bool set_orientation (Gtk.Orientation orientation);
+ public void set_shadow_type (Gtk.ShadowType shadow_type);
+ public void set_show_all (bool show_all_workspaces);
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_screen_get_type ()")]
+ public class Screen : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected Screen ();
+ public void calc_workspace_layout (int num_workspaces, int space_index, Wnck.WorkspaceLayout layout);
+ public void change_workspace_count (int count);
+ public void force_update ();
+ public static void free_workspace_layout (Wnck.WorkspaceLayout layout);
+ public static unowned Wnck.Screen @get (int index);
+ public unowned Wnck.Window get_active_window ();
+ public unowned Wnck.Workspace get_active_workspace ();
+ public ulong get_background_pixmap ();
+ public static unowned Wnck.Screen get_default ();
+ public static unowned Wnck.Screen get_for_root (ulong root_window_id);
+ public int get_height ();
+ public int get_number ();
+ public unowned Wnck.Window get_previously_active_window ();
+ public bool get_showing_desktop ();
+ public int get_width ();
+ public unowned string get_window_manager_name ();
+ public unowned GLib.List<Wnck.Window> get_windows ();
+ public unowned GLib.List<Wnck.Window> get_windows_stacked ();
+ public unowned Wnck.Workspace get_workspace (int workspace);
+ public int get_workspace_count ();
+ public unowned GLib.List<Wnck.Workspace> get_workspaces ();
+ public void move_viewport (int x, int y);
+ public bool net_wm_supports (string atom);
+ public void release_workspace_layout (int current_token);
+ public void toggle_showing_desktop (bool show);
+ public int try_set_workspace_layout (int current_token, int rows, int columns);
+ public virtual signal void active_window_changed (Wnck.Window previous_window);
+ public virtual signal void active_workspace_changed (Wnck.Workspace previous_workspace);
+ public virtual signal void application_closed (Wnck.Application app);
+ public virtual signal void application_opened (Wnck.Application app);
+ public virtual signal void background_changed ();
+ public virtual signal void class_group_closed (Wnck.ClassGroup class_group);
+ public virtual signal void class_group_opened (Wnck.ClassGroup class_group);
+ public virtual signal void showing_desktop_changed ();
+ public virtual signal void viewports_changed ();
+ public virtual signal void window_closed (Wnck.Window window);
+ public virtual signal void window_manager_changed ();
+ public virtual signal void window_opened (Wnck.Window window);
+ public virtual signal void window_stacking_changed ();
+ public virtual signal void workspace_created (Wnck.Workspace space);
+ public virtual signal void workspace_destroyed (Wnck.Workspace space);
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_selector_get_type ()")]
+ public class Selector : Gtk.MenuBar, Atk.Implementor, Gtk.Buildable {
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
+ public Selector ();
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_tasklist_get_type ()")]
+ public class Tasklist : Gtk.Container, Atk.Implementor, Gtk.Buildable {
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
+ public Tasklist ();
+ public int get_size_hint_list (int n_elements);
+ public void set_button_relief (Gtk.ReliefStyle relief);
+ public void set_grouping (Wnck.TasklistGroupingType grouping);
+ public void set_grouping_limit (int limit);
+ public void set_include_all_workspaces (bool include_all_workspaces);
+ public void set_switch_workspace_on_unminimize (bool switch_workspace_on_unminimize);
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_window_get_type ()")]
+ public class Window : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected Window ();
+ public void activate (uint32 timestamp);
+ public void activate_transient (uint32 timestamp);
+ public void close (uint32 timestamp);
+ public static unowned Wnck.Window @get (ulong xwindow);
+ public Wnck.WindowActions get_actions ();
+ public unowned Wnck.Application get_application ();
+ public unowned Wnck.ClassGroup get_class_group ();
+ public unowned string get_class_group_name ();
+ public unowned string get_class_instance_name ();
+ public void get_client_window_geometry (out int xp, out int yp, out int widthp, out int heightp);
+ public void get_geometry (out int xp, out int yp, out int widthp, out int heightp);
+ public ulong get_group_leader ();
+ public unowned Gdk.Pixbuf get_icon ();
+ public bool get_icon_is_fallback ();
+ public unowned string get_icon_name ();
+ public unowned Gdk.Pixbuf get_mini_icon ();
+ public unowned string get_name ();
+ public int get_pid ();
+ public unowned Wnck.Screen get_screen ();
+ public unowned string get_session_id ();
+ public unowned string get_session_id_utf8 ();
+ public int get_sort_order ();
+ public Wnck.WindowState get_state ();
+ public unowned Wnck.Window get_transient ();
+ public Wnck.WindowType get_window_type ();
+ public unowned Wnck.Workspace get_workspace ();
+ public ulong get_xid ();
+ public bool has_icon_name ();
+ public bool has_name ();
+ public bool is_above ();
+ public bool is_active ();
+ public bool is_below ();
+ public bool is_fullscreen ();
+ public bool is_in_viewport (Wnck.Workspace workspace);
+ public bool is_maximized ();
+ public bool is_maximized_horizontally ();
+ public bool is_maximized_vertically ();
+ public bool is_minimized ();
+ public bool is_most_recently_activated ();
+ public bool is_on_workspace (Wnck.Workspace workspace);
+ public bool is_pinned ();
+ public bool is_shaded ();
+ public bool is_skip_pager ();
+ public bool is_skip_tasklist ();
+ public bool is_sticky ();
+ public bool is_visible_on_workspace (Wnck.Workspace workspace);
+ public void keyboard_move ();
+ public void keyboard_size ();
+ public void make_above ();
+ public void make_below ();
+ public void maximize ();
+ public void maximize_horizontally ();
+ public void maximize_vertically ();
+ public void minimize ();
+ public void move_to_workspace (Wnck.Workspace space);
+ public bool needs_attention ();
+ public bool or_transient_needs_attention ();
+ public void pin ();
+ public void set_fullscreen (bool fullscreen);
+ public void set_geometry (Wnck.WindowGravity gravity, Wnck.WindowMoveResizeMask geometry_mask, int x, int y, int width, int height);
+ public void set_icon_geometry (int x, int y, int width, int height);
+ public void set_skip_pager (bool skip);
+ public void set_skip_tasklist (bool skip);
+ public void set_sort_order (int order);
+ public void set_window_type (Wnck.WindowType wintype);
+ public void shade ();
+ public void stick ();
+ public bool transient_is_most_recently_activated ();
+ public void unmake_above ();
+ public void unmake_below ();
+ public void unmaximize ();
+ public void unmaximize_horizontally ();
+ public void unmaximize_vertically ();
+ public void unminimize (uint32 timestamp);
+ public void unpin ();
+ public void unshade ();
+ public void unstick ();
+ public virtual signal void actions_changed (Wnck.WindowActions changed_mask, Wnck.WindowActions new_actions);
+ public virtual signal void geometry_changed ();
+ public virtual signal void icon_changed ();
+ public virtual signal void name_changed ();
+ public virtual signal void state_changed (Wnck.WindowState changed_mask, Wnck.WindowState new_state);
+ public virtual signal void workspace_changed ();
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_workspace_get_type ()")]
+ public class Workspace : GLib.Object {
+ [CCode (has_construct_function = false)]
+ protected Workspace ();
+ public void activate (uint32 timestamp);
+ public void change_name (string name);
+ public int get_height ();
+ public int get_layout_column ();
+ public int get_layout_row ();
+ public unowned string get_name ();
+ public unowned Wnck.Workspace get_neighbor (Wnck.MotionDirection direction);
+ public int get_number ();
+ public unowned Wnck.Screen get_screen ();
+ public int get_viewport_x ();
+ public int get_viewport_y ();
+ public int get_width ();
+ public bool is_virtual ();
+ public virtual signal void name_changed ();
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h")]
+ public struct ResourceUsage {
+ public ulong total_bytes_estimate;
+ public ulong pixmap_bytes;
+ public uint n_pixmaps;
+ public uint n_windows;
+ public uint n_gcs;
+ public uint n_pictures;
+ public uint n_glyphsets;
+ public uint n_fonts;
+ public uint n_colormap_entries;
+ public uint n_passive_grabs;
+ public uint n_cursors;
+ public uint n_other;
+ [CCode (cname = "wnck_pid_read_resource_usage")]
+ public static Wnck.ResourceUsage pid_read (Gdk.Display gdk_display, ulong pid);
+ [CCode (cname = "wnck_xid_read_resource_usage")]
+ public static Wnck.ResourceUsage xid_read (Gdk.Display gdk_display, ulong xid);
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h")]
+ public struct WorkspaceLayout {
+ public int rows;
+ public int cols;
+ public int grid;
+ public int grid_area;
+ public int current_row;
+ public int current_col;
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_CLIENT_TYPE_")]
+ public enum ClientType {
+ APPLICATION,
+ PAGER
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_MOTION_")]
+ public enum MotionDirection {
+ UP,
+ DOWN,
+ LEFT,
+ RIGHT
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_PAGER_DISPLAY_")]
+ public enum PagerDisplayMode {
+ NAME,
+ CONTENT
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_TASKLIST_")]
+ public enum TasklistGroupingType {
+ NEVER_GROUP,
+ AUTO_GROUP,
+ ALWAYS_GROUP
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_WINDOW_ACTION_")]
+ [Flags]
+ public enum WindowActions {
+ MOVE,
+ RESIZE,
+ SHADE,
+ STICK,
+ MAXIMIZE_HORIZONTALLY,
+ MAXIMIZE_VERTICALLY,
+ CHANGE_WORKSPACE,
+ CLOSE,
+ UNMAXIMIZE_HORIZONTALLY,
+ UNMAXIMIZE_VERTICALLY,
+ UNSHADE,
+ UNSTICK,
+ MINIMIZE,
+ UNMINIMIZE,
+ MAXIMIZE,
+ UNMAXIMIZE,
+ FULLSCREEN,
+ ABOVE,
+ BELOW
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_WINDOW_GRAVITY_")]
+ public enum WindowGravity {
+ CURRENT,
+ NORTHWEST,
+ NORTH,
+ NORTHEAST,
+ WEST,
+ CENTER,
+ EAST,
+ SOUTHWEST,
+ SOUTH,
+ SOUTHEAST,
+ STATIC
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_WINDOW_CHANGE_")]
+ [Flags]
+ public enum WindowMoveResizeMask {
+ X,
+ Y,
+ WIDTH,
+ HEIGHT
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_WINDOW_STATE_")]
+ [Flags]
+ public enum WindowState {
+ MINIMIZED,
+ MAXIMIZED_HORIZONTALLY,
+ MAXIMIZED_VERTICALLY,
+ SHADED,
+ SKIP_PAGER,
+ SKIP_TASKLIST,
+ STICKY,
+ HIDDEN,
+ FULLSCREEN,
+ DEMANDS_ATTENTION,
+ URGENT,
+ ABOVE,
+ BELOW
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cprefix = "WNCK_WINDOW_")]
+ public enum WindowType {
+ NORMAL,
+ DESKTOP,
+ DOCK,
+ DIALOG,
+ TOOLBAR,
+ MENU,
+ UTILITY,
+ SPLASHSCREEN
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cname = "_WnckLayoutCorner", cprefix = "WNCK_LAYOUT_CORNER_")]
+ public enum _LayoutCorner {
+ TOPLEFT,
+ TOPRIGHT,
+ BOTTOMRIGHT,
+ BOTTOMLEFT
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h", cname = "_WnckLayoutOrientation", cprefix = "WNCK_LAYOUT_ORIENTATION_")]
+ public enum _LayoutOrientation {
+ HORIZONTAL,
+ VERTICAL
+ }
+ [CCode (cheader_filename = "libwnck/libwnck.h")]
+ public static void set_client_type (Wnck.ClientType ewmh_sourceindication_client_type);
+}
diff --git a/vapi/unique-3.0.deps b/vapi/unique-3.0.deps
new file mode 100644
index 0000000..e762c58
--- /dev/null
+++ b/vapi/unique-3.0.deps
@@ -0,0 +1,8 @@
+gio-2.0
+cairo
+atk
+pango
+gdk-3.0
+gdk-pixbuf-2.0
+gtk+-3.0
+
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;
+}