]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
sdl, tiff: Do not use `weak' modifier where it is not applicable
authorFrederik Zipp <fzipp@gmx.de>
Sun, 21 Mar 2010 06:34:20 +0000 (07:34 +0100)
committerJürg Billeter <j@bitron.ch>
Sun, 21 Mar 2010 06:34:20 +0000 (07:34 +0100)
Fixes bug 613426.

vapi/sdl-image.vapi
vapi/sdl-mixer.vapi
vapi/sdl-ttf.vapi
vapi/sdl.vapi
vapi/tiff.vapi

index 954d7dafa4459a0d679f919391d5fdeba167a560..a31c11959b71f241aceb5aa89d339e1a70b79df3 100644 (file)
@@ -1,7 +1,7 @@
 [CCode (cheader_filename="SDL_image.h")]
 namespace SDLImage {
        [CCode (cname="IMG_Linked_Version")]
-       public static weak SDL.Version linked();
+       public static unowned SDL.Version linked();
 
        [CCode (cname="IMG_LoadTyped_RW")]
        public static SDL.Surface load_rw_typed(SDL.RWops src, int freesrc=0, string type);
index dcb600bfa9b8ab4f5536bca6dfa1d5a5c30fdaeb..8122294d09557fad2fb76be534eade6862fd7f04 100644 (file)
@@ -1,7 +1,7 @@
 [CCode (cheader_filename="SDL_mixer.h")]
 namespace SDLMixer {
        [CCode (cname="Mix_Linked_Version")]
-       public static weak SDL.Version linked();
+       public static unowned SDL.Version linked();
 
        [CCode (cname="Mix_OpenAudio")]
        public static int open(int frequency, uint16 format, int channels, int chunksize);
index 449f158b40aee128d303d45af6f310f7e0589cd4..78f36b3285b606730d3246f988d5ca5a38350b68 100644 (file)
@@ -1,7 +1,7 @@
 [CCode (cheader_filename="SDL_ttf.h")]
 namespace SDLTTF {
        [CCode (cname="TTF_Linked_Version")]
-       public static weak SDL.Version linked();
+       public static unowned SDL.Version linked();
 
        [CCode (cname="TTF_ByteSwappedUNICODE")]
        public static void byteswap_unicode(int swapped);
index a965f18814f6ab685ced81b501ce61273bb4ca08..22fea24e0666749a948655127ae4b754f981756e 100644 (file)
@@ -31,7 +31,7 @@ namespace SDL {
                public uchar patch;
 
                [CCode (cheader_filename="SDL_version.h", cname="SDL_Linked_Version")]
-               public static weak Version linked();
+               public static unowned Version linked();
        }// Version
 
 
@@ -48,7 +48,7 @@ namespace SDL {
        public static void set_error(string format, ...);
 
        [CCode (cname="SDL_GetError")]
-       public static weak string get_error();
+       public static unowned string get_error();
 
        [CCode (cname="SDL_ClearError")]
        public static void clear_error();
@@ -68,7 +68,7 @@ namespace SDL {
        [Compact]
        public class Video {
                [CCode (cname="SDL_VideoDriverName")]
-               public static weak string? driver_name(string namebuf, int maxlen);
+               public static unowned string? driver_name(string namebuf, int maxlen);
 
                [CCode (cname="SDL_SetGamma")]
                public static int set_gamma(float red, float green, float blue);
@@ -163,10 +163,10 @@ namespace SDL {
        [Compact]
        public class Screen : Surface {
                [CCode (cname="SDL_GetVideoSurface")]
-               public static weak Screen instance();
+               public static unowned Screen instance();
 
                [CCode (cname="SDL_SetVideoMode")]
-               public static weak Screen? set_video_mode(int width, int height, int bpp, uint32 flags);
+               public static unowned Screen? set_video_mode(int width, int height, int bpp, uint32 flags);
 
                [CCode (cname="SDL_VideoModeOK")]
                public static int check_video_mode(int width, int height, int bpp, uint32 flags);
@@ -258,7 +258,7 @@ namespace SDL {
                public int      current_h;
 
                [CCode (cname="SDL_GetVideoInfo")]
-               public static weak VideoInfo get();
+               public static unowned VideoInfo get();
        }// VideoInfo
 
        [CCode (cname="int", cprefix="SDL_")]
@@ -577,7 +577,7 @@ namespace SDL {
                public static void get_repeat(ref int delay, ref int interval);
 
                [CCode (cname="SDL_GetKeyState")]
-               public static weak uchar[] get_keys();
+               public static unowned uchar[] get_keys();
 
                [CCode (cname="SDL_GetModState")]
                public static KeyModifier get_modifiers();
@@ -586,7 +586,7 @@ namespace SDL {
                public static void set_modifiers(KeyModifier modstate);
 
                [CCode (cname="SDL_GetKeyName")]
-               public static weak string get_name(KeySymbol key);
+               public static unowned string get_name(KeySymbol key);
        }// Key
 
        [CCode (cname="int", cprefix="SDLK_", cheader_filename="SDL_keysym.h")]
@@ -915,7 +915,7 @@ namespace SDL {
        [Compact]
        public class Joystick {
                [CCode (cname="SDL_JoystickName")]
-               public static weak string get_name(int device_index);
+               public static unowned string get_name(int device_index);
 
                [CCode (cname="SDL_JoystickOpened")]
                public static int is_open(int device_index);
@@ -1016,7 +1016,7 @@ namespace SDL {
        [Compact]
        public class Audio {
                [CCode (cname="SDL_AudioDriverName")]
-               public static weak string driver_name(string namebuf, int maxlen);
+               public static unowned string driver_name(string namebuf, int maxlen);
                
                [CCode (cname="SDL_OpenAudio")]
                public static int open(AudioSpec desired, AudioSpec obtained);
index f5ef308cbf5c49eb3445838a0fc6a6e236cb0a8c..dfabfc927b88736606a4545c67b1a6ed472ec4c3 100644 (file)
@@ -818,11 +818,11 @@ namespace Tiff {
                [CCode (cname = "TIFFFdOpen")]
                public static TIFF FdOpen (int p1, string p2, string p3);
                [CCode (cname = "TIFFGetVersion")]
-               public static weak string GetVersion ();
+               public static unowned string GetVersion ();
                [CCode (cname = "TIFFFindCODEC")]
-               public static weak Codec FindCODEC (ushort p1);
+               public static unowned Codec FindCODEC (ushort p1);
                [CCode (cname = "TIFFGetBitRevTable")]
-               public static weak string GetBitRevTable (int p1);
+               public static unowned string GetBitRevTable (int p1);
                [CCode (cname = "TIFFGetConfiguredCODECs")]
                public static Codec GetConfiguredCODECs ();
                [CCode (cname = "TIFFRGBAImageBegin")]