in src/mqtt_message.c [263:278]
QOS_VALUE mqttmessage_getQosType(MQTT_MESSAGE_HANDLE handle)
{
QOS_VALUE result;
if (handle == NULL)
{
/* Codes_SRS_MQTTMESSAGE_07_014: [If handle is NULL then mqttmessage_getQosType shall return the default DELIVER_AT_MOST_ONCE value.] */
LogError("Invalid Parameter handle: %p.", handle);
result = DELIVER_AT_MOST_ONCE;
}
else
{
/* Codes_SRS_MQTTMESSAGE_07_015: [mqttmessage_getQosType shall return the QOS Type value contained in MQTT_MESSAGE_HANDLE handle.] */
result = handle->qosInfo;
}
return result;
}