axl_bool myqtt_storage_lock_pkgid_offline ( MyQttCtx ctx,
const char *  client_identifier,
int  pkg_id 

Allows to lock the provided id or fail if it is already in use.

ctxThe context where the operation takes place.
client_identifierThe client identifer where to lock the provided pkgid.
pkg_idThe packet id to lock.
axl_true if the pkgid was locked, otherwise axl_false is returned.

References myqtt_support_build_filename().

Referenced by myqtt_conn_offline_pub(), and myqtt_storage_lock_pkgid().