nxt_port_hash.h (593:ef19a2b0f508) nxt_port_hash.h (597:e6586cced0ab)
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_PORT_HASH_H_INCLUDED_
8#define _NXT_PORT_HASH_H_INCLUDED_

--- 4 unchanged lines hidden (view full) ---

13
14nxt_int_t nxt_port_hash_add(nxt_lvlhsh_t *port_hash, nxt_port_t *port);
15
16nxt_int_t nxt_port_hash_remove(nxt_lvlhsh_t *port_hash, nxt_port_t *port);
17
18nxt_port_t *nxt_port_hash_find(nxt_lvlhsh_t *port_hash, nxt_pid_t pid,
19 nxt_port_id_t port_id);
20
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_PORT_HASH_H_INCLUDED_
8#define _NXT_PORT_HASH_H_INCLUDED_

--- 4 unchanged lines hidden (view full) ---

13
14nxt_int_t nxt_port_hash_add(nxt_lvlhsh_t *port_hash, nxt_port_t *port);
15
16nxt_int_t nxt_port_hash_remove(nxt_lvlhsh_t *port_hash, nxt_port_t *port);
17
18nxt_port_t *nxt_port_hash_find(nxt_lvlhsh_t *port_hash, nxt_pid_t pid,
19 nxt_port_id_t port_id);
20
21nxt_port_t *nxt_port_hash_first(nxt_lvlhsh_t *port_hash,
22 nxt_lvlhsh_each_t *lhe);
21nxt_port_t *nxt_port_hash_retrieve(nxt_lvlhsh_t *port_hash);
23
22
24#define nxt_port_hash_next(port_hash, lhe) \
25 nxt_lvlhsh_each((port_hash), (lhe))
26
23
27
28#endif /* _NXT_PORT_HASH_H_INCLIDED_ */
24#endif /* _NXT_PORT_HASH_H_INCLIDED_ */