Logo Search packages:      
Sourcecode: blender version File versions  Download package

static QDM2SubPNode* qdm2_search_subpacket_type_in_list ( QDM2SubPNode list,
int  type 
) [static]

Return node pointer to first packet of requested type in list.

list list of subpackets to be scanned
type type of searched subpacket
node pointer for subpacket if found, else NULL

Definition at line 456 of file qdm2.c.

References _QDM2SubPNode::next, _QDM2SubPNode::packet, and QDM2SubPacket::type.

    while (list != NULL && list->packet != NULL) {
        if (list->packet->type == type)
            return list;
        list = list->next;
    return NULL;

Generated by  Doxygen 1.6.0   Back to index