[Mud-builder-commits] r356 - in trunk/packages/vala.pkg: . patches

ph5 at garage.maemo.org ph5 at garage.maemo.org
Sun Jun 20 18:33:55 EEST 2010


Author: ph5
Date: 2010-06-20 18:33:54 +0300 (Sun, 20 Jun 2010)
New Revision: 356

Added:
   trunk/packages/vala.pkg/patches/0005-Add-libhildonmime-VAPI.patch
   trunk/packages/vala.pkg/patches/0006-Add-liblocation-VAPI.patch
   trunk/packages/vala.pkg/patches/0007-Add-libsharing-VAPI.patch
   trunk/packages/vala.pkg/patches/0008-hildon-1.vapi-update-for-new-vala-version.patch
Modified:
   trunk/packages/vala.pkg/mud.xml
Log:
Update vala to 0.9.1, addlibhildonmime, liblocation and libsharing bindings


Modified: trunk/packages/vala.pkg/mud.xml
===================================================================
--- trunk/packages/vala.pkg/mud.xml	2010-06-17 18:43:20 UTC (rev 355)
+++ trunk/packages/vala.pkg/mud.xml	2010-06-20 15:33:54 UTC (rev 356)
@@ -1,13 +1,13 @@
 <package>
   <fetch type="tarball">
-    <url>http://download.gnome.org/sources/vala/0.8/vala-0.8.0.tar.bz2</url>
+    <url>http://download.gnome.org/sources/vala/0.9/vala-0.9.1.tar.bz2</url>
   </fetch>
   <build>
     <copyright>lgpl</copyright>
     <configure-append>--enable-maintainer-mode --disable-dependency-tracking --enable-vapigen</configure-append>
   </build>
   <deb prefix-section="0">
-    <version>0.8.0-maemo1</version>
+    <version>0.9.1-maemo1</version>
     <maintainer>Andrew Flegg &lt;andrew at bleb.org&gt;</maintainer>
     <section>programming</section>
     <depends>c-compiler</depends>

Added: trunk/packages/vala.pkg/patches/0005-Add-libhildonmime-VAPI.patch
===================================================================
--- trunk/packages/vala.pkg/patches/0005-Add-libhildonmime-VAPI.patch	                        (rev 0)
+++ trunk/packages/vala.pkg/patches/0005-Add-libhildonmime-VAPI.patch	2010-06-20 15:33:54 UTC (rev 356)
@@ -0,0 +1,148 @@
+From dd681b380a4186dec2c5d437fe5b57d9ade2d9fc Mon Sep 17 00:00:00 2001
+From: Philipp Zabel <philipp.zabel at gmail.com>
+Date: Sun, 20 Jun 2010 17:05:06 +0200
+Subject: [PATCH] Add libhildonmime VAPI
+
+---
+ vapi/Makefile.am        |    2 +
+ vapi/Makefile.in        |    2 +
+ vapi/libhildonmime.deps |    2 +
+ vapi/libhildonmime.vapi |   91 +++++++++++++++++++++++++++++++++++++++++++++++
+ 4 files changed, 97 insertions(+), 0 deletions(-)
+ create mode 100644 vapi/libhildonmime.deps
+ create mode 100644 vapi/libhildonmime.vapi
+
+diff --git a/vapi/Makefile.am b/vapi/Makefile.am
+index 5d11c34..8822a04 100644
+--- vapi/Makefile.am
++++ vapi/Makefile.am
+@@ -139,6 +139,8 @@ dist_vapi_DATA = \
+ 	libgvc.vapi \
+ 	libhildondesktop-1.deps \
+ 	libhildondesktop-1.vapi \
++	libhildonmime.deps \
++	libhildonmime.vapi \
+ 	libmagic.vapi \
+ 	libnl-1.vapi \
+ 	libnl-2.0.deps \
+diff --git a/vapi/Makefile.in b/vapi/Makefile.in
+index 9f43d4a..ee0cf49 100644
+--- vapi/Makefile.in
++++ vapi/Makefile.in
+@@ -349,6 +349,8 @@ dist_vapi_DATA = \
+ 	libgvc.vapi \
+ 	libhildondesktop-1.deps \
+ 	libhildondesktop-1.vapi \
++	libhildonmime.deps \
++	libhildonmime.vapi \
+ 	libmagic.vapi \
+ 	libnl-1.vapi \
+ 	libnl-2.0.deps \
+diff --git a/vapi/libhildonmime.deps b/vapi/libhildonmime.deps
+new file mode 100644
+index 0000000..6c0da8a
+--- /dev/null
++++ vapi/libhildonmime.deps
+@@ -0,0 +1,2 @@
++dbus-glib-1
++gnome-vfs-2.0
+diff --git a/vapi/libhildonmime.vapi b/vapi/libhildonmime.vapi
+new file mode 100644
+index 0000000..2fa8034
+--- /dev/null
++++ vapi/libhildonmime.vapi
+@@ -0,0 +1,91 @@
++[CCode (cheader_filename = "hildon-uri.h")]
++namespace Hildon {
++
++	[CCode (cprefix = "HILDON_URI_ACTION_")]
++	public enum URIActionType {
++		NORMAL,
++		NEUTRAL,
++		FALLBACK
++	}
++
++	public errordomain URIError {
++		INVALID_URI,
++		INVALID_ACTION,
++		INVALID_SCHEME,
++		NO_DEFAULT_ACTION,
++		OPEN_FAILED,
++		SAVE_FAILED,
++		DBUS_FAILED,
++		NO_ACTIONS
++	}
++
++	[CCode (cprefix = "hildon_uri_", ref_function = "hildon_uri_action_ref", unref_function = "hildon_uri_action_unref", cheader_filename = "hildon-uri.h")]
++	public class URIAction {
++		public Hildon.URIActionType get_type ();
++		[CCode (cname = "hildon_uri_action_get_name")]
++		public unowned string get_name ();
++		[CCode (cname = "hildon_uri_action_get_service")]
++		public unowned string get_service ();
++		[CCode (cname = "hildon_uri_action_get_method")]
++		public unowned string get_method ();
++		[CCode (cname = "hildon_uri_action_get_translation_domain")]
++		public unowned string get_translation_domain ();
++		public static GLib.SList<Hildon.URIAction> get_actions (string scheme) throws GLib.Error;
++		public static GLib.SList<Hildon.URIAction> get_actions_by_uri (string uri_str, Hildon.URIActionType type) throws GLib.Error;
++		public static void free_actions (GLib.SList<Hildon.URIAction> list);
++		public static string get_scheme_from_uri (string uri) throws GLib.Error;
++		public bool is_default_action () throws GLib.Error;
++		[CCode (instance_pos = -2)]
++		public bool is_default_action_by_uri (string uri) throws GLib.Error;
++		public static Hildon.URIAction get_default_action (string scheme) throws GLib.Error;
++		public static Hildon.URIAction get_default_action_by_uri (string uri) throws GLib.Error;
++		[CCode (instance_pos = -2)]
++		public bool set_default_action (string scheme) throws GLib.Error;
++		[CCode (instance_pos = -2)]
++		public bool set_default_action_by_uri (string uri_str) throws GLib.Error;
++		[CCode (instance_pos = -2)]
++		public bool open (string uri) throws GLib.Error;
++	}
++
++}
++
++[CCode (cheader_filename = "hildon-mime.h")]
++namespace HildonMime {
++
++	public errordomain PatternsError {
++		INTERNAL
++	}
++
++	GLib.SList<string> patterns_get_for_mime_type (string mime_type) throws GLib.Error;
++
++	public enum Category {
++		BOOKMARKS,
++		CONTACTS,
++		DOCUMENTS,
++		EMAILS,
++		IMAGES,
++		AUDIO,
++		VIDEO,
++		OTHER,
++		ALL
++	}
++
++	public HildonMime.Category get_category_for_mime_type (string mime_type);
++	public GLib.List<string> get_mime_types_for_category (HildonMime.Category category);
++	[CCode (cname = "hildon_mime_types_list_free")]
++	public void mime_types_list_free (GLib.List<string> list);
++
++	public int open_file (DBus.RawConnection con, string file);
++	public int open_file_list (DBus.RawConnection con, GLib.SList<string> files);
++	public int open_file_with_mime_type (DBus.RawConnection con, string file, string mime_type);
++
++	public unowned string get_category_name (HildonMime.Category category);
++	public HildonMime.Category get_category_from_name (string name);
++
++	public GLib.List<string> application_get_mime_types (string application_id);
++	public void application_mime_types_list_free (GLib.List<string> mime_types);
++
++	[CCode (array_length = -1)]
++	string[] get_icon_names (string mime_type, GnomeVFS.FileInfo file_info);
++}
++
+-- 
+1.5.6.1
+

Added: trunk/packages/vala.pkg/patches/0006-Add-liblocation-VAPI.patch
===================================================================
--- trunk/packages/vala.pkg/patches/0006-Add-liblocation-VAPI.patch	                        (rev 0)
+++ trunk/packages/vala.pkg/patches/0006-Add-liblocation-VAPI.patch	2010-06-20 15:33:54 UTC (rev 356)
@@ -0,0 +1,199 @@
+From fa2a444a19c5993c55a7b8502e12f7c92518e46a Mon Sep 17 00:00:00 2001
+From: Philipp Zabel <philipp.zabel at gmail.com>
+Date: Sun, 20 Jun 2010 17:05:53 +0200
+Subject: [PATCH] Add liblocation VAPI
+
+---
+ vapi/Makefile.am      |    1 +
+ vapi/Makefile.in      |    1 +
+ vapi/liblocation.vapi |  154 +++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 156 insertions(+), 0 deletions(-)
+ create mode 100644 vapi/liblocation.vapi
+
+diff --git a/vapi/Makefile.am b/vapi/Makefile.am
+index 8822a04..84854c9 100644
+--- vapi/Makefile.am
++++ vapi/Makefile.am
+@@ -141,6 +141,7 @@ dist_vapi_DATA = \
+ 	libhildondesktop-1.vapi \
+ 	libhildonmime.deps \
+ 	libhildonmime.vapi \
++	liblocation.vapi \
+ 	libmagic.vapi \
+ 	libnl-1.vapi \
+ 	libnl-2.0.deps \
+diff --git a/vapi/Makefile.in b/vapi/Makefile.in
+index ee0cf49..e401c64 100644
+--- vapi/Makefile.in
++++ vapi/Makefile.in
+@@ -351,6 +351,7 @@ dist_vapi_DATA = \
+ 	libhildondesktop-1.vapi \
+ 	libhildonmime.deps \
+ 	libhildonmime.vapi \
++	liblocation.vapi \
+ 	libmagic.vapi \
+ 	libnl-1.vapi \
+ 	libnl-2.0.deps \
+diff --git a/vapi/liblocation.vapi b/vapi/liblocation.vapi
+new file mode 100644
+index 0000000..0bf6456
+--- /dev/null
++++ vapi/liblocation.vapi
+@@ -0,0 +1,154 @@
++[CCode (cprefix = "Location", lower_case_cprefix = "location_")]
++namespace Location {
++	[Compact]
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public class CellInfo {
++		public int flags;
++		public weak Location._gsm_cell_info gsm_cell_info;
++		public weak Location._wcdma_cell_info wcdma_cell_info;
++	}
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public class GPSDControl : GLib.Object {
++		public int get_allowed_methods ();
++		public static unowned Location.GPSDControl get_default ();
++		public void request_status ();
++		public void start ();
++		public void stop ();
++		[NoAccessorMethod]
++		public void* maincontext_pointer { set; }
++		[NoAccessorMethod]
++		public int preferred_interval { get; set; }
++		[NoAccessorMethod]
++		public int preferred_method { get; set; }
++		public virtual signal void error ();
++		public virtual signal void error_verbose (int error);
++		public virtual signal void gpsd_running ();
++		public virtual signal void gpsd_stopped ();
++	}
++	[Compact]
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public class GPSDControlMethod {
++	}
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public class GPSDevice : GLib.Object {
++		public weak Location.CellInfo cell_info;
++		public weak Location.GPSDeviceFix fix;
++		public bool online;
++		public weak GLib.PtrArray satellites;
++		public int satellites_in_use;
++		public int satellites_in_view;
++		public Location.GPSDeviceStatus status;
++		public void reset_last_known ();
++		public void start ();
++		public void stop ();
++		public virtual signal void changed ();
++		public virtual signal void connected ();
++		public virtual signal void disconnected ();
++	}
++	[Compact]
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public class GPSDeviceFix {
++		public double altitude;
++		public double climb;
++		public double dip;
++		public double epc;
++		public double epd;
++		public double eph;
++		public double eps;
++		public double ept;
++		public double epv;
++		public uint32 fields;
++		public double latitude;
++		public double longitude;
++		public Location.GPSDeviceMode mode;
++		public double pitch;
++		public double roll;
++		public double speed;
++		public double time;
++		public double track;
++	}
++	[Compact]
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public class GPSDeviceSatellite {
++		public int azimuth;
++		public int elevation;
++		public bool in_use;
++		public int prn;
++		public int signal_strength;
++	}
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public struct _gsm_cell_info {
++	}
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public struct _wcdma_cell_info {
++	}
++	[CCode (cprefix = "LOCATION_ERROR_", has_type_id = false, cheader_filename = "location/location-gpsd-control.h")]
++	public enum GPSDControlError {
++		USER_REJECTED_DIALOG,
++		USER_REJECTED_SETTINGS,
++		BT_GPS_NOT_AVAILABLE,
++		METHOD_NOT_ALLOWED_IN_OFFLINE_MODE,
++		SYSTEM
++	}
++	[CCode (cprefix = "LOCATION_INTERVAL_", has_type_id = false, cheader_filename = "location/location-gpsd-control.h")]
++	public enum GPSDControlInterval {
++		DEFAULT,
++		@1S,
++		@2S,
++		@5S,
++		@10S,
++		@20S,
++		@30S,
++		@60S,
++		@120S
++	}
++	[CCode (cprefix = "LOCATION_GPS_DEVICE_MODE_", has_type_id = false, cheader_filename = "location/location-gps-device.h")]
++	public enum GPSDeviceMode {
++		NOT_SEEN,
++		NO_FIX,
++		@2D,
++		@3D
++	}
++	[CCode (cprefix = "LOCATION_GPS_DEVICE_STATUS_", has_type_id = false, cheader_filename = "location/location-gps-device.h")]
++	public enum GPSDeviceStatus {
++		NO_FIX,
++		FIX,
++		DGPS_FIX
++	}
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public const int CELL_INFO_GSM_CELL_INFO_SET;
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public const int CELL_INFO_WCDMA_CELL_INFO_SET;
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public const int GPS_DEVICE_ALTITUDE_SET;
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public const int GPS_DEVICE_CLIMB_SET;
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public const int GPS_DEVICE_LATLONG_SET;
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public const int GPS_DEVICE_NONE_SET;
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public const int GPS_DEVICE_SPEED_SET;
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public const int GPS_DEVICE_TIME_SET;
++	[CCode (cheader_filename = "location/location-gps-device.h")]
++	public const int GPS_DEVICE_TRACK_SET;
++	[CCode (cheader_filename = "location/location-version.h")]
++	public const int MAJOR_VERSION;
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public const int METHOD_ACWP;
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public const int METHOD_AGNSS;
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public const int METHOD_CWP;
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public const int METHOD_GNSS;
++	[CCode (cheader_filename = "location/location-gpsd-control.h")]
++	public const int METHOD_USER_SELECTED;
++	[CCode (cheader_filename = "location/location-version.h")]
++	public const int MINOR_VERSION;
++	[CCode (cheader_filename = "location/location-distance-utils.h")]
++	public static double distance_between (double latitude_s, double longitude_s, double latitude_f, double longitude_f);
++	[CCode (cheader_filename = "location/location-misc.h")]
++	public static void make_resident ();
++}
+-- 
+1.5.6.1
+

Added: trunk/packages/vala.pkg/patches/0007-Add-libsharing-VAPI.patch
===================================================================
--- trunk/packages/vala.pkg/patches/0007-Add-libsharing-VAPI.patch	                        (rev 0)
+++ trunk/packages/vala.pkg/patches/0007-Add-libsharing-VAPI.patch	2010-06-20 15:33:54 UTC (rev 356)
@@ -0,0 +1,243 @@
+From 6b931df5f4cad70f0da0d1a012714574bddd6158 Mon Sep 17 00:00:00 2001
+From: Philipp Zabel <philipp.zabel at gmail.com>
+Date: Sun, 20 Jun 2010 17:09:14 +0200
+Subject: [PATCH] Add libsharing VAPI
+
+---
+ vapi/Makefile.am     |    2 +
+ vapi/Makefile.in     |    2 +
+ vapi/libsharing.deps |    3 +
+ vapi/libsharing.vapi |  185 ++++++++++++++++++++++++++++++++++++++++++++++++++
+ 4 files changed, 192 insertions(+), 0 deletions(-)
+ create mode 100644 vapi/libsharing.deps
+ create mode 100644 vapi/libsharing.vapi
+
+diff --git a/vapi/Makefile.am b/vapi/Makefile.am
+index 84854c9..7ca2652 100644
+--- vapi/Makefile.am
++++ vapi/Makefile.am
+@@ -157,6 +157,8 @@ dist_vapi_DATA = \
+ 	librsvg-2.0.deps \
+ 	libsexy.deps \
+ 	libsexy.vapi \
++	libsharing.deps \
++	libsharing.vapi \
+ 	libsoup-2.2.vapi \
+ 	libsoup-2.4.deps \
+ 	libsoup-2.4.vapi \
+diff --git a/vapi/Makefile.in b/vapi/Makefile.in
+index e401c64..1fd9c54 100644
+--- vapi/Makefile.in
++++ vapi/Makefile.in
+@@ -367,6 +367,8 @@ dist_vapi_DATA = \
+ 	librsvg-2.0.deps \
+ 	libsexy.deps \
+ 	libsexy.vapi \
++	libsharing.deps \
++	libsharing.vapi \
+ 	libsoup-2.2.vapi \
+ 	libsoup-2.4.deps \
+ 	libsoup-2.4.vapi \
+diff --git a/vapi/libsharing.deps b/vapi/libsharing.deps
+new file mode 100644
+index 0000000..c1331be
+--- /dev/null
++++ vapi/libsharing.deps
+@@ -0,0 +1,3 @@
++conic
++gtk+-2.0
++libosso
+diff --git a/vapi/libsharing.vapi b/vapi/libsharing.vapi
+new file mode 100644
+index 0000000..614d884
+--- /dev/null
++++ vapi/libsharing.vapi
+@@ -0,0 +1,185 @@
++/* libsharing.vapi generated by vapigen, do not modify. */
++
++[CCode (cprefix = "Sharing", lower_case_cprefix = "sharing_")]
++namespace Sharing {
++	[Compact]
++	[CCode (cheader_filename = "sharing-account.h")]
++	public class Account {
++		public unowned string get_param (string key);
++		public bool set_option_values (string key, GLib.SList<Sharing.ServiceOptionValue> values);
++		public bool set_param (string key, string value);
++	}
++	[Compact]
++	[CCode (cheader_filename = "sharing-entry.h")]
++	public class Entry {
++		public unowned Sharing.Account get_account ();
++		public unowned GLib.SList<Sharing.EntryMedia> get_media ();
++		public unowned string get_option (string id);
++		public uint64 get_size ();
++	}
++	[Compact]
++	[CCode (cheader_filename = "sharing-entry-media.h")]
++	public class EntryMedia {
++		public unowned string get_desc ();
++		public unowned string get_filename ();
++		public unowned string get_filename_without_extension ();
++		public unowned string get_localpath ();
++		public unowned string get_mime ();
++		public unowned string get_name ();
++		public bool get_sent ();
++		public uint64 get_size ();
++		public unowned GLib.SList<Sharing.Tag> get_tags ();
++		public unowned string get_title ();
++		public void set_metadata_editable (bool editable);
++		public void set_sent (bool sent);
++	}
++	[Compact]
++	[CCode (ref_function = "sharing_http_ref", unref_function = "sharing_http_unref", cheader_filename = "sharing-http.h")]
++	public class HTTP {
++		[CCode (type = "SharingHTTP*", has_construct_function = false)]
++		public HTTP ();
++		public bool add_req_header (string name, string value);
++		public bool add_req_header_line (string line);
++		public bool add_req_multipart_data (string name, string data, int data_len, string type);
++		public bool add_req_multipart_file (string name, string filepath, string type);
++		public bool add_req_multipart_file_with_filename (string name, string filepath, string type, string filename);
++		public void cancel ();
++		public void clear_multiparts ();
++		public unowned ConIc.Connection get_connection ();
++		public unowned string get_res_body (size_t len);
++		public size_t get_res_buffer_size_limit ();
++		public int get_res_code ();
++		public unowned string get_res_content (size_t len);
++		public void remove_req_headers ();
++		public Sharing.HTTPRunResponse run (string url);
++		public void set_connection (ConIc.Connection connection);
++		public void set_progress_callback (Sharing.HTTPProgressCallback callback);
++		public void set_res_buffer_size_limit (size_t limit);
++		public void set_timeouts (long connecting_timeout, long connection_timeout);
++		public void set_user_agent_name (string name);
++	}
++	[Compact]
++	[CCode (cheader_filename = "sharing-service.h")]
++	public class Service {
++		public unowned string get_name ();
++		public static void option_values_free (GLib.SList<Sharing.ServiceOptionValue> values);
++	}
++	[Compact]
++	[CCode (cheader_filename = "sharing-service.h")]
++	public class ServiceOptionValue {
++		[CCode (type = "SharingServiceOptionValue*", has_construct_function = false)]
++		public ServiceOptionValue (string id, string name, string description);
++	}
++	[Compact]
++	[CCode (cheader_filename = "sharing-tag.h")]
++	public class Tag {
++		public unowned string get_word ();
++	}
++	[Compact]
++	[CCode (cheader_filename = "sharing-transfer.h")]
++	public class Transfer {
++		public bool @continue ();
++		public unowned Sharing.Account get_account ();
++		public unowned Sharing.Entry get_entry ();
++		public void set_progress (double value);
++	}
++	[CCode (cprefix = "SHARING_HTTP_RUNRES_", has_type_id = false, cheader_filename = "sharing-http.h")]
++	public enum HTTPRunResponse {
++		SUCCESS,
++		UNKNOWN_FAILURE,
++		INVALID_PARAMETERS,
++		CONNECTION_PROBLEM,
++		CANCELLED,
++		ALREADY_RUNNING
++	}
++	[CCode (cprefix = "SHARING_ACCOUNT_SETUP_", has_type_id = false, cheader_filename = "sharing-plugin-interface.h")]
++	public enum PluginInterfaceAccountSetupResult {
++		SUCCESS,
++		ERROR_UNKNOWN,
++		ERROR_CONNECTION
++	}
++	[CCode (cprefix = "SHARING_ACCOUNT_VALIDATE_", has_type_id = false, cheader_filename = "sharing-plugin-interface.h")]
++	public enum PluginInterfaceAccountValidateResult {
++		SUCCESS,
++		ACCOUNT_NOT_FOUND,
++		FAILED,
++		ERROR_UNKNOWN,
++		ERROR_CONNECTION,
++		NOT_STARTED,
++		CANCELLED
++	}
++	[CCode (cprefix = "SHARING_EDIT_ACCOUNT_", has_type_id = false, cheader_filename = "sharing-plugin-interface.h")]
++	public enum PluginInterfaceEditAccountResult {
++		SUCCESS,
++		ERROR_UNKNOWN,
++		ERROR_CONNECTION,
++		NOT_STARTED,
++		DELETE,
++		CANCELLED
++	}
++	[CCode (cprefix = "SHARING_SEND_", has_type_id = false, cheader_filename = "sharing-plugin-interface.h")]
++	public enum PluginInterfaceSendResult {
++		SUCCESS,
++		ERROR_UNKNOWN,
++		ERROR_AUTH,
++		ERROR_CONNECTION,
++		CANCELLED,
++		ERROR_FILE_FORMAT,
++		ERROR_UPLOAD_LIMIT,
++		ERROR_ACCOUNT_NOT_FOUND,
++		ERROR_TIMEOUT
++	}
++	[CCode (cprefix = "SHARING_UPDATE_OPTIONS_", has_type_id = false, cheader_filename = "sharing-plugin-interface.h")]
++	public enum PluginInterfaceUpdateOptionsResult {
++		SUCCESS,
++		ERROR_UNKNOWN,
++		CANCELLED,
++		NO_UPDATE_FUNCTIONALITY,
++		ERROR_PARAMETERS
++	}
++	[CCode (cprefix = "SHARING_TAG_", has_type_id = false, cheader_filename = "sharing-plugin-interface.h")]
++	public enum TagType {
++		SHARE,
++		GEO_COUNTRY,
++		GEO_CITY,
++		GEO_SUBURB,
++		FAVOURITE,
++		GPS_LATITUDE,
++		GPS_LONGITUDE,
++		GPS_ALTITUDE,
++		CREATOR,
++		UNKNOWN
++	}
++	[CCode (cheader_filename = "sharing-http.h")]
++	public delegate bool HTTPProgressCallback (Sharing.HTTP http, uint64 bytes_sent);
++	[CCode (cheader_filename = "sharing-plugin-interface.h", has_target = false)]
++	public delegate Sharing.PluginInterfaceAccountSetupResult PluginInterfaceAccountSetup (Gtk.Window parent, Sharing.Service service, out unowned Sharing.Account worked_on, Osso.Context osso);
++	[CCode (cheader_filename = "sharing-plugin-interface.h", has_target = false)]
++	public delegate Sharing.PluginInterfaceAccountValidateResult PluginInterfaceAccountValidate (Sharing.Account account, ConIc.Connection con, bool cont, bool dead_mans_switch);
++	[CCode (cheader_filename = "sharing-plugin-interface.h", has_target = false)]
++	public delegate Sharing.PluginInterfaceEditAccountResult PluginInterfaceEditAccount (Gtk.Window parent, Sharing.Account account, ConIc.Connection con, bool dead_mans_switch);
++	[CCode (cheader_filename = "sharing-plugin-interface.h", has_target = false)]
++	public delegate uint PluginInterfaceInit (bool dead_mans_switch);
++	[CCode (cheader_filename = "sharing-plugin-interface.h", has_target = false)]
++	public delegate Sharing.PluginInterfaceSendResult PluginInterfaceSend (Sharing.Transfer transfer, ConIc.Connection con, bool dead_mans_switch);
++	[CCode (cheader_filename = "sharing-plugin-interface.h", has_target = false)]
++	public delegate uint PluginInterfaceUninit (bool dead_mans_switch);
++	[CCode (cheader_filename = "sharing-plugin-interface.h", has_target = false)]
++	public delegate bool PluginInterfaceUpdateOptions (Sharing.Account account, ConIc.Connection con, bool cont, bool dead_mans_switch, Sharing.UpdateOptionsCallback cb_func, void* cb_data);
++	[CCode (cheader_filename = "sharing-plugin-interface.h", has_target = false)]
++	public delegate void UpdateOptionsCallback (Sharing.PluginInterfaceUpdateOptionsResult result, void* cb_data);
++	[CCode (cheader_filename = "sharing-plugin-interface.h")]
++	public const string PLUGIN_INTERFACE_ACCOUNT_SETUP;
++	[CCode (cheader_filename = "sharing-plugin-interface.h")]
++	public const string PLUGIN_INTERFACE_ACCOUNT_VALIDATE;
++	[CCode (cheader_filename = "sharing-plugin-interface.h")]
++	public const string PLUGIN_INTERFACE_EDIT_ACCOUNT;
++	[CCode (cheader_filename = "sharing-plugin-interface.h")]
++	public const string PLUGIN_INTERFACE_INIT;
++	[CCode (cheader_filename = "sharing-plugin-interface.h")]
++	public const string PLUGIN_INTERFACE_SEND;
++	[CCode (cheader_filename = "sharing-plugin-interface.h")]
++	public const string PLUGIN_INTERFACE_UNINIT;
++	[CCode (cheader_filename = "sharing-plugin-interface.h")]
++	public const string PLUGIN_INTERFACE_UPDATE_OPTIONS;
++}
+-- 
+1.5.6.1
+

Added: trunk/packages/vala.pkg/patches/0008-hildon-1.vapi-update-for-new-vala-version.patch
===================================================================
--- trunk/packages/vala.pkg/patches/0008-hildon-1.vapi-update-for-new-vala-version.patch	                        (rev 0)
+++ trunk/packages/vala.pkg/patches/0008-hildon-1.vapi-update-for-new-vala-version.patch	2010-06-20 15:33:54 UTC (rev 356)
@@ -0,0 +1,52 @@
+From d179544938957d42d940f1f35705081c10b03898 Mon Sep 17 00:00:00 2001
+From: Philipp Zabel <philipp.zabel at gmail.com>
+Date: Sun, 20 Jun 2010 17:10:20 +0200
+Subject: [PATCH] hildon-1.vapi: update for new vala version
+
+---
+ vapi/hildon-1.vapi |    8 ++++----
+ 1 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/vapi/hildon-1.vapi b/vapi/hildon-1.vapi
+index ac567d8..26a4ac8 100644
+--- vapi/hildon-1.vapi
++++ vapi/hildon-1.vapi
+@@ -994,7 +994,7 @@ namespace Hildon {
+ 		INVALID_DATE,
+ 		INVALID_TIME
+ 	}
+-	[CCode (cprefix = "HILDON_GTK_INPUT_MODE_", has_type_id = false, cheader_filename = "gtk/gtk.h")]
++	[CCode (cprefix = "HILDON_GTK_INPUT_MODE_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ 	public enum GtkInputMode {
+ 		ALPHA,
+ 		NUMERIC,
+@@ -1007,7 +1007,7 @@ namespace Hildon {
+ 		AUTOCAP,
+ 		DICTIONARY
+ 	}
+-	[CCode (cprefix = "HILDON_", has_type_id = false, cheader_filename = "gtk/gtk.h")]
++	[CCode (cprefix = "HILDON_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ 	public enum Mode {
+ 		DIABLO,
+ 		FREMANTLE
+@@ -1057,7 +1057,7 @@ namespace Hildon {
+ 		MINIMUM,
+ 		CHILDREN
+ 	}
+-	[CCode (cprefix = "HILDON_SIZE_", has_type_id = false, cheader_filename = "gtk/gtk.h")]
++	[CCode (cprefix = "HILDON_SIZE_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ 	public enum SizeType {
+ 		AUTO_WIDTH,
+ 		HALFSCREEN_WIDTH,
+@@ -1078,7 +1078,7 @@ namespace Hildon {
+ 		SINGLE,
+ 		MULTIPLE
+ 	}
+-	[CCode (cprefix = "HILDON_UI_MODE_", has_type_id = false, cheader_filename = "gtk/gtk.h")]
++	[CCode (cprefix = "HILDON_UI_MODE_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ 	public enum UIMode {
+ 		NORMAL,
+ 		EDIT
+-- 
+1.5.6.1
+



More information about the Mud-builder-commits mailing list