![]() |
Kodi Documentation
18.0
Kodi is an open source media player and entertainment hub.
|
#include <VFS.h>
Public Member Functions | |
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... | |
![]() | |
IAddonInstance (ADDON_TYPE type) | |
virtual | ~IAddonInstance ()=default |
virtual ADDON_STATUS | CreateInstance (int instanceType, std::string instanceID, KODI_HANDLE instance, KODI_HANDLE &addonInstance) |
Additional Inherited Members | |
![]() | |
const ADDON_TYPE | m_type |
|
inlineexplicit |
|
overridedefault |
|
inlinevirtual |
Clear out any idle connections.
|
inlinevirtual |
Close a file.
[in] | context | The context of the file |
|
inlinevirtual |
Create a directory.
[in] | url | The URL of the file |
|
inlinevirtual |
Delete a file.
[in] | url | The URL of the file |
|
inlinevirtual |
Check for directory existence.
[in] | url | The URL of the file |
|
inlinevirtual |
Disconnect all connections.
|
inlinevirtual |
Check for file existence.
[in] | url | The URL of the file |
|
inlinevirtual |
Get chunk size of a file.
[in] | context | The context of the file |
|
inlinevirtual |
Get total size of a file.
[in] | context | The context of the file |
|
inlinevirtual |
Get current position in a file.
[in] | context | The context of the file |
|
inlinevirtual |
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 |
|
inlinevirtual |
Open a file for output.
[in] | url | The URL of the file |
[in] | overWrite | Whether or not to overwrite an existing file |
|
inlinevirtual |
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 |
|
inlinevirtual |
Remove a directory.
[in] | url | The URL of the directory |
|
inlinevirtual |
Rename a file.
[in] | url | The URL of the source file |
[in] | url2 | The URL of the destination file |
|
inlinevirtual |
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) |
|
inlinevirtual |
Stat a file.
[in] | url | The URL of the file |
[in] | buffer | The buffer to store results in |
|
inlinevirtual |
Truncate a file.
[in] | context | The context of the file |
[in] | size | The size to truncate the file to |
|
inlinevirtual |
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 |