Policy Settings
[HMap]

Functions

int u_hmap_opts_set_policy (u_hmap_opts_t *opts, u_hmap_pcy_type_t policy)
 Set discard policy.
int u_hmap_opts_set_policy_cmp (u_hmap_opts_t *opts, int(*f_pcy_cmp)(void *o1, void *o2))
 Set custom policy comparison function.

Function Documentation

int u_hmap_opts_set_policy_cmp ( u_hmap_opts_t *  opts,
int(*)(void *o1, void *o2)  f_pcy_cmp 
)

Sets the object comparison function for U_HMAP_PCY_CUSTOM discard policy. The function should return 1 if o1 has higher priority than o2, 0 if it is equal and -1 if the priority is lower.

Definition at line 1461 of file srcs/toolbox/hmap.c.

References U_HMAP_PCY_CUSTOM.


←Products
© 2005-2012 - KoanLogic S.r.l. - All rights reserved