[vala] twitter-glib bindings: Mark TwitterError as errordomain
- From: Adrien Bustany <abustany src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] twitter-glib bindings: Mark TwitterError as errordomain
- Date: Fri, 5 Mar 2010 16:04:40 +0000 (UTC)
commit 69215032dd49a2e43adfa900313d8db4157aed04
Author: Adrien Bustany <abustany gnome org>
Date: Fri Mar 5 13:03:18 2010 -0300
twitter-glib bindings: Mark TwitterError as errordomain
.../twitter-glib-1.0/twitter-glib-1.0.metadata | 1 +
vapi/twitter-glib-1.0.vapi | 18 +++++++++---------
2 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/vapi/packages/twitter-glib-1.0/twitter-glib-1.0.metadata b/vapi/packages/twitter-glib-1.0/twitter-glib-1.0.metadata
index 9e268f5..7bce0ac 100644
--- a/vapi/packages/twitter-glib-1.0/twitter-glib-1.0.metadata
+++ b/vapi/packages/twitter-glib-1.0/twitter-glib-1.0.metadata
@@ -12,3 +12,4 @@ twitter_client_get_user.password is_out="1"
twitter_date_to_time_val.time_ is_out="1"
Twitter* cheader_filename="twitter-glib/twitter-glib.h"
TwitterClient::status_received.status nullable="1"
+TwitterError errordomain="1"
diff --git a/vapi/twitter-glib-1.0.vapi b/vapi/twitter-glib-1.0.vapi
index dd3d171..60869be 100644
--- a/vapi/twitter-glib-1.0.vapi
+++ b/vapi/twitter-glib-1.0.vapi
@@ -157,8 +157,14 @@ namespace Twitter {
FAILED,
SUCCESS
}
+ [CCode (cprefix = "TWITTER_", cheader_filename = "twitter-glib/twitter-glib.h")]
+ public enum Provider {
+ CUSTOM_PROVIDER,
+ DEFAULT_PROVIDER,
+ IDENTI_CA
+ }
[CCode (cprefix = "TWITTER_ERROR_", cheader_filename = "twitter-glib/twitter-glib.h")]
- public enum Error {
+ public errordomain Error {
HOST_NOT_FOUND,
CANCELLED,
PERMISSION_DENIED,
@@ -166,13 +172,7 @@ namespace Twitter {
TIMED_OUT,
FAILED,
NOT_MODIFIED,
- PARSE_ERROR
- }
- [CCode (cprefix = "TWITTER_", cheader_filename = "twitter-glib/twitter-glib.h")]
- public enum Provider {
- CUSTOM_PROVIDER,
- DEFAULT_PROVIDER,
- IDENTI_CA
+ PARSE_ERROR,
}
[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
public const string GLIB_API_VERSION_S;
@@ -189,7 +189,7 @@ namespace Twitter {
[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
public static bool date_to_time_val (string date, out GLib.TimeVal time_);
[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
- public static Twitter.Error error_from_status (uint status);
+ public static unowned Twitter.Error error_from_status (uint status);
[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
public static GLib.Quark error_quark ();
[CCode (cheader_filename = "twitter-glib/twitter-glib.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]