omniClientWriteFileEx

Defined in OmniClient.h

OmniClientRequestId omniClientWriteFileEx(char const *url, struct OmniClientContent *content, void *userData, OmniClientWriteFileExCallback callback, const char *message)

Create a new file, overwriting if it already exists.

This function takes ownership of the content buffer, and frees it when it’s finished with it (which may be some time in the future). This is the same as omniClientWriteFile except that it also provides extra information about the file that was written.

FIXME: Support streaming writes

Note

If this function is called after omniClientShutdown, kInvalidRequestId will be returned, and the callback will not be called.

Parameters

message – is applied to the atomic checkpoint created after writing the file.