Deleted Added
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) Igor Sysoev
5 * Copyright (C) Valentin V. Bartenev
6 * Copyright (C) NGINX, Inc.
7 */
8
9#include <nxt_main.h>
10#include <nxt_runtime.h>
11#include <nxt_application.h>
12#include <nxt_main_process.h>
13
14#include <glob.h>
15
16
17typedef struct {
18 nxt_str_t type;
19 nxt_str_t version;
20 nxt_str_t file;

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

45 nxt_runtime_t *rt;
46
47 nxt_debug(task, "DISCOVERY");
48
49 rt = task->thread->runtime;
50
51 b = nxt_discovery_modules(task, rt->modules);
52
53 main_port = rt->port_by_type[NXT_PROCESS_MAIN];
54
55 nxt_port_socket_write(task, main_port, NXT_PORT_MSG_MODULES, -1,
56 0, -1, b);
57
58 return NXT_OK;
59}
60
61

--- 939 unchanged lines hidden ---