Home | History | Annotate | Download | only in src

Lines Matching refs:node

51         struct _ValidateNode *node = malloc(sizeof(*node));
53 if (node == NULL) return NULL;
55 node->func = func;
56 node->type_id = 1;
57 return node;
62 * Free an allocated validate list node.
66 psb_free(struct _ValidateNode *node)
68 if (node->type_id == 0)
69 free(containerOf(node, struct _PsbDrmValidateNode, base));
72 free(node);
76 * Clear the private part of the validate list node. This happens when
77 * the list node is newly allocated or is being reused. Since we only have
78 * a private part when node->type_id == 0 we only care to clear in that
83 psb_clear(struct _ValidateNode *node)
85 if (node->type_id == 0) {
87 containerOf(node, struct _PsbDrmValidateNode, base);