Function anjay_attr_storage_restore

Function Documentation

avs_error_t anjay_attr_storage_restore(anjay_t *anjay, avs_stream_t *in_stream)

Attempts to restore attribute storage from specified in_stream.

Note: before attempting restoration, the Attribute Storage is cleared, so no previously set attributes will be retained. In particular, if restore fails, then the Attribute Storage will be completely cleared and anjay_attr_storage_is_modified will return true.

NOTE: if restorations fails, then the Attribute Storage will be untouched.

Parameters:
  • anjay – Anjay instance.

  • in_stream – Stream to read from.

Returns:

AVS_OK in case of success, or an error code.