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_LAZY);
166 if (m_dll ==
nullptr)
189 template <
typename T>
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:151
@ ADDON_LOG_ERROR
3 : To report error messages in the log file.
Definition: addon_base.h:160
uint64_t GetSize() const
Get total size, in bytes.
Definition: Filesystem.h:147
time_t GetModificationTime() const
Get time of last modification.
Definition: Filesystem.h:162
bool ATTRIBUTE_HIDDEN StatFile(const std::string &filename, kodi::vfs::FileStatus &buffer)
Get file status.
Definition: Filesystem.h:995
bool ATTRIBUTE_HIDDEN FileExists(const std::string &filename, bool usecache=false)
Check if a file exists.
Definition: Filesystem.h:940
bool ATTRIBUTE_HIDDEN CopyFile(const std::string &filename, const std::string &destination)
Copy a file from source to destination.
Definition: Filesystem.h:1069
std::string ATTRIBUTE_HIDDEN TranslateSpecialProtocol(const std::string &source)
Returns the translated path.
Definition: Filesystem.h:1287
std::string ATTRIBUTE_HIDDEN GetFileName(const std::string &path)
Return the file name from given complate path string.
Definition: Filesystem.h:1371
void ATTRIBUTE_HIDDEN Log(const AddonLog loglevel, const char *format,...)
Add a message to Kodi's log.
Definition: AddonBase.h:749