aboutsummaryrefslogtreecommitdiff
path: root/lib/DllLibbluray.h
diff options
context:
space:
mode:
authorelupus <elupus@xbmc.org>2011-10-08 15:15:33 +0200
committerelupus <elupus@xbmc.org>2012-04-11 00:06:22 +0200
commit9b1dd39eb74828c050fac88a00c51b06db9dd7c8 (patch)
treecd732b3603b99c46b303aebe2c9120dbd8fd80a6 /lib/DllLibbluray.h
parentc0e25fd62725550ec96e391c6c1750ab2282cbd1 (diff)
[bluray] Delete support for older libbluray
xbmc will abort configure if an old libbluray is found and configure is auto or yes. To skip libbluray support in that case explicitly disable it.
Diffstat (limited to 'lib/DllLibbluray.h')
-rw-r--r--lib/DllLibbluray.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/DllLibbluray.h b/lib/DllLibbluray.h
index 5fe535ae64..30307ca60d 100644
--- a/lib/DllLibbluray.h
+++ b/lib/DllLibbluray.h
@@ -29,9 +29,7 @@ extern "C"
{
#include <libbluray/bluray.h>
#include <libbluray/filesystem.h>
-#ifndef HAVE_LIBBLURAY_NOLOGCONTROL
#include <libbluray/log_control.h>
-#endif
}
class DllLibblurayInterface
@@ -63,26 +61,18 @@ public:
virtual BD_FILE_OPEN bd_register_file(BD_FILE_OPEN p)=0;
virtual BD_DIR_OPEN bd_register_dir(BD_DIR_OPEN p)=0;
-#ifndef HAVE_LIBBLURAY_NOLOGCONTROL
virtual void bd_set_debug_handler(BD_LOG_FUNC)=0;
virtual void bd_set_debug_mask(uint32_t mask)=0;
virtual uint32_t bd_get_debug_mask(void)=0;
-#endif
virtual const BLURAY_DISC_INFO *bd_get_disc_info(BLURAY *bd)=0;
};
class DllLibbluray : public DllDynamic, DllLibblurayInterface
{
DECLARE_DLL_WRAPPER(DllLibbluray, DLL_PATH_LIBBLURAY)
-#ifdef HAVE_LIBBBLURAY_HAVE_LIBBLURAY_NOANGLE
- DEFINE_METHOD3(uint32_t, bd_get_titles, (BLURAY *p1, uint8_t p2))
- DEFINE_METHOD3(BLURAY_TITLE_INFO*, bd_get_title_info, (BLURAY *p1, uint32_t p2))
- DEFINE_METHOD3(BLURAY_TITLE_INFO*, bd_get_playlist_info, (BLURAY *p1, uint32_t p2))
-#else
DEFINE_METHOD3(uint32_t, bd_get_titles, (BLURAY *p1, uint8_t p2, uint32_t p3))
DEFINE_METHOD3(BLURAY_TITLE_INFO*, bd_get_title_info, (BLURAY *p1, uint32_t p2, unsigned p3))
DEFINE_METHOD3(BLURAY_TITLE_INFO*, bd_get_playlist_info, (BLURAY *p1, uint32_t p2, unsigned p3))
-#endif
DEFINE_METHOD1(void, bd_free_title_info, (BLURAY_TITLE_INFO *p1))
DEFINE_METHOD2(BLURAY*, bd_open, (const char* p1, const char* p2))
DEFINE_METHOD1(void, bd_close, (BLURAY *p1))
@@ -105,11 +95,9 @@ class DllLibbluray : public DllDynamic, DllLibblurayInterface
DEFINE_METHOD1(BD_FILE_OPEN, bd_register_file, (BD_FILE_OPEN p1))
DEFINE_METHOD1(BD_DIR_OPEN, bd_register_dir, (BD_DIR_OPEN p1))
-#ifndef HAVE_LIBBLURAY_NOLOGCONTROL
DEFINE_METHOD1(void, bd_set_debug_handler, (BD_LOG_FUNC p1))
DEFINE_METHOD1(void, bd_set_debug_mask, (uint32_t p1))
DEFINE_METHOD0(uint32_t, bd_get_debug_mask)
-#endif
DEFINE_METHOD1(const BLURAY_DISC_INFO*, bd_get_disc_info, (BLURAY *p1))
BEGIN_METHOD_RESOLVE()
@@ -137,23 +125,12 @@ class DllLibbluray : public DllDynamic, DllLibblurayInterface
RESOLVE_METHOD_RENAME(bd_tell_time, bd_tell_time)
RESOLVE_METHOD_RENAME(bd_register_file, bd_register_file)
RESOLVE_METHOD_RENAME(bd_register_dir, bd_register_dir)
-#ifndef HAVE_LIBBLURAY_NOLOGCONTROL
RESOLVE_METHOD(bd_set_debug_handler)
RESOLVE_METHOD(bd_set_debug_mask)
RESOLVE_METHOD(bd_get_debug_mask)
-#endif
RESOLVE_METHOD(bd_get_disc_info)
END_METHOD_RESOLVE()
-#ifdef HAVE_LIBBBLURAY_HAVE_LIBBLURAY_NOANGLE
- uint32_t bd_get_titles(BLURAY *bd, uint8_t flags, uint32_t min_title_length)
- {return bd_get_titles_noangle(bd, flags); }
- BLURAY_TITLE_INFO* bd_get_title_info(BLURAY *bd, uint32_t title_idx, unsigned angle)
- {return bd_get_title_info_noangle(bd, title_idx); }
- BLURAY_TITLE_INFO* bd_get_playlist_info(BLURAY *bd, uint32_t playlist, unsigned angle)
- {return bd_get_playlist_info_noangle(bd, playlist); }
-#endif
-
public:
static void file_close(BD_FILE_H *file);
static int64_t file_seek(BD_FILE_H *file, int64_t offset, int32_t origin);