[vala/wip/sdl2: 42/42] SDL2_net: Fix issues




commit 21446a6b9ab7c235d1708ae018c18b735cce17c7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Jan 31 09:01:51 2021 +0100

    SDL2_net: Fix issues

 vapi/SDL2_net.vapi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vapi/SDL2_net.vapi b/vapi/SDL2_net.vapi
index e89b769b1..b0530a03e 100644
--- a/vapi/SDL2_net.vapi
+++ b/vapi/SDL2_net.vapi
@@ -27,10 +27,10 @@
  *  Pedro H. Lara Campos <root pedrohlc com>
  */
 
-[CCode (cprefix = "SDLNet_", cheader_filename = "SDL2/SDL2_net.h")]
+[CCode (cprefix = "SDLNet_", cheader_filename = "SDL2/SDL_net.h")]
 namespace SDLNet {
        [CCode (cname = "SDLNet_Linked_Version")]
-       public static SDL.Version linked ();
+       public static unowned SDL.Version? linked_version ();
 
        [CCode (cname = "SDLNet_Init")]
        public static int init ();
@@ -86,7 +86,7 @@ namespace SDLNet {
                public int resize (int newsize);
        }// UDPPacket
 
-       [CCode (cname = "void")]
+       [CCode (cname = "struct _SDLNet_GenericSocket")]
        [Compact]
        public class Socket {
                public int ready;
@@ -154,7 +154,7 @@ namespace SDLNet {
                [CCode (cname = "SDLNet_CheckSockets")]
                public int has_data (uint timeout);
 
-               [CCode (cname = "SDLNet_SocketReady ")]
+               [CCode (cname = "SDLNet_SocketReady")]
                public int is_ready ();
        }// SocketSet
 }// SDL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]