Exemple #1
0
/**************************************************************
 * private functions
 **************************************************************/
static c_bool
v_topicQosValidValues(
    v_topicQos qos)
{
    int valuesOk;
    
    valuesOk = 1;
    /* no typechecking, since qos might be allocated on heap! */
    if (qos != NULL) {
        /* value checking */
        valuesOk = 1;
        valuesOk &= v_durabilityPolicyValid(qos->durability);
        valuesOk &= v_durabilityServicePolicyValid(qos->durabilityService);
        valuesOk &= v_deadlinePolicyValid(qos->deadline);
        valuesOk &= v_latencyPolicyValid(qos->latency);
        valuesOk &= v_livelinessPolicyValid(qos->liveliness);
        valuesOk &= v_reliabilityPolicyValid(qos->reliability);
        valuesOk &= v_orderbyPolicyValid(qos->orderby);
        valuesOk &= v_historyPolicyValid(qos->history);
        valuesOk &= v_resourcePolicyValid(qos->resource);
        valuesOk &= v_transportPolicyValid(qos->transport);
        valuesOk &= v_lifespanPolicyValid(qos->lifespan);
        valuesOk &= v_ownershipPolicyValid(qos->ownership);
        valuesOk &= v_topicDataPolicyValid(qos->topicData);
    }

    return (valuesOk?TRUE:FALSE);
}
Exemple #2
0
/**************************************************************
 * private functions
 **************************************************************/
static c_bool
v_readerQosValidValues(
    v_readerQos qos)
{
    int valuesOk;

    /* no typechecking, since qos might be allocated on heap! */
    valuesOk = 1; 
    if (qos != NULL) {
        /* value checking */
        valuesOk &= v_durabilityPolicyValid(qos->durability);
        valuesOk &= v_deadlinePolicyValid(qos->deadline);
        valuesOk &= v_latencyPolicyValid(qos->latency);
        valuesOk &= v_livelinessPolicyValid(qos->liveliness);
        valuesOk &= v_reliabilityPolicyValid(qos->reliability);
        valuesOk &= v_orderbyPolicyValid(qos->orderby);
        valuesOk &= v_historyPolicyValid(qos->history);
        valuesOk &= v_resourcePolicyValid(qos->resource);
        valuesOk &= v_ownershipPolicyValid(qos->ownership);
        valuesOk &= v_pacingPolicyValid(qos->pacing);
        valuesOk &= v_readerLifecyclePolicyValid(qos->lifecycle);
        valuesOk &= v_readerLifespanPolicyValid(qos->lifespan);
        valuesOk &= v_userDataPolicyValid(qos->userData);
        valuesOk &= v_userKeyPolicyValid(qos->userKey);
        valuesOk &= v_sharePolicyValid(qos->share);
    }
    return (valuesOk?TRUE:FALSE);
}