Lines Matching refs:module

210     nxt_module_t    *module;  in nxt_discovery_modules()  local
245 module = modules->elts; in nxt_discovery_modules()
250 module[i].type, &module[i].version, &module[i].file); in nxt_discovery_modules()
258 + module[i].version.length in nxt_discovery_modules()
259 + module[i].file.length; in nxt_discovery_modules()
261 mounts = module[i].mounts; in nxt_discovery_modules()
288 mounts = module[i].mounts; in nxt_discovery_modules()
292 module[i].type, &module[i].version, &module[i].file); in nxt_discovery_modules()
336 nxt_module_t *module; in nxt_discovery_module() local
377 module = modules->elts; in nxt_discovery_module()
384 if (type == module[i].type in nxt_discovery_module()
385 && nxt_strstr_eq(&module[i].version, &version)) in nxt_discovery_module()
390 name, &app->type, &version, &module[i].file); in nxt_discovery_module()
396 module = nxt_array_add(modules); in nxt_discovery_module()
397 if (module == NULL) { in nxt_discovery_module()
401 module->type = type; in nxt_discovery_module()
403 nxt_str_dup(mp, &module->version, &version); in nxt_discovery_module()
404 if (module->version.start == NULL) { in nxt_discovery_module()
408 module->file.length = nxt_strlen(name); in nxt_discovery_module()
410 module->file.start = nxt_mp_alloc(mp, module->file.length); in nxt_discovery_module()
411 if (module->file.start == NULL) { in nxt_discovery_module()
415 nxt_memcpy(module->file.start, name, module->file.length); in nxt_discovery_module()
417 module->mounts = nxt_array_create(mp, app->nmounts, in nxt_discovery_module()
420 if (nxt_slow_path(module->mounts == NULL)) { in nxt_discovery_module()
424 mounts = module->mounts; in nxt_discovery_module()
517 nxt_app = lang->module; in nxt_proto_setup()