aboutsummaryrefslogtreecommitdiff
path: root/lib/addons/library.xbmc.codec/libXBMC_codec.cpp
diff options
context:
space:
mode:
authorAlwin Esch <alwin.esch@web.de>2016-09-10 15:24:59 +0200
committerAlwin Esch <alwin.esch@web.de>2016-12-13 17:14:05 +0100
commitc65833aff26f79813e7495639bd639b717bb4804 (patch)
tree4a8277b764a5963630b9d2acdbde9dea587905d7 /lib/addons/library.xbmc.codec/libXBMC_codec.cpp
parent3115b54b63f0512c502d7eb2a943ac048bebf5c5 (diff)
[addon] bye, bye libXBMC_codec.cpp
Diffstat (limited to 'lib/addons/library.xbmc.codec/libXBMC_codec.cpp')
-rw-r--r--lib/addons/library.xbmc.codec/libXBMC_codec.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/lib/addons/library.xbmc.codec/libXBMC_codec.cpp b/lib/addons/library.xbmc.codec/libXBMC_codec.cpp
deleted file mode 100644
index 7c042153e2..0000000000
--- a/lib/addons/library.xbmc.codec/libXBMC_codec.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright (C) 2012-2013 Team XBMC
- * http://xbmc.org
- *
- * 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 XBMC; see the file COPYING. If not, see
- * <http://www.gnu.org/licenses/>.
- *
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string>
-#include "addons/binary/interfaces/api1/Codec/AddonCallbacksCodec.h"
-#include "addons/kodi-addon-dev-kit/include/kodi/libXBMC_codec.h"
-
-#ifdef _WIN32
-#include <windows.h>
-#define DLLEXPORT __declspec(dllexport)
-#else
-#define DLLEXPORT
-#endif
-
-using namespace std;
-using namespace KodiAPI::V1::Codec;
-
-extern "C"
-{
-
-DLLEXPORT void* CODEC_register_me(void *hdl)
-{
- CB_CodecLib *cb = NULL;
- if (!hdl)
- fprintf(stderr, "libXBMC_codec-ERROR: %s is called with NULL handle\n", __FUNCTION__);
- else
- {
- cb = (CB_CodecLib*)((AddonCB*)hdl)->CodecLib_RegisterMe(((AddonCB*)hdl)->addonData);
- if (!cb)
- fprintf(stderr, "libXBMC_codec-ERROR: %s can't get callback table from XBMC\n", __FUNCTION__);
- }
- return cb;
-}
-
-DLLEXPORT void CODEC_unregister_me(void *hdl, void* cb)
-{
- if (hdl && cb)
- ((AddonCB*)hdl)->CodecLib_UnRegisterMe(((AddonCB*)hdl)->addonData, (CB_CodecLib*)cb);
-}
-
-DLLEXPORT xbmc_codec_t CODEC_get_codec_by_name(void *hdl, void* cb, const char* strCodecName)
-{
- xbmc_codec_t retVal;
- retVal.codec_id = XBMC_INVALID_CODEC_ID;
- retVal.codec_type = XBMC_CODEC_TYPE_UNKNOWN;
-
- if (cb != NULL)
- retVal = ((CB_CodecLib*)cb)->GetCodecByName(((AddonCB*)hdl)->addonData, strCodecName);
-
- return retVal;
-}
-
-};