Esempio n. 1
0
DDS_QosPolicyCount *
DDS_QosPolicyCountSeq_allocbuf (
    DDS_unsigned_long len
)
{
    return (DDS_QosPolicyCount *)
           gapi_qosPolicyCountSeq_allocbuf (
               (gapi_unsigned_long) len
           );
}
Esempio n. 2
0
gapi_offeredIncompatibleQosStatus *
gapi_offeredIncompatibleQosStatus_alloc (
    void)
{
    gapi_offeredIncompatibleQosStatus *newStatus;

    newStatus = (gapi_offeredIncompatibleQosStatus *)
                    gapi__malloc(gapi_offeredIncompatibleQosStatus_free, 0, sizeof(gapi_offeredIncompatibleQosStatus));

    if ( newStatus ) {
        newStatus->policies._buffer  = gapi_qosPolicyCountSeq_allocbuf(MAX_POLICY_COUNT_ID);
        newStatus->policies._length  = 0;
        newStatus->policies._maximum = MAX_POLICY_COUNT_ID;
        newStatus->policies._release = TRUE;

        if ( newStatus->policies._buffer == NULL ) {
            gapi_free(newStatus);
            newStatus = NULL;
        }
    }

    return newStatus;
}