Defined in OmniClient.h
omniClientWriteFile(char const *url, struct OmniClientContent *content, void *userData, OmniClientWriteFileCallback 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)
The message parameter is applied to the atomic checkpoint created after writing the file.
FIXME: Support streaming writes
If this function is called after omniClientShutdown, kInvalidRequestId will be returned, and the callback will not be called.