static void vl_api_want_##lca##_t_handler ( \
vl_api_want_##lca##_t *mp) \
{ \
vpe_client_registration_t *rp; \
vl_api_want_##lca##_reply_t *rmp;
\ \
p =
hash_get (vam->lca##_registration_hash, mp->client_index); \
if (p) { \
if (mp->enable_disable) {
\ rv = VNET_API_ERROR_INVALID_REGISTRATION; \
goto reply; \
} else { \
mp->client_index); \
goto reply; \
} \
} \
if (mp->enable_disable == 0) {
\ rv = VNET_API_ERROR_INVALID_REGISTRATION; \
goto reply; \
pool_get (vam->lca##_registrations, rp); \
rp->client_index = mp->client_index; \
rp->client_pid = mp->pid;
\ hash_set (vam->lca##_registration_hash, rp->client_index, \
rp - vam->lca##_registrations); \
\
}
#define hash_set(h, key, value)
#define hash_unset(h, key)
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment).
#define clib_warning(format, args...)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
#define pool_put(P, E)
Free an object E in pool P.
vpe_api_main_t vpe_api_main