Lines Matching refs:lhq
129 static nxt_int_t nxt_router_apps_hash_test(nxt_lvlhsh_query_t *lhq, void *data);
2553 nxt_router_apps_hash_test(nxt_lvlhsh_query_t *lhq, void *data) in nxt_router_apps_hash_test() argument
2559 return nxt_strstr_eq(&lhq->key, &app->name) ? NXT_OK : NXT_DECLINED; in nxt_router_apps_hash_test()
2566 nxt_lvlhsh_query_t lhq; in nxt_router_apps_hash_add() local
2568 lhq.key_hash = nxt_djb_hash(app->name.start, app->name.length); in nxt_router_apps_hash_add()
2569 lhq.replace = 0; in nxt_router_apps_hash_add()
2570 lhq.key = app->name; in nxt_router_apps_hash_add()
2571 lhq.value = app; in nxt_router_apps_hash_add()
2572 lhq.proto = &nxt_router_apps_hash_proto; in nxt_router_apps_hash_add()
2573 lhq.pool = rtcf->mem_pool; in nxt_router_apps_hash_add()
2575 switch (nxt_lvlhsh_insert(&rtcf->apps_hash, &lhq)) { in nxt_router_apps_hash_add()
2582 "\"%V\" is already in hash", &lhq.key); in nxt_router_apps_hash_add()
2593 nxt_lvlhsh_query_t lhq; in nxt_router_apps_hash_get() local
2595 lhq.key_hash = nxt_djb_hash(name->start, name->length); in nxt_router_apps_hash_get()
2596 lhq.key = *name; in nxt_router_apps_hash_get()
2597 lhq.proto = &nxt_router_apps_hash_proto; in nxt_router_apps_hash_get()
2599 if (nxt_lvlhsh_find(&rtcf->apps_hash, &lhq) != NXT_OK) { in nxt_router_apps_hash_get()
2603 return lhq.value; in nxt_router_apps_hash_get()