Closes #6209 Precise support for GIR WebKitGTK binding. Rolls back to deprecated context menu in composer for compatibility with WebKitGTK 1.8
Squashed commit of the following:
commit 6e066374da45dd602ee1ca3c9bc5f77b9411b6f4
Author: Eric Gregory <eric@yorba.org>
Date: Tue Jan 15 11:36:32 2013 -0800
Closes #6209 Precise support for GIR WebKitGTK binding. Rolls back to deprecated context menu in composer for compatibility with WebKitGTK 1.8
This commit is contained in:
parent
03b88277ba
commit
3467c72035
18 changed files with 27346 additions and 9 deletions
22
bindings/vapi/Makefile
Normal file
22
bindings/vapi/Makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# NOTE: The dependencies in this file require vapigen and vala-gen-introspect to be installed,
|
||||
# which are not default in a standard Vala installation.
|
||||
|
||||
GMIME_FILES := \
|
||||
gmime-2.6/gmime-2.6.defines \
|
||||
gmime-2.6/gmime-2.6.files \
|
||||
gmime-2.6/gmime-2.6.metadata \
|
||||
gmime-2.6/gmime-2.6.namespace \
|
||||
gmime-2.6/gmime-2.6-custom.vala
|
||||
|
||||
all: gmime-2.6.vapi
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm gmime-2.6.vapi gmime-2.6/gmime-2.6.gi
|
||||
|
||||
gmime-2.6/gmime-2.6.gi: $(GMIME_FILES)
|
||||
vala-gen-introspect gmime-2.6 gmime-2.6
|
||||
|
||||
gmime-2.6.vapi: gmime-2.6/gmime-2.6.gi
|
||||
vapigen --pkg=glib-2.0 --pkg=gio-2.0 --library gmime-2.6 gmime-2.6/gmime-2.6.gi gmime-2.6/gmime-2.6-custom.vala
|
||||
|
||||
1446
bindings/vapi/gmime-2.6.vapi
Normal file
1446
bindings/vapi/gmime-2.6.vapi
Normal file
File diff suppressed because it is too large
Load diff
72
bindings/vapi/gmime-2.6/gmime-2.6-custom.vala
Normal file
72
bindings/vapi/gmime-2.6/gmime-2.6-custom.vala
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
/* Copyright 2011-2012 Yorba Foundation
|
||||
*
|
||||
* This software is licensed under the GNU Lesser General Public License
|
||||
* (version 2.1 or later). See the COPYING file in this distribution.
|
||||
*/
|
||||
|
||||
[CCode (cname="InternetAddress", cheader_filename="gmime/gmime.h", type_id="INTERNET_ADDRESS_TYPE", type_check_function="IS_INTERNET_ADDRESS")]
|
||||
public class InternetAddress : GLib.Object {
|
||||
[CCode (cname="internet_address_get_name")]
|
||||
public unowned string? get_name();
|
||||
[CCode (cname="internet_address_set_name")]
|
||||
public void set_name(string? name);
|
||||
[CCode (cname="internet_address_to_string")]
|
||||
public virtual string to_string(bool encoded);
|
||||
}
|
||||
|
||||
[CCode (cname="InternetAddressGroup", cheader_filename="gmime/gmime.h", type_id="INTERNET_ADDRESS_TYPE_GROUP", type_check_function="INTERNET_ADDRESS_IS_GROUP")]
|
||||
public class InternetAddressGroup : InternetAddress {
|
||||
[CCode (cname="internet_address_group_new")]
|
||||
public InternetAddressGroup(string name);
|
||||
[CCode (cname="internet_address_group_get_members")]
|
||||
public InternetAddressList get_members();
|
||||
[CCode (cname="internet_address_group_set_members")]
|
||||
public void set_members(InternetAddressList members);
|
||||
[CCode (cname="internet_address_group_add_member")]
|
||||
public int add_member(InternetAddress member);
|
||||
}
|
||||
|
||||
[CCode (cname="InternetAddressMailbox", cheader_filename="gmime/gmime.h", type_id="INTERNET_ADDRESS_TYPE_MAILBOX", type_check_function="INTERNET_ADDRESS_IS_MAILBOX")]
|
||||
public class InternetAddressMailbox : InternetAddress {
|
||||
[CCode (cname="internet_address_mailbox_new")]
|
||||
public InternetAddressMailbox(string? name, string addr);
|
||||
[CCode (cname="internet_address_mailbox_get_addr")]
|
||||
public unowned string get_addr();
|
||||
[CCode (cname="internet_address_mailbox_set_addr")]
|
||||
public void set_addr(string addr);
|
||||
}
|
||||
|
||||
[CCode (cname="InternetAddressList", cheader_filename="gmime/gmime.h", type_id="INTERNET_ADDRESS_LIST_TYPE", type_check_function="IS_INTERNET_ADDRESS_LIST")]
|
||||
public class InternetAddressList : GLib.Object {
|
||||
[CCode (cname="internet_address_list_new")]
|
||||
public InternetAddressList();
|
||||
[CCode (cname="internet_address_list_length")]
|
||||
public int length();
|
||||
[CCode (cname="internet_address_list_clear")]
|
||||
public void clear();
|
||||
[CCode (cname="internet_address_list_add")]
|
||||
public int add(InternetAddress addr);
|
||||
[CCode (cname="internet_address_list_insert")]
|
||||
public void insert(int index, InternetAddress addr);
|
||||
[CCode (cname="internet_address_list_remove")]
|
||||
public bool remove(InternetAddress addr);
|
||||
[CCode (cname="internet_address_list_remove_at")]
|
||||
public bool remove_at(int index);
|
||||
[CCode (cname="internet_address_list_contains")]
|
||||
public bool contains(InternetAddress addr);
|
||||
[CCode (cname="internet_address_list_index_of")]
|
||||
public int index_of(InternetAddress addr);
|
||||
[CCode (cname="internet_address_list_get_address")]
|
||||
public unowned InternetAddress get_address(int index);
|
||||
[CCode (cname="internet_address_list_set_address")]
|
||||
public void set_address(int index, InternetAddress addr);
|
||||
[CCode (cname="internet_address_list_prepend")]
|
||||
public void prepend(InternetAddressList prepend);
|
||||
[CCode (cname="internet_address_list_append")]
|
||||
public void append(InternetAddressList append);
|
||||
[CCode (cname="internet_address_list_to_string")]
|
||||
public string? to_string(bool encode);
|
||||
[CCode (cname="internet_address_list_parse_string")]
|
||||
public static InternetAddressList? parse_string(string str);
|
||||
}
|
||||
|
||||
0
bindings/vapi/gmime-2.6/gmime-2.6.defines
Normal file
0
bindings/vapi/gmime-2.6/gmime-2.6.defines
Normal file
2
bindings/vapi/gmime-2.6/gmime-2.6.files
Normal file
2
bindings/vapi/gmime-2.6/gmime-2.6.files
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
include/gmime-2.6/
|
||||
lib/libgmime-2.6.so
|
||||
63
bindings/vapi/gmime-2.6/gmime-2.6.metadata
Normal file
63
bindings/vapi/gmime-2.6/gmime-2.6.metadata
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
GMime lower_case_cprefix="gmime_" cheader_filename="gmime/gmime.h"
|
||||
|
||||
GMimeObject abstract="1"
|
||||
GMimeStream abstract="1"
|
||||
|
||||
g_mime_header_list_get_iter.iter is_out="1"
|
||||
g_mime_message_get_date.date is_out="1"
|
||||
g_mime_message_get_date.tz_offset is_out="1"
|
||||
g_mime_message_get_mime_part is_nullable="1"
|
||||
g_mime_object_get_content_type_parameter nullable="1"
|
||||
g_mime_object_to_string transfer_ownership="1"
|
||||
g_mime_param_next name="get_next"
|
||||
g_mime_parser_construct_message nullable="1"
|
||||
g_mime_part_get_content_part nullable="1"
|
||||
g_mime_signer_next name="get_next"
|
||||
g_mime_stream_mem_new_with_buffer.buffer is_array="1" array_length_pos="1.0" type_name="uint8[]"
|
||||
g_mime_stream_mem_new_with_buffer.len hidden="1"
|
||||
g_mime_utils_decode_8bit transfer_ownership="1"
|
||||
g_mime_utils_header_decode_date type_name="time_t"
|
||||
g_mime_utils_header_decode_date.tz_offset is_out="1" nullable="1"
|
||||
g_mime_utils_header_decode_phrase transfer_ownership="1"
|
||||
g_mime_utils_header_decode_text transfer_ownership="1"
|
||||
|
||||
# FIXME: there is no keyword "is_protected"
|
||||
GMimeFilter.backbuf type_name="char*" is_protected="1"
|
||||
GMimeFilter.backlen is_protected="1"
|
||||
GMimeFilter.backsize is_protected="1"
|
||||
GMimeFilter.outbuf is_array="1" type_name="char[]" array_length_cname="outsize" array_length_type="size_t" is_protected="1"
|
||||
GMimeFilter.outpre is_protected="1"
|
||||
GMimeFilter.outptr type_name="char*" is_protected="1"
|
||||
GMimeFilter.outreal type_name="char*" is_protected="1"
|
||||
GMimeFilter.outsize hidden="1" is_protected="1"
|
||||
|
||||
g_mime_filter_backup.data is_array="1" array_length_pos="1.1" array_length_type="size_t" type_name="char[]"
|
||||
g_mime_filter_backup.length hidden="1"
|
||||
g_mime_filter_complete.inbuf is_array="1" array_length_pos="1.1" array_length_type="size_t" type_name="char[]"
|
||||
g_mime_filter_complete.inlen hidden="1"
|
||||
g_mime_filter_complete.outbuf is_array="1" array_length_pos="3.1" array_length_type="size_t" type_name="char[]" is_out="1" transfer_ownership="0"
|
||||
g_mime_filter_complete.outlen hidden="1"
|
||||
g_mime_filter_complete.outprespace is_out="1"
|
||||
g_mime_filter_filter.inbuf is_array="1" array_length_pos="1.1" array_length_type="size_t" type_name="char[]"
|
||||
g_mime_filter_filter.inlen hidden="1"
|
||||
g_mime_filter_filter.outbuf is_array="1" array_length_pos="3.1" array_length_type="size_t" type_name="char[]" is_out="1" transfer_ownership="0"
|
||||
g_mime_filter_filter.outlen hidden="1"
|
||||
g_mime_filter_filter.outprespace is_out="1"
|
||||
g_mime_filter_copy transfer_ownership="1"
|
||||
|
||||
InternetAddress hidden="1"
|
||||
internet_address_* hidden="1"
|
||||
InternetAddress.name hidden="1"
|
||||
|
||||
InternetAddressGroup hidden="1"
|
||||
internet_address_group_* hidden="1"
|
||||
InternetAddressGroup.members hidden="1"
|
||||
|
||||
InternetAddressList hidden="1"
|
||||
internet_address_list_* hidden="1"
|
||||
InternetAddressList.array hidden="1"
|
||||
|
||||
InternetAddressMailbox hidden="1"
|
||||
internet_address_mailbox_* hidden="1"
|
||||
InternetAddressMailbox.addr hidden="1"
|
||||
|
||||
1
bindings/vapi/gmime-2.6/gmime-2.6.namespace
Normal file
1
bindings/vapi/gmime-2.6/gmime-2.6.namespace
Normal file
|
|
@ -0,0 +1 @@
|
|||
GMime
|
||||
319
bindings/vapi/gnome-keyring-1.vapi
Normal file
319
bindings/vapi/gnome-keyring-1.vapi
Normal file
|
|
@ -0,0 +1,319 @@
|
|||
/* gnome-keyring-1.vapi generated by vapigen, do not modify. */
|
||||
|
||||
namespace GnomeKeyring {
|
||||
[CCode (cheader_filename = "gnome-keyring.h", copy_function = "gnome_keyring_access_control_copy")]
|
||||
[Compact]
|
||||
public class AccessControl {
|
||||
[CCode (has_construct_function = false)]
|
||||
public AccessControl (GnomeKeyring.ApplicationRef application, GnomeKeyring.AccessType types_allowed);
|
||||
public GnomeKeyring.AccessControl copy ();
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", copy_function = "gnome_keyring_application_ref_copy")]
|
||||
[Compact]
|
||||
public class ApplicationRef {
|
||||
[CCode (has_construct_function = false)]
|
||||
public ApplicationRef ();
|
||||
public GnomeKeyring.ApplicationRef copy ();
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", copy_function = "gnome_keyring_attribute_list_copy", free_function = "gnome_keyring_attribute_list_free")]
|
||||
[Compact]
|
||||
public class AttributeList {
|
||||
[CCode (array_length = false)]
|
||||
public GnomeKeyring.Attribute[] data;
|
||||
public uint len;
|
||||
public AttributeList ();
|
||||
public void append_string (string name, string value);
|
||||
public void append_uint32 (string name, uint32 value);
|
||||
public GnomeKeyring.AttributeList copy ();
|
||||
public GnomeKeyring.Attribute index (int i);
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
[Compact]
|
||||
public class Found {
|
||||
public weak GnomeKeyring.AttributeList attributes;
|
||||
public uint item_id;
|
||||
public weak string keyring;
|
||||
public weak string secret;
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", copy_function = "gnome_keyring_info_copy")]
|
||||
[Compact]
|
||||
public class Info {
|
||||
public GnomeKeyring.Info copy ();
|
||||
public ulong get_ctime ();
|
||||
public bool get_is_locked ();
|
||||
public bool get_lock_on_idle ();
|
||||
public uint32 get_lock_timeout ();
|
||||
public ulong get_mtime ();
|
||||
public void set_lock_on_idle (bool value);
|
||||
public void set_lock_timeout (uint32 value);
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", copy_function = "gnome_keyring_item_info_copy")]
|
||||
[Compact]
|
||||
public class ItemInfo {
|
||||
[CCode (has_construct_function = false)]
|
||||
public ItemInfo ();
|
||||
public GnomeKeyring.ItemInfo copy ();
|
||||
public ulong get_ctime ();
|
||||
public unowned string get_display_name ();
|
||||
public ulong get_mtime ();
|
||||
public unowned string get_secret ();
|
||||
public void set_display_name (string value);
|
||||
public void set_secret (string value);
|
||||
public void set_type (GnomeKeyring.ItemType type);
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", free_function = "gnome_keyring_network_password_free")]
|
||||
[Compact]
|
||||
public class NetworkPasswordData {
|
||||
public weak string authtype;
|
||||
public weak string domain;
|
||||
public uint32 item_id;
|
||||
public weak string keyring;
|
||||
public weak string object;
|
||||
public weak string password;
|
||||
public uint32 port;
|
||||
public weak string protocol;
|
||||
public weak string server;
|
||||
public weak string user;
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
[Compact]
|
||||
public class PasswordSchema {
|
||||
public void* attributes;
|
||||
public GnomeKeyring.ItemType item_type;
|
||||
public void* reserved1;
|
||||
public void* reserved2;
|
||||
public void* reserved3;
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public struct Attribute {
|
||||
public weak string name;
|
||||
public GnomeKeyring.AttributeType type;
|
||||
public void* value;
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", cprefix = "GNOME_KEYRING_ACCESS_", has_type_id = false)]
|
||||
public enum AccessRestriction {
|
||||
ASK,
|
||||
DENY,
|
||||
ALLOW
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", cprefix = "GNOME_KEYRING_ACCESS_", has_type_id = false)]
|
||||
public enum AccessType {
|
||||
READ,
|
||||
WRITE,
|
||||
REMOVE
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", cprefix = "GNOME_KEYRING_ATTRIBUTE_TYPE_", has_type_id = false)]
|
||||
public enum AttributeType {
|
||||
STRING,
|
||||
UINT32
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", cprefix = "GNOME_KEYRING_ITEM_INFO_", has_type_id = false)]
|
||||
public enum ItemInfoFlags {
|
||||
ALL,
|
||||
BASICS,
|
||||
SECRET
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", cprefix = "GNOME_KEYRING_ITEM_", has_type_id = false)]
|
||||
public enum ItemType {
|
||||
APPLICATION_SECRET,
|
||||
ITEM_TYPE_MASK,
|
||||
GENERIC_SECRET,
|
||||
NETWORK_PASSWORD,
|
||||
NOTE,
|
||||
CHAINED_KEYRING_PASSWORD,
|
||||
ENCRYPTION_KEY_PASSWORD,
|
||||
PK_STORAGE,
|
||||
LAST_TYPE
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h", cprefix = "GNOME_KEYRING_RESULT_", has_type_id = false)]
|
||||
public enum Result {
|
||||
OK,
|
||||
DENIED,
|
||||
NO_KEYRING_DAEMON,
|
||||
ALREADY_UNLOCKED,
|
||||
NO_SUCH_KEYRING,
|
||||
BAD_ARGUMENTS,
|
||||
IO_ERROR,
|
||||
CANCELLED,
|
||||
KEYRING_ALREADY_EXISTS,
|
||||
NO_MATCH
|
||||
}
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public delegate void OperationDoneCallback (GnomeKeyring.Result result);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public delegate void OperationGetAttributesCallback (GnomeKeyring.Result result, GnomeKeyring.AttributeList attributes);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public delegate void OperationGetIntCallback (GnomeKeyring.Result result, uint32 val);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public delegate void OperationGetItemInfoCallback (GnomeKeyring.Result result, GnomeKeyring.ItemInfo info);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public delegate void OperationGetKeyringInfoCallback (GnomeKeyring.Result result, GnomeKeyring.Info info);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public delegate void OperationGetListCallback (GnomeKeyring.Result result, GLib.List<GnomeKeyring.NetworkPasswordData> list);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public delegate void OperationGetStringCallback (GnomeKeyring.Result result, string? str);
|
||||
[CCode (cheader_filename = "gnome-keyring.h", cname = "GNOME_KEYRING_NETWORK_PASSWORD")]
|
||||
public static GnomeKeyring.PasswordSchema NETWORK_PASSWORD;
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public const string DEFAULT;
|
||||
[CCode (cheader_filename = "gnome-keyring.h", cname = "GNOME_KEYRING_SESSION")]
|
||||
public const string SESSION;
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GLib.List<GnomeKeyring.AccessControl> acl_copy (GLib.List<GnomeKeyring.AccessControl> list);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void cancel_request (void* request);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* change_password (string keyring, string? original, string? password, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result change_password_sync (string keyring, string? original, string? password);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* create (string keyring_name, string? password, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result create_sync (string keyring_name, string? password);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result daemon_prepare_environment_sync ();
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result daemon_set_display_sync (string display);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* @delete (string keyring, GnomeKeyring.OperationDoneCallback callback, void* data, GLib.DestroyNotify destroy_data);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* delete_password (GnomeKeyring.PasswordSchema schema, owned GnomeKeyring.OperationDoneCallback callback, ...);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result delete_password_sync (GnomeKeyring.PasswordSchema schema, ...);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result delete_sync (string keyring);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* find_items (GnomeKeyring.ItemType type, GnomeKeyring.AttributeList attributes, owned GnomeKeyring.OperationGetListCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result find_items_sync (GnomeKeyring.ItemType type, GnomeKeyring.AttributeList attributes, out GLib.List<GnomeKeyring.Found> found);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* find_itemsv (GnomeKeyring.ItemType type, owned GnomeKeyring.OperationGetListCallback callback, ...);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result find_itemsv_sync (GnomeKeyring.ItemType type, out GLib.List<GnomeKeyring.Found> found, ...);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* find_network_password (string? user, string? domain, string? server, string? object, string? protocol, string? authtype, uint32 port, owned GnomeKeyring.OperationGetListCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result find_network_password_sync (string? user, string? domain, string? server, string? object, string? protocol, string? authtype, uint32 port, out GLib.List<GnomeKeyring.NetworkPasswordData> results);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* find_password (GnomeKeyring.PasswordSchema schema, owned GnomeKeyring.OperationGetStringCallback callback, ...);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result find_password_sync (GnomeKeyring.PasswordSchema schema, out unowned string password, ...);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void free_password (string password);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* get_default_keyring (owned GnomeKeyring.OperationGetStringCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result get_default_keyring_sync (out unowned string keyring);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* get_info (string? keyring, owned GnomeKeyring.OperationGetKeyringInfoCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result get_info_sync (string? keyring, out unowned GnomeKeyring.Info info);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static bool is_available ();
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.AccessType item_ac_get_access_type (GnomeKeyring.AccessControl ac);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static unowned string item_ac_get_display_name (GnomeKeyring.AccessControl ac);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static unowned string item_ac_get_path_name (GnomeKeyring.AccessControl ac);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void item_ac_set_access_type (GnomeKeyring.AccessControl ac, GnomeKeyring.AccessType value);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void item_ac_set_display_name (GnomeKeyring.AccessControl ac, string value);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void item_ac_set_path_name (GnomeKeyring.AccessControl ac, string value);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_create (string? keyring, GnomeKeyring.ItemType type, string display_name, GnomeKeyring.AttributeList attributes, string secret, bool update_if_exists, owned GnomeKeyring.OperationGetIntCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_create_sync (string? keyring, GnomeKeyring.ItemType type, string display_name, GnomeKeyring.AttributeList attributes, string secret, bool update_if_exists, out uint32 item_id);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_delete (string? keyring, uint32 id, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_delete_sync (string? keyring, uint32 id);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_get_acl (string? keyring, uint32 id, owned GnomeKeyring.OperationGetListCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_get_acl_sync (string? keyring, uint32 id, out GLib.List<GnomeKeyring.AccessControl> acl);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_get_attributes (string? keyring, uint32 id, owned GnomeKeyring.OperationGetAttributesCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_get_attributes_sync (string? keyring, uint32 id, out unowned GnomeKeyring.AttributeList attributes);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_get_info (string? keyring, uint32 id, owned GnomeKeyring.OperationGetItemInfoCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_get_info_full (string? keyring, uint32 id, uint32 flags, owned GnomeKeyring.OperationGetItemInfoCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_get_info_full_sync (string? keyring, uint32 id, uint32 flags, out unowned GnomeKeyring.ItemInfo info);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_get_info_sync (string keyring, uint32 id, out unowned GnomeKeyring.ItemInfo info);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_grant_access_rights (string? keyring, string display_name, string full_path, uint32 id, GnomeKeyring.AccessType rights, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_grant_access_rights_sync (string? keyring, string display_name, string full_path, uint32 id, GnomeKeyring.AccessType rights);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_set_acl (string? keyring, uint32 id, GLib.List<GnomeKeyring.AccessControl> acl, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_set_acl_sync (string? keyring, uint32 id, GLib.List<GnomeKeyring.AccessControl> acl);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_set_attributes (string? keyring, uint32 id, GnomeKeyring.AttributeList attributes, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_set_attributes_sync (string? keyring, uint32 id, GnomeKeyring.AttributeList attributes);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* item_set_info (string? keyring, uint32 id, GnomeKeyring.ItemInfo info, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result item_set_info_sync (string? keyring, uint32 id, GnomeKeyring.ItemInfo info);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* list_item_ids (string? keyring, owned GnomeKeyring.OperationGetListCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result list_item_ids_sync (string? keyring, out GLib.List<uint> ids);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* list_keyring_names (owned GnomeKeyring.OperationGetListCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result list_keyring_names_sync (out GLib.List<string> keyrings);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* @lock (string keyring, GnomeKeyring.OperationDoneCallback callback, void* data, GLib.DestroyNotify destroy_data);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* lock_all (owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result lock_all_sync ();
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result lock_sync (string? keyring);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* memory_alloc (ulong sz);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void memory_free (void* p);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static bool memory_is_secure (void* p);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* memory_realloc (void* p, ulong sz);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static unowned string memory_strdup (string str);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* memory_try_alloc (ulong sz);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* memory_try_realloc (void* p, ulong sz);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void network_password_free (GnomeKeyring.NetworkPasswordData data);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static unowned string result_to_message (GnomeKeyring.Result res);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* set_default_keyring (string keyring, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result set_default_keyring_sync (string keyring);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* set_info (string? keyring, GnomeKeyring.Info info, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result set_info_sync (string? keyring, GnomeKeyring.Info info);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* set_network_password (string? keyring, string? user, string? domain, string? server, string? object, string? protocol, string? authtype, uint32 port, string? password, owned GnomeKeyring.OperationGetIntCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result set_network_password_sync (string? keyring, string? user, string? domain, string? server, string? object, string? protocol, string? authtype, uint32 port, string? password, out uint32 item_id);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* store_password (GnomeKeyring.PasswordSchema schema, string? keyring, string display_name, string password, owned GnomeKeyring.OperationDoneCallback callback, ...);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result store_password_sync (GnomeKeyring.PasswordSchema schema, string? keyring, string display_name, string password, ...);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static void* unlock (string? keyring, string? password, owned GnomeKeyring.OperationDoneCallback callback);
|
||||
[CCode (cheader_filename = "gnome-keyring.h")]
|
||||
public static GnomeKeyring.Result unlock_sync (string? keyring, string? password);
|
||||
}
|
||||
8
bindings/vapi/unique-3.0.deps
Normal file
8
bindings/vapi/unique-3.0.deps
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
gio-2.0
|
||||
cairo
|
||||
atk
|
||||
pango
|
||||
gdk-3.0
|
||||
gdk-pixbuf-2.0
|
||||
gtk+-3.0
|
||||
|
||||
95
bindings/vapi/unique-3.0.vapi
Normal file
95
bindings/vapi/unique-3.0.vapi
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
/* 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 ();
|
||||
[CCode (array_length = false)]
|
||||
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 ([CCode (array_length = false)] 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue