int myqtt_msg_ref_count ( MyQttMsg msg)

Returns current reference counting for the msg received.

Parameters
msgThe msg that is required to return the current reference counting.
Returns
Reference counting or -1 if it fails. The function could only fail if a null reference is received.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().