diff options
| author | Lennart Poettering <lennart@poettering.net> | 2009-09-07 20:40:38 +0200 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2009-09-07 20:40:38 +0200 | 
| commit | 424b5fc6e2ecc244e04c932c14039b63c4fef14a (patch) | |
| tree | f4259ac568aa9d24409a1bf5e47223e561832d98 | |
| parent | c6f159a028d93ad1eaeb76346c47f6c64ed2df55 (diff) | |
vala: change return values of functions to int from Error to mimic C API more closely
| -rw-r--r-- | canberra.vapi | 32 | 
1 files 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 );      }  }  | 
