Return error codes for port_hash operations.

This commit is contained in:
Max Romanov
2017-10-04 15:02:00 +03:00
parent 85e485776b
commit f869bf1b02
3 changed files with 30 additions and 8 deletions

View File

@@ -11,9 +11,9 @@
#include <nxt_main.h>
void nxt_port_hash_add(nxt_lvlhsh_t *port_hash, nxt_port_t *port);
nxt_int_t nxt_port_hash_add(nxt_lvlhsh_t *port_hash, nxt_port_t *port);
void nxt_port_hash_remove(nxt_lvlhsh_t *port_hash, nxt_port_t *port);
nxt_int_t nxt_port_hash_remove(nxt_lvlhsh_t *port_hash, nxt_port_t *port);
nxt_port_t *nxt_port_hash_find(nxt_lvlhsh_t *port_hash, nxt_pid_t pid,
nxt_port_id_t port_id);