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.ChatSession
withInfinity.ChatSession.new
(). If the function fails,False
is 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.ChatBuffer
to 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,False
is returned and error is set.
- Infinityd.storage_acl_list_free(acl_list)¶
- Parameters:
acl_list ([
Infinityd.StorageAcl
]) – A list ofInfinityd.StorageAcl
objects.
Frees a singly-linked list of
Infinityd.StorageAcl
as returned by infd_storage_read_acls().
- Infinityd.storage_node_list_free(node_list)¶
- Parameters:
node_list ([
Infinityd.StorageNode
]) – A list ofInfinityd.StorageNode
objects.
Frees a singly-linked list of
Infinityd.StorageNode
as returned byInfinityd.Storage.read_subdirectory
().