[vala-extra-vapis: 2/2] sdl2: Fix SDL_JoystickGUID and SDL_JoystickGetGUIDString binding
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala-extra-vapis: 2/2] sdl2: Fix SDL_JoystickGUID and SDL_JoystickGetGUIDString binding
- Date: Wed, 5 Aug 2020 11:29:38 +0000 (UTC)
commit e1d7cfa078b9ae738b4f575cb9de168cfc52302f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Aug 5 12:47:56 2020 +0200
sdl2: Fix SDL_JoystickGUID and SDL_JoystickGetGUIDString binding
sdl2.vapi | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/sdl2.vapi b/sdl2.vapi
index e3bbeaf..3d066ac 100644
--- a/sdl2.vapi
+++ b/sdl2.vapi
@@ -3037,6 +3037,7 @@ namespace SDL {
}// Cursor
[CCode (cname = "SDL_JoystickGUID", cheader_filename = "SDL2/SDL_joystick.h")]
+ [SimpleType]
public struct JoystickGUID {
uint8 data[16];
}
@@ -3081,13 +3082,13 @@ namespace SDL {
public Input.JoystickGUID get_guid ();
[CCode (cname = "SDL_JoystickGetGUIDString")]
- public static void get_guid_buffer (Input.JoystickGUID guid, out uint8[] ps);
+ public static void get_guid_buffer (Input.JoystickGUID guid, uint8[] ps);
//Convenience method, use guid_buffer if the GUID is truncated here
public static string get_guid_string (Input.JoystickGUID guid) {
uint8 buf[1024];
- get_guid_buffer (guid, out buf);
- return (string)buf;
+ get_guid_buffer (guid, buf);
+ return (string) buf;
}
[CCode (cname = "SDL_JoystickGetGUIDFromString")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]