[gnome-games/wip/aplazas/libmanette: 15/15] gamepad: Port GamepadInput to Vala



commit d76599ea98fa541e2a7900108cd9589451b66b46
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Nov 8 19:34:03 2017 +0100

    gamepad: Port GamepadInput to Vala

 src/Makefile.am                                    |    5 +--
 src/gamepad/gamepad-input.c                        |   36 --------------------
 src/gamepad/gamepad-input.h                        |   23 ------------
 .../{gamepad-input.vapi => gamepad-input.vala}     |    1 -
 4 files changed, 1 insertions(+), 64 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 735a737..649b8d1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -25,8 +25,6 @@ EXTRA_DIST = \
        $(gresource_file) \
        gamepad/event-codes.vapi \
        gamepad/linux/input-event-codes.h \
-       gamepad/gamepad-input.h \
-       gamepad/gamepad-input.vapi \
        $(NULL)
 
 header_file = libgnome-games.h
@@ -79,7 +77,7 @@ gnome_games_SOURCES = \
        gameinfo/gameinfo-disc-id-input-capabilities.vala \
        \
        gamepad/gamepad-dpad.vala \
-       gamepad/gamepad-input.c \
+       gamepad/gamepad-input.vala \
        gamepad/gamepad-mapping-builder.vala \
        \
        generic/generic-game.vala \
@@ -182,7 +180,6 @@ gnome_games_VALAFLAGS = \
        --pkg linux \
        --pkg posix \
        --pkg event-codes \
-       --pkg gamepad-input \
        --gresources $(gresource_file) \
        --vapi $(vapi_file) \
        --vapidir=gamepad/ \
diff --git a/src/gamepad/gamepad-input.vapi b/src/gamepad/gamepad-input.vala
similarity index 72%
rename from src/gamepad/gamepad-input.vapi
rename to src/gamepad/gamepad-input.vala
index 835e895..0b8fdd0 100644
--- a/src/gamepad/gamepad-input.vapi
+++ b/src/gamepad/gamepad-input.vala
@@ -1,6 +1,5 @@
 // This file is part of GNOME Games. License: GPL-3.0+.
 
-[CCode (cheader_filename = "gamepad-input.h")]
 private struct Games.GamepadInput {
        uint16 type;
        uint16 code;


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