aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlwin Esch <alwin.esch@web.de>2016-12-14 23:57:46 +0100
committerAlwin Esch <alwin.esch@web.de>2016-12-14 23:57:46 +0100
commitb21226dce212c385d3bc359220b153a068cbccfc (patch)
treebe5596174acd9c20a72a1b7c3065fc81efc31254 /lib
parentc47bc9ff98a030459027ea01af380b179151dc46 (diff)
[addons] remove no more used libKODI_game.cpp
Diffstat (limited to 'lib')
-rw-r--r--lib/addons/library.kodi.game/libKODI_game.cpp164
1 files changed, 0 insertions, 164 deletions
diff --git a/lib/addons/library.kodi.game/libKODI_game.cpp b/lib/addons/library.kodi.game/libKODI_game.cpp
deleted file mode 100644
index f6573736c6..0000000000
--- a/lib/addons/library.kodi.game/libKODI_game.cpp
+++ /dev/null
@@ -1,164 +0,0 @@
-/*
- * Copyright (C) 2014-2016 Team Kodi
- * http://kodi.tv
- *
- * This Program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * This Program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this Program; see the file COPYING. If not, see
- * <http://www.gnu.org/licenses/>.
- *
- */
-
-#include "addons/binary/interfaces/AddonInterfaces.h"
-#include "addons/kodi-addon-dev-kit/include/kodi/kodi_game_types.h"
-
-#include <stdio.h>
-
-#ifdef _WIN32
- #include <windows.h>
- #define DLLEXPORT __declspec(dllexport)
-#else
- #define DLLEXPORT
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-DLLEXPORT CB_GameLib* GAME_register_me(AddonCB* frontend)
-{
- CB_GameLib* cb = NULL;
- if (!frontend)
- fprintf(stderr, "ERROR: GAME_register_frontend is called with NULL handle!!!\n");
- else
- {
- cb = static_cast<CB_GameLib*>(frontend->GameLib_RegisterMe(frontend->addonData));
- if (!cb)
- fprintf(stderr, "ERROR: GAME_register_frontend can't get callback table from frontend!!!\n");
- }
- return cb;
-}
-
-DLLEXPORT void GAME_unregister_me(AddonCB* frontend, CB_GameLib* cb)
-{
- if (frontend == NULL || cb == NULL)
- return;
- return frontend->GameLib_UnRegisterMe(frontend->addonData, cb);
-}
-
-DLLEXPORT void GAME_close_game(AddonCB* frontend, CB_GameLib* cb)
-{
- if (frontend == NULL || cb == NULL)
- return;
- return cb->CloseGame(frontend->addonData);
-}
-
-DLLEXPORT int GAME_open_pixel_stream(AddonCB* frontend, CB_GameLib* cb, GAME_PIXEL_FORMAT format, unsigned int width, unsigned int height, GAME_VIDEO_ROTATION rotation)
-{
- if (frontend == NULL || cb == NULL)
- return -1;
-
- return cb->OpenPixelStream(frontend->addonData, format, width, height, rotation);
-}
-
-DLLEXPORT int GAME_open_video_stream(AddonCB* frontend, CB_GameLib* cb, GAME_VIDEO_CODEC codec)
-{
- if (frontend == NULL || cb == NULL)
- return -1;
-
- return cb->OpenVideoStream(frontend->addonData, codec);
-}
-
-DLLEXPORT int GAME_open_pcm_stream(AddonCB* frontend, CB_GameLib* cb, GAME_PCM_FORMAT format, const GAME_AUDIO_CHANNEL* channel_map)
-{
- if (frontend == NULL || cb == NULL)
- return -1;
-
- return cb->OpenPCMStream(frontend->addonData, format, channel_map);
-}
-
-DLLEXPORT int GAME_open_audio_stream(AddonCB* frontend, CB_GameLib* cb, GAME_AUDIO_CODEC codec, const GAME_AUDIO_CHANNEL* channel_map)
-{
- if (frontend == NULL || cb == NULL)
- return -1;
-
- return cb->OpenAudioStream(frontend->addonData, codec, channel_map);
-}
-
-DLLEXPORT void GAME_add_stream_data(AddonCB* frontend, CB_GameLib* cb, GAME_STREAM_TYPE stream, const uint8_t* data, unsigned int size)
-{
- if (frontend == NULL || cb == NULL)
- return;
-
- return cb->AddStreamData(frontend->addonData, stream, data, size);
-}
-
-DLLEXPORT void GAME_close_stream(AddonCB* frontend, CB_GameLib* cb, GAME_STREAM_TYPE stream)
-{
- if (frontend == NULL || cb == NULL)
- return;
-
- return cb->CloseStream(frontend->addonData, stream);
-}
-
-DLLEXPORT void GAME_enable_hardware_rendering(AddonCB* frontend, CB_GameLib* cb, game_hw_info* hw_info)
-{
- if (frontend == NULL || cb == NULL)
- return;
- return cb->EnableHardwareRendering(frontend->addonData, hw_info);
-}
-
-DLLEXPORT uintptr_t GAME_hw_get_current_framebuffer(AddonCB* frontend, CB_GameLib* cb)
-{
- if (frontend == NULL || cb == NULL)
- return 0;
- return cb->HwGetCurrentFramebuffer(frontend->addonData);
-}
-
-DLLEXPORT game_proc_address_t GAME_hw_get_proc_address(AddonCB* frontend, CB_GameLib* cb, const char* sym)
-{
- if (frontend == NULL || cb == NULL)
- return NULL;
- return cb->HwGetProcAddress(frontend->addonData, sym);
-}
-
-DLLEXPORT void GAME_render_frame(AddonCB* frontend, CB_GameLib* cb)
-{
- if (frontend == NULL || cb == NULL)
- return;
- cb->RenderFrame(frontend->addonData);
-}
-
-DLLEXPORT bool GAME_open_port(AddonCB* frontend, CB_GameLib* cb, unsigned int port)
-{
- if (frontend == NULL || cb == NULL)
- return false;
- return cb->OpenPort(frontend->addonData, port);
-}
-
-DLLEXPORT void GAME_close_port(AddonCB* frontend, CB_GameLib* cb, unsigned int port)
-{
- if (frontend == NULL || cb == NULL)
- return;
- return cb->ClosePort(frontend->addonData, port);
-}
-
-DLLEXPORT bool GAME_input_event(AddonCB* frontend, CB_GameLib* cb, const game_input_event* event)
-{
- if (frontend == NULL || cb == NULL)
- return false;
- return cb->InputEvent(frontend->addonData, event);
-}
-
-#ifdef __cplusplus
-}
-#endif