16#include <kodi/AddonBase.h>
17#include <kodi/Filesystem.h>
27#define REGISTER_DLL_SYMBOL(functionPtr) \
28 kodi::tools::CDllHelper::RegisterSymbol(functionPtr, #functionPtr)
122#if defined(TARGET_ANDROID)
126 std::string xbmcaltbinaddons =
128 if (path.compare(0, xbmcaltbinaddons.length(), xbmcaltbinaddons) != 0)
165 m_dll = dlopen(path.c_str(), RTLD_LOCAL | RTLD_LAZY);
166 if (m_dll ==
nullptr)
192 functionPtr =
reinterpret_cast<T
>(dlsym(m_dll, strFunctionPtr));
193 if (functionPtr ==
nullptr)
203 void* m_dll =
nullptr;
Definition Filesystem.h:96
@ ADDON_LOG_DEBUG
0 : To include debug information in the log file.
Definition addon_base.h:184
@ ADDON_LOG_ERROR
3 : To report error messages in the log file.
Definition addon_base.h:193
uint64_t GetSize() const
Get total size, in bytes.
Definition Filesystem.h:150
time_t GetModificationTime() const
Get time of last modification.
Definition Filesystem.h:165
bool ATTR_DLL_LOCAL CopyFile(const std::string &filename, const std::string &destination)
Copy a file from source to destination.
Definition Filesystem.h:1074
bool ATTR_DLL_LOCAL StatFile(const std::string &filename, kodi::vfs::FileStatus &buffer)
Get file status.
Definition Filesystem.h:1000
bool ATTR_DLL_LOCAL FileExists(const std::string &filename, bool usecache=false)
Check if a file exists.
Definition Filesystem.h:945
std::string ATTR_DLL_LOCAL TranslateSpecialProtocol(const std::string &source)
Returns the translated path.
Definition Filesystem.h:1293
std::string ATTR_DLL_LOCAL GetFileName(const std::string &path)
Return the file name from given complete path string.
Definition Filesystem.h:1377
void ATTR_DLL_LOCAL Log(const ADDON_LOG loglevel, const char *format,...)
Add a message to Kodi's log.
Definition AddonBase.h:1938