Lines Matching refs:cmp_func
69 * root = lut_add(root, key, value, cmp_func);
71 * the cmp_func can be strcmp(). pass in NULL and instead of
72 * calling a cmp_func the routine will just look at the difference
78 lut_add(struct lut *root, void *lhs, void *rhs, lut_cmp cmp_func)
84 if (cmp_func)
85 diff = (*cmp_func)(tmp->lut_lhs, lhs);
116 lut_lookup(struct lut *root, void *lhs, lut_cmp cmp_func)
123 if (cmp_func)
124 diff = (*cmp_func)(root->lut_lhs, lhs);
139 lut_lookup_lhs(struct lut *root, void *lhs, lut_cmp cmp_func)
146 if (cmp_func)
147 diff = (*cmp_func)(root->lut_lhs, lhs);