diff options
Diffstat (limited to 'src/nxt_main.h')
-rw-r--r-- | src/nxt_main.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/nxt_main.h b/src/nxt_main.h index 05cca62b..547a0321 100644 --- a/src/nxt_main.h +++ b/src/nxt_main.h @@ -10,26 +10,29 @@ #include <nxt_auto_config.h> -#include <nxt_unix.h> -#include <nxt_clang.h> -#include <nxt_types.h> -#include <nxt_time.h> -#include <nxt_mp.h> -#include <nxt_array.h> - typedef struct nxt_port_s nxt_port_t; typedef struct nxt_task_s nxt_task_t; typedef struct nxt_port_recv_msg_s nxt_port_recv_msg_t; typedef void (*nxt_port_handler_t)(nxt_task_t *task, nxt_port_recv_msg_t *msg); typedef struct nxt_sig_event_s nxt_sig_event_t; typedef struct nxt_runtime_s nxt_runtime_t; -typedef uint16_t nxt_port_id_t; typedef struct nxt_thread_s nxt_thread_t; typedef struct nxt_event_engine_s nxt_event_engine_t; typedef struct nxt_log_s nxt_log_t; typedef struct nxt_thread_pool_s nxt_thread_pool_t; +typedef void (*nxt_work_handler_t)(nxt_task_t *task, void *obj, void *data); + +#include <nxt_unix.h> +#include <nxt_clang.h> +#include <nxt_types.h> +#include <nxt_time.h> +#include <nxt_mp.h> +#include <nxt_array.h> + +typedef uint16_t nxt_port_id_t; + #include <nxt_queue.h> #include <nxt_thread_id.h> |