axl_bool myqtt_storage_sub_exists_common ( MyQttCtx ctx,
MyQttConn conn,
const char *  topic_filter,
MyQttQos  requested_qos,
axl_bool  remove_if_found 
)

Allows to check if the provided topic_filter is already subscribed for the provided connection and optionally removing it.

Parameters
ctxThe context where operation takes place.
connThe connection to check subscription.
topic_filterThe topic filter to check.
requested_qosRequested QoS for the subscription.
remove_if_foundRemove the subscription if found.
Returns
axl_true if the subscription oepration was completed, otherwise axl_false is reported.

References myqtt_support_build_filename().

Referenced by myqtt_storage_sub_exists(), and myqtt_storage_unsub().