Functions

chat_filesystem_format_read (storage, path, buffer)

chat_filesystem_format_write (storage, path, buffer)

storage_acl_list_free (acl_list)

storage_node_list_free (node_list)

Details

Infinityd.chat_filesystem_format_read(storage, path, buffer)
Parameters:
Raises:

GLib.Error

Returns:

True on success or False on error.

Return type:

bool

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 empty Infinity.ChatBuffer, and the document will be written into this buffer. If the function succeeds, the buffer can be used to create an Infinity.ChatSession with Infinity.ChatSession.new(). If the function fails, False is returned and error is set.

Infinityd.chat_filesystem_format_write(storage, path, buffer)
Parameters:
Raises:

GLib.Error

Returns:

True on success or False on error.

Return type:

bool

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 of Infinityd.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 of Infinityd.StorageNode objects.

Frees a singly-linked list of Infinityd.StorageNode as returned by Infinityd.Storage.read_subdirectory().