From 424b5fc6e2ecc244e04c932c14039b63c4fef14a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 7 Sep 2009 20:40:38 +0200 Subject: vala: change return values of functions to int from Error to mimic C API more closely --- canberra.vapi | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/canberra.vapi b/canberra.vapi index eb266c5..22298b2 100644 --- a/canberra.vapi +++ b/canberra.vapi @@ -107,32 +107,32 @@ namespace Canberra { public class Proplist { public static int create( Proplist* p ); - public Error destroy(); - public Error sets( string key, string value ); + public int destroy(); + public int sets( string key, string value ); [PrintfFormat] - public Error setf( string key, string format, ... ); - public Error set( string key, void* data, size_t nbytes ); + public int setf( string key, string format, ... ); + public int set( string key, void* data, size_t nbytes ); } [Compact] [CCode (cname = "ca_context", free_function = "")] public class Context { - public static Error create( Context* context ); - public Error destroy(); - public Error set_driver( string driver ); - public Error change_device( string device ); - public Error open(); + public static int create( Context* context ); + public int destroy(); + public int set_driver( string driver ); + public int change_device( string device ); + public int open(); [CCode (sentinel = "")] - public Error change_props( ... ); - public Error change_props_full( Proplist p ); + public int change_props( ... ); + public int change_props_full( Proplist p ); [CCode (instance_pos = 0)] - public Error play_full( uint32 id, Proplist p, FinishCallback cb ); + public int play_full( uint32 id, Proplist p, FinishCallback cb ); [CCode (sentinel = "")] - public Error play( uint32 id, ... ); - public Error cache_full( Proplist p ); + public int play( uint32 id, ... ); + public int cache_full( Proplist p ); [CCode (sentinel = "")] - public Error cache( ... ); - public Error cancel( uint32 id ); + public int cache( ... ); + public int cancel( uint32 id ); } } -- cgit