Functions¶
|
|
|
|
|
|
|
Details¶
- Infinityd.chat_filesystem_format_read(storage, path, buffer)¶
- Parameters:
storage (
Infinityd.FilesystemStorage) – AInfinityd.FilesystemStorage.path (
str) – Storage path to retrieve the session from.buffer (
Infinity.ChatBuffer) – An empty #InfTextBuffer to use as the new session’s buffer.
- Raises:
- Returns:
- Return type:
Reads a chat session from path in storage. The file is expected to have been saved with
Infinityd.chat_filesystem_format_write() before. The buffer parameter should be an emptyInfinity.ChatBuffer, and the document will be written into this buffer. If the function succeeds, the buffer can be used to create anInfinity.ChatSessionwithInfinity.ChatSession.new(). If the function fails,Falseis returned and error is set.
- Infinityd.chat_filesystem_format_write(storage, path, buffer)¶
- Parameters:
storage (
Infinityd.FilesystemStorage) – AInfinityd.FilesystemStorage.path (
str) – Storage path where to write the session to.buffer (
Infinity.ChatBuffer) – TheInfinity.ChatBufferto write.
- Raises:
- Returns:
- Return type:
Writes the given buffer into the filesystem storage at path. If successful, the session can then be read back with
Infinityd.chat_filesystem_format_read(). If the function fails,Falseis returned and error is set.
- Infinityd.storage_acl_list_free(acl_list)¶
- Parameters:
acl_list ([
Infinityd.StorageAcl]) – A list ofInfinityd.StorageAclobjects.
Frees a singly-linked list of
Infinityd.StorageAclas returned by infd_storage_read_acls().
- Infinityd.storage_node_list_free(node_list)¶
- Parameters:
node_list ([
Infinityd.StorageNode]) – A list ofInfinityd.StorageNodeobjects.
Frees a singly-linked list of
Infinityd.StorageNodeas returned byInfinityd.Storage.read_subdirectory().