|
Kodi Documentation
18.0
Kodi is an open source media player and entertainment hub.
|
#include "../AddonBase.h"#include "../Filesystem.h"#include "filesystem/IFileTypes.h"#include "PlatformDefs.h"Classes | |
| struct | VFSURL |
| struct | VFSGetDirectoryCallbacks |
| struct | AddonProps_VFSEntry |
| struct | AddonToKodiFuncTable_VFSEntry |
| struct | KodiToAddonFuncTable_VFSEntry |
| struct | AddonInstance_VFSEntry |
| class | kodi::addon::CInstanceVFS |
Namespaces | |
| kodi | |
| kodi::addon | |
Typedefs | |
| typedef struct VFSGetDirectoryCallbacks | VFSGetDirectoryCallbacks |
| typedef struct AddonProps_VFSEntry | AddonProps_VFSEntry |
| typedef struct AddonToKodiFuncTable_VFSEntry | AddonToKodiFuncTable_VFSEntry |
| typedef struct KodiToAddonFuncTable_VFSEntry | KodiToAddonFuncTable_VFSEntry |
| typedef struct AddonInstance_VFSEntry | AddonInstance_VFSEntry |
Functions | |
| kodi::addon::CInstanceVFS IAddonInstance | kodi::addon::GetKeyboardInput (const std::string &heading, std::string &input, bool hiddenInput=false) |
| Require keyboard input. More... | |
| CInstanceVFS (KODI_HANDLE instance) | |
| ~CInstanceVFS () override=default | |
| virtual void * | Open (const VFSURL &url) |
| Open a file for input. More... | |
| virtual void * | OpenForWrite (const VFSURL &url, bool overWrite) |
| Open a file for output. More... | |
| virtual ssize_t | Read (void *context, void *buffer, size_t uiBufSize) |
| Read from a file. More... | |
| virtual ssize_t | Write (void *context, const void *buffer, size_t uiBufSize) |
| Write to a file. More... | |
| virtual int64_t | Seek (void *context, int64_t position, int whence) |
| Seek in a file. More... | |
| virtual int | Truncate (void *context, int64_t size) |
| Truncate a file. More... | |
| virtual int64_t | GetLength (void *context) |
| Get total size of a file. More... | |
| virtual int64_t | GetPosition (void *context) |
| Get current position in a file. More... | |
| virtual int | GetChunkSize (void *context) |
| Get chunk size of a file. More... | |
| virtual int | IoControl (void *context, XFILE::EIoControl request, void *param) |
| Perform an IO-control on the file. More... | |
| virtual bool | Close (void *context) |
| Close a file. More... | |
| virtual int | Stat (const VFSURL &url, struct __stat64 *buffer) |
| Stat a file. More... | |
| virtual bool | Exists (const VFSURL &url) |
| Check for file existence. More... | |
| virtual void | ClearOutIdle () |
| Clear out any idle connections. More... | |
| virtual void | DisconnectAll () |
| Disconnect all connections. More... | |
| virtual bool | Delete (const VFSURL &url) |
| Delete a file. More... | |
| virtual bool | Rename (const VFSURL &url, const VFSURL &url2) |
| Rename a file. More... | |
| virtual bool | DirectoryExists (const VFSURL &url) |
| Check for directory existence. More... | |
| virtual bool | RemoveDirectory (const VFSURL &url) |
| Remove a directory. More... | |
| virtual bool | CreateDirectory (const VFSURL &url) |
| Create a directory. More... | |
| void | kodi::addon::SetErrorDialog (const std::string &heading, const std::string &line1, const std::string &line2="", const std::string &line3="") |
| Display an error dialog. More... | |
| void | kodi::addon::RequireAuthentication (const std::string &url) |
| Prompt the user for authentication of a URL. More... | |
| kodi::addon::CVFSCallbacks (const VFSGetDirectoryCallbacks *cb) | |
| typedef struct AddonInstance_VFSEntry AddonInstance_VFSEntry |
| typedef struct AddonProps_VFSEntry AddonProps_VFSEntry |
| typedef struct AddonToKodiFuncTable_VFSEntry AddonToKodiFuncTable_VFSEntry |
| typedef struct KodiToAddonFuncTable_VFSEntry KodiToAddonFuncTable_VFSEntry |
| typedef struct VFSGetDirectoryCallbacks VFSGetDirectoryCallbacks |
|
explicit |
|
virtual |
Clear out any idle connections.
|
virtual |
Close a file.
| [in] | context | The context of the file |
|
virtual |
Create a directory.
| [in] | url | The URL of the file |
|
virtual |
Delete a file.
| [in] | url | The URL of the file |
|
virtual |
Check for directory existence.
| [in] | url | The URL of the file |
|
virtual |
Disconnect all connections.
|
virtual |
Check for file existence.
| [in] | url | The URL of the file |
|
virtual |
Get chunk size of a file.
| [in] | context | The context of the file |
|
virtual |
Get total size of a file.
| [in] | context | The context of the file |
|
virtual |
Get current position in a file.
| [in] | context | The context of the file |
|
virtual |
Perform an IO-control on the file.
| [in] | context | The context of the file |
| [in] | request | The requested IO-control |
| [in] | param | Parameter attached to the IO-control |
Open a file for input.
| [in] | url | The URL of the file |
Open a file for output.
| [in] | url | The URL of the file |
| [in] | overWrite | Whether or not to overwrite an existing file |
Read from a file.
| [in] | context | The context of the file |
| [out] | buffer | The buffer to read data into |
| [in] | uiBufSize | Number of bytes to read |
|
virtual |
Remove a directory.
| [in] | url | The URL of the directory |
Rename a file.
| [in] | url | The URL of the source file |
| [in] | url2 | The URL of the destination file |
|
virtual |
Seek in a file.
| [in] | context | The context of the file |
| [in] | position | The position to seek to |
| [in] | whence | Position in file 'position' is relative to (SEEK_CUR, SEEK_SET, SEEK_END) |
Stat a file.
| [in] | url | The URL of the file |
| [in] | buffer | The buffer to store results in |
|
virtual |
Truncate a file.
| [in] | context | The context of the file |
| [in] | size | The size to truncate the file to |
|
virtual |
Write to a file.
| [in] | context | The context of the file |
| [in] | buffer | The buffer to read data from |
| [in] | uiBufSize | Number of bytes to write |
|
overridedefault |