axl_bool myqtt_storage_clear_offline ( MyQttCtx ctx,
const char *  client_identifier,
MyQttStorage  storage 
)

Clears the storage associated to the provided client_identifier.

Parameters
ctxThe context where the operation will take place.
client_identifierThe client identifier for which the storage will be cleared.
storageThe part of the storage that have to be cleared.
Returns
axl_true in the case clear operation took place without errors, otherwise axl_false is returned.

References FILE_EXISTS, FILE_IS_DIR, myqtt_support_build_filename(), and myqtt_support_file_test().

Referenced by myqtt_storage_clear().