12 files["core/"] = { |
12 files["core/"] = { |
13 read_globals = { "prosody", "hosts" }; |
13 read_globals = { "prosody", "hosts" }; |
14 globals = { "prosody.hosts.?", "hosts.?" }; |
14 globals = { "prosody.hosts.?", "hosts.?" }; |
15 } |
15 } |
16 files["plugins/"] = { |
16 files["plugins/"] = { |
17 globals = { "module" }; |
17 read_globals = { |
|
18 -- Module instance |
|
19 "module.name", |
|
20 "module.host", |
|
21 "module._log", |
|
22 "module.log", |
|
23 "module.event_handlers", |
|
24 "module.reloading", |
|
25 "module.saved_state", |
|
26 "module.environment", |
|
27 "module.global", |
|
28 "module.path", |
|
29 |
|
30 -- Module API |
|
31 "module.add_extension", |
|
32 "module.add_feature", |
|
33 "module.add_identity", |
|
34 "module.add_item", |
|
35 "module.add_timer", |
|
36 "module.broadcast", |
|
37 "module.context", |
|
38 "module.depends", |
|
39 "module.fire_event", |
|
40 "module.get_directory", |
|
41 "module.get_host", |
|
42 "module.get_host_items", |
|
43 "module.get_host_type", |
|
44 "module.get_name", |
|
45 "module.get_option", |
|
46 "module.get_option_array", |
|
47 "module.get_option_boolean", |
|
48 "module.get_option_inherited_set", |
|
49 "module.get_option_number", |
|
50 "module.get_option_path", |
|
51 "module.get_option_set", |
|
52 "module.get_option_string", |
|
53 "module.handle_items", |
|
54 "module.has_feature", |
|
55 "module.has_identity", |
|
56 "module.hook", |
|
57 "module.hook_global", |
|
58 "module.hook_object_event", |
|
59 "module.hook_tag", |
|
60 "module.load_resource", |
|
61 "module.measure", |
|
62 "module.measure_event", |
|
63 "module.measure_global_event", |
|
64 "module.measure_object_event", |
|
65 "module.open_store", |
|
66 "module.provides", |
|
67 "module.remove_item", |
|
68 "module.require", |
|
69 "module.send", |
|
70 "module.set_global", |
|
71 "module.shared", |
|
72 "module.unhook", |
|
73 "module.unhook_object_event", |
|
74 "module.wrap_event", |
|
75 "module.wrap_global", |
|
76 "module.wrap_object_event", |
|
77 }; |
|
78 globals = { |
|
79 "_M", |
|
80 |
|
81 -- Methods that can be set on module API |
|
82 "module.unload", |
|
83 "module.add_host", |
|
84 "module.load", |
|
85 "module.add_host", |
|
86 "module.save", |
|
87 "module.restore", |
|
88 "module.command", |
|
89 }; |
18 } |
90 } |
19 files["tests/"] = { |
91 files["tests/"] = { |
20 read_globals = { |
92 read_globals = { |
21 "testlib_new_env", |
93 "testlib_new_env", |
22 "assert_equal", |
94 "assert_equal", |