xref: /unit/src/nxt_job_resolve.h (revision 0:a63ceefd6ab0)
1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) NGINX, Inc.
5  */
6 
7 #ifndef _NXT_JOB_RESOLVE_H_INCLUDED_
8 #define _NXT_JOB_RESOLVE_H_INCLUDED_
9 
10 
11 typedef struct {
12     nxt_job_t           job;
13     nxt_str_t           name;
14 
15     uint32_t            log_level;  /* 4 bits */
16     in_port_t           port;
17     uint16_t            count;
18 
19     nxt_sockaddr_t      **sockaddrs;
20 
21     nxt_work_handler_t  ready_handler;
22     nxt_work_handler_t  error_handler;
23 } nxt_job_resolve_t;
24 
25 
26 void nxt_job_resolve(nxt_job_resolve_t *jbr);
27 
28 
29 #endif /* _NXT_JOB_RESOLVE_H_INCLUDED_ */
30