From ffc136dab3a80ca75dfcd26ee72df016cc10fea3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrg=20Billeter?= Date: Mon, 2 Jun 2008 12:17:05 +0000 Subject: [PATCH] Add libepc-1.0 bindings, patch by Ali Sabil, fixes bug 533113 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-06-02 Jürg Billeter * vapi/libepc-1.0.vapi: * vapi/packages/libepc-1.0/: Add libepc-1.0 bindings, patch by Ali Sabil, fixes bug 533113 svn path=/trunk/; revision=1538 --- ChangeLog | 7 + vapi/libepc-1.0.vapi | 218 +++++++ vapi/packages/libepc-1.0/libepc-1.0.excludes | 2 + vapi/packages/libepc-1.0/libepc-1.0.files | 2 + vapi/packages/libepc-1.0/libepc-1.0.gi | 820 ++++++++++++++++++++++++++ vapi/packages/libepc-1.0/libepc-1.0.metadata | 33 ++ vapi/packages/libepc-1.0/libepc-1.0.namespace | 1 + 7 files changed, 1083 insertions(+) create mode 100644 vapi/libepc-1.0.vapi create mode 100644 vapi/packages/libepc-1.0/libepc-1.0.excludes create mode 100644 vapi/packages/libepc-1.0/libepc-1.0.files create mode 100644 vapi/packages/libepc-1.0/libepc-1.0.gi create mode 100644 vapi/packages/libepc-1.0/libepc-1.0.metadata create mode 100644 vapi/packages/libepc-1.0/libepc-1.0.namespace diff --git a/ChangeLog b/ChangeLog index a0c9ff0..3a564c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2008-06-02 Jürg Billeter + * vapi/libepc-1.0.vapi: + * vapi/packages/libepc-1.0/: + + Add libepc-1.0 bindings, patch by Ali Sabil, fixes bug 533113 + +2008-06-02 Jürg Billeter + * vapi/packages/gio-2.0/: Fix g_file_enumerator_next_files_finish binding, fixes bug 524904 diff --git a/vapi/libepc-1.0.vapi b/vapi/libepc-1.0.vapi new file mode 100644 index 0000000..fe6f10e --- /dev/null +++ b/vapi/libepc-1.0.vapi @@ -0,0 +1,218 @@ +/* libepc-1.0.vapi generated by lt-vapigen, do not modify. */ + +[CCode (cprefix = "Epc", lower_case_cprefix = "epc_")] +namespace Epc { + [CCode (cprefix = "EPC_ADDRESS_", cheader_filename = "libepc/enums.h")] + public enum AddressFamily { + UNSPEC, + IPV4, + IPV6 + } + [CCode (cprefix = "EPC_COLLISIONS_", cheader_filename = "libepc/enums.h")] + public enum CollisionHandling { + IGNORE, + CHANGE_NAME, + UNIQUE_SERVICE + } + [CCode (cprefix = "EPC_PROTOCOL_", cheader_filename = "libepc/enums.h")] + public enum Protocol { + UNKNOWN, + HTTP, + HTTPS + } + [CCode (cprefix = "EPC_AUTH_", cheader_filename = "libepc/enums.h")] + [Flags] + public enum AuthFlags { + DEFAULT, + PASSWORD_TEXT_NEEDED + } + [Compact] + [CCode (cheader_filename = "libepc/publisher.h")] + public class AuthContext { + public bool check_password (string password); + public weak string get_key (); + public weak string get_password (); + public weak Epc.Publisher get_publisher (); + } + [Compact] + [CCode (ref_function = "epc_contents_ref", unref_function = "epc_contents_unref", cheader_filename = "libepc/contents.h")] + public class Contents { + public void* get_data (ulong length); + public weak string get_mime_type (); + public bool is_stream (); + public Contents (string type, void* data, long length, GLib.DestroyNotify destroy_data); + public Contents.dup (string type, void* data, long length); + public static weak Epc.Contents stream_new (string type, Epc.ContentsReadFunc callback, GLib.DestroyNotify destroy_data); + public void* stream_read (ulong length); + } + [Compact] + [CCode (ref_function = "epc_service_info_ref", unref_function = "epc_service_info_unref", cheader_filename = "libepc/service-info.h")] + public class ServiceInfo : GLib.Boxed { + public Epc.AddressFamily get_address_family (); + public weak string get_detail (string name); + public weak string get_host (); + public weak string get_interface (); + public uint get_port (); + public weak string get_service_type (); + } + [CCode (cheader_filename = "libepc/consumer.h")] + public class Consumer : GLib.Object { + public weak string get_password (); + public Epc.Protocol get_protocol (); + public weak string get_username (); + public bool is_publisher_resolved (); + public weak GLib.List list (string pattern) throws GLib.Error; + public void* lookup (string key, out weak ulong? length) throws GLib.Error; + public Consumer (Epc.ServiceInfo service); + public Consumer.for_name (string name); + public Consumer.for_name_full (string name, string application, string domain); + public bool resolve_publisher (uint timeout); + public void set_password (string password); + public void set_protocol (Epc.Protocol protocol); + public void set_username (string username); + [NoAccessorMethod] + public string application { get; construct; } + [NoAccessorMethod] + public string domain { get; construct; } + [NoAccessorMethod] + public string hostname { get; construct; } + [NoAccessorMethod] + public string name { get; construct; } + public string password { get; set construct; } + [NoAccessorMethod] + public string path { get; construct; } + [NoAccessorMethod] + public int port { get; construct; } + public Epc.Protocol protocol { get; set construct; } + public string username { get; set construct; } + public virtual signal bool authenticate (string realm); + public virtual signal void publisher_resolved (Epc.Protocol protocol, string hostname, uint port); + } + [CCode (cheader_filename = "libepc/dispatcher.h")] + public class Dispatcher : GLib.Object { + public void add_service (Epc.AddressFamily protocol, string type, string domain, string host, ushort port); + public void add_service_subtype (string type, string subtype); + public Epc.CollisionHandling get_collision_handling (); + public weak string get_cookie (); + public weak string get_name (); + public Dispatcher (string name); + public void reset (); + public bool run () throws GLib.Error; + public void set_collision_handling (Epc.CollisionHandling method); + public void set_cookie (string cookie); + public void set_name (string name); + public void set_service_details (string type); + public Epc.CollisionHandling collision_handling { get; set construct; } + public string cookie { get; set construct; } + public string name { get; set construct; } + } + [CCode (cheader_filename = "libepc/publisher.h")] + public class Publisher : GLib.Object { + public void add (string key, void* data, long length); + public void add_bookmark (string key, string label); + public void add_file (string key, string filename); + public void add_handler (string key, Epc.ContentsHandler handler, GLib.DestroyNotify destroy_data); + public static weak string expand_name (string name) throws GLib.Error; + public Epc.AuthFlags get_auth_flags (); + public weak string get_certificate_file (); + public Epc.CollisionHandling get_collision_handling (); + public weak string get_contents_path (); + public weak string get_path (string key); + public weak string get_private_key_file (); + public Epc.Protocol get_protocol (); + public weak string get_service_cookie (); + public weak string get_service_domain (); + public weak string get_service_name (); + public weak string get_uri (string key) throws GLib.Error; + public bool has_key (string key); + public weak GLib.List list (string pattern); + public void* lookup (string key); + public Publisher (string? name, string application, string? domain); + public bool quit (); + public bool remove (string key); + public bool run () throws GLib.Error; + public bool run_async () throws GLib.Error; + public void set_auth_flags (Epc.AuthFlags flags); + public void set_auth_handler (string key, Epc.AuthHandler handler, GLib.DestroyNotify destroy_data); + public void set_collision_handling (Epc.CollisionHandling method); + public void set_contents_path (string path); + public void set_credentials (string certfile, string keyfile); + public void set_protocol (Epc.Protocol protocol); + public void set_service_cookie (string cookie); + public void set_service_name (string name); + [NoAccessorMethod] + public string application { get; set construct; } + public Epc.AuthFlags auth_flags { get; set construct; } + [NoAccessorMethod] + public string certificate_file { get; set construct; } + public Epc.CollisionHandling collision_handling { get; set construct; } + public string contents_path { get; set construct; } + [NoAccessorMethod] + public string private_key_file { get; set construct; } + public Epc.Protocol protocol { get; set construct; } + public string service_cookie { get; set construct; } + [NoAccessorMethod] + public string service_domain { get; set construct; } + public string service_name { get; set construct; } + } + [CCode (cheader_filename = "libepc/service-monitor.h")] + public class ServiceMonitor : GLib.Object { + public bool get_skip_our_own (); + public ServiceMonitor (string? application, string? domain, ...); + public ServiceMonitor.for_types (string? domain, ...); + public ServiceMonitor.for_types_strv (string? domain, string types); + public void set_skip_our_own (bool setting); + [NoAccessorMethod] + public string application { get; construct; } + [NoAccessorMethod] + public string domain { get; construct; } + [NoAccessorMethod] + public string[] service_types { get; construct; } + public bool skip_our_own { get; set construct; } + public virtual signal void scanning_done (string type); + public virtual signal void service_found (string name, Epc.ServiceInfo info); + public virtual signal void service_removed (string name, string type); + } + [CCode (cheader_filename = "libepc/service-type.h")] + public delegate bool AuthHandler (Epc.AuthContext context, string username); + [CCode (cheader_filename = "libepc/service-type.h")] + public delegate weak Epc.Contents ContentsHandler (Epc.Publisher publisher, string key); + [CCode (cheader_filename = "libepc/service-type.h")] + public delegate bool ContentsReadFunc (Epc.Contents contents, void* buffer, ulong length); + [CCode (cheader_filename = "libepc/service-type.h")] + public const string SERVICE_TYPE_HTTP; + [CCode (cheader_filename = "libepc/service-type.h")] + public const string SERVICE_TYPE_HTTPS; + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak GLib.EnumClass address_family_get_class (); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak GLib.FlagsClass auth_flags_get_class (); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak string auth_flags_to_string (Epc.AuthFlags value); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak GLib.EnumClass collision_handling_get_class (); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak string collision_handling_to_string (Epc.CollisionHandling value); + [CCode (cheader_filename = "libepc/service-type.h")] + public static GLib.Quark http_error_quark (); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak string protocol_build_uri (Epc.Protocol protocol, string hostname, ushort port, string path); + [CCode (cheader_filename = "libepc/service-type.h")] + public static Epc.Protocol protocol_from_name (string name, Epc.Protocol fallback); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak GLib.EnumClass protocol_get_class (); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak string protocol_get_service_type (Epc.Protocol protocol); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak string protocol_get_uri_scheme (Epc.Protocol protocol); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak string protocol_to_string (Epc.Protocol value); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak string service_type_get_base (string type); + [CCode (cheader_filename = "libepc/service-type.h")] + public static Epc.Protocol service_type_get_protocol (string service_type); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak string service_type_list_supported (string application); + [CCode (cheader_filename = "libepc/service-type.h")] + public static weak string service_type_new (Epc.Protocol protocol, string application); +} diff --git a/vapi/packages/libepc-1.0/libepc-1.0.excludes b/vapi/packages/libepc-1.0/libepc-1.0.excludes new file mode 100644 index 0000000..f54d5cb --- /dev/null +++ b/vapi/packages/libepc-1.0/libepc-1.0.excludes @@ -0,0 +1,2 @@ +shell.h +tls.h diff --git a/vapi/packages/libepc-1.0/libepc-1.0.files b/vapi/packages/libepc-1.0/libepc-1.0.files new file mode 100644 index 0000000..ad4471b --- /dev/null +++ b/vapi/packages/libepc-1.0/libepc-1.0.files @@ -0,0 +1,2 @@ +include/libepc-1.0/libepc +lib/libepc-1.0.so diff --git a/vapi/packages/libepc-1.0/libepc-1.0.gi b/vapi/packages/libepc-1.0/libepc-1.0.gi new file mode 100644 index 0000000..479ea6d --- /dev/null +++ b/vapi/packages/libepc-1.0/libepc-1.0.gi @@ -0,0 +1,820 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/libepc-1.0/libepc-1.0.metadata b/vapi/packages/libepc-1.0/libepc-1.0.metadata new file mode 100644 index 0000000..3b20c64 --- /dev/null +++ b/vapi/packages/libepc-1.0/libepc-1.0.metadata @@ -0,0 +1,33 @@ +epc_service_monitor_new_for_types ellipsis="1" +epc_service_monitor_new.application nullable="1" +epc_service_monitor_new.domain nullable="1" +epc_service_monitor_new_for_types.domain nullable="1" +epc_service_monitor_new_for_types_strv.domain nullable="1" + +epc_publisher_new.name nullable="1" +epc_publisher_new.aplication nullable="1" +epc_publisher_new.domain nullable="1" + +epc_consumer_lookup.length is_out="1" nullable="1" + +epc_service_info_get_address hidden="1" +epc_service_info_new hidden="1" +epc_service_info_new_full hidden="1" + +EpcAddressFamily cheader_filename="libepc/enums.h" +EpcCollisionHandling cheader_filename="libepc/enums.h" +EpcProtocol cheader_filename="libepc/enums.h" +EpcAuthFlags cheader_filename="libepc/enums.h" + +epc_address_family_to_string hidden="1" + +EpcConsumer cheader_filename="libepc/consumer.h" +EpcContents cheader_filename="libepc/contents.h" +EpcDispatcher cheader_filename="libepc/dispatcher.h" +EpcAuthContext cheader_filename="libepc/publisher.h" +EpcPublisher cheader_filename="libepc/publisher.h" +EpcServiceInfo cheader_filename="libepc/service-info.h" +EpcServiceMonitor cheader_filename="libepc/service-monitor.h" + +Epc cheader_filename="libepc/service-type.h" + diff --git a/vapi/packages/libepc-1.0/libepc-1.0.namespace b/vapi/packages/libepc-1.0/libepc-1.0.namespace new file mode 100644 index 0000000..ef0ca3f --- /dev/null +++ b/vapi/packages/libepc-1.0/libepc-1.0.namespace @@ -0,0 +1 @@ +Epc -- 2.7.4