CFileItemPtr pItem = new CFileItem("mymovie.mp4", false); CFileItemPtr pEPGItem = pItem->GetEPGInfoTag(); if (pEPGItem != nullptr) { Log(pEPGItem->GetLabel()); }
#define LIBRARY_NAME "libxbmc.so" // ... void* pLibrary = dlopen(LIBRARY_NAME, RTLD_LAZY); if (pLibrary != nullptr) { typedef CFileItemPtr (*GET_EPG_INFO_TAG)(...); GET_EPG_INFO_TAG pFn = (GET_EPG_INFO_TAG)dlsym(pLibrary, "GetEPGInfoTag"); if (pFn != nullptr) { // call the GetEPGInfoTag function here } dlclose(pLibrary); }In this example, we use dynamic linking to load the XBMC library (assuming a Linux environment). We then retrieve the pointer to the GetEPGInfoTag function and call it. The package library here is most likely the XBMC library (libxbmc.so). In conclusion, based on the name of the method and the code examples provided, it is likely that the GetEPGInfoTag method is part of a media player or media center library or framework such as XBMC.