OpenDOF Project
DOSOperation DOSOperation_Save ( void  )

Save an operation (local or remote).

This adds the ability to track the operation's lifecycle (retries and timeout/complete), and allows the application to track state, since the operation will be preserved in DOSContext.Operation when callbacks are called.

For local operations, the operation must be saved (just) prior to making the request. For remote operations, the operation must be saved inside the callback processing it.

Note
Calling this will trigger an allocator call. The state will remain until the operation is cancelled.
Returns
The saved operation, or NULL if an error occurred (including if the operation is already saved).
core-c-cos Version 7.0.1 Build 0
2018-02-08