… | |
… | |
88 | our %EXT_CORO = (); # coroutines bound to extensions |
88 | our %EXT_CORO = (); # coroutines bound to extensions |
89 | our %EXT_MAP = (); # pluggable maps |
89 | our %EXT_MAP = (); # pluggable maps |
90 | |
90 | |
91 | our $RELOAD; # number of reloads so far, non-zero while in reload |
91 | our $RELOAD; # number of reloads so far, non-zero while in reload |
92 | our @EVENT; |
92 | our @EVENT; |
|
|
93 | our @REFLECT; # set by XS |
|
|
94 | our %REFLECT; # set by us |
93 | |
95 | |
94 | our $CONFDIR = confdir; |
96 | our $CONFDIR = confdir; |
95 | our $DATADIR = datadir; |
97 | our $DATADIR = datadir; |
96 | our $LIBDIR = "$DATADIR/ext"; |
98 | our $LIBDIR = "$DATADIR/ext"; |
97 | our $PODDIR = "$DATADIR/pod"; |
99 | our $PODDIR = "$DATADIR/pod"; |
… | |
… | |
161 | |
163 | |
162 | sub cf::map::normalise; |
164 | sub cf::map::normalise; |
163 | |
165 | |
164 | ############################################################################# |
166 | ############################################################################# |
165 | |
167 | |
|
|
168 | %REFLECT = (); |
|
|
169 | for (@REFLECT) { |
|
|
170 | my $reflect = JSON::XS::decode_json $_; |
|
|
171 | $REFLECT{$reflect->{class}} = $reflect; |
|
|
172 | } |
|
|
173 | |
|
|
174 | ############################################################################# |
|
|
175 | |
166 | =head2 GLOBAL VARIABLES |
176 | =head2 GLOBAL VARIABLES |
167 | |
177 | |
168 | =over 4 |
178 | =over 4 |
169 | |
179 | |
170 | =item $cf::UPTIME |
180 | =item $cf::UPTIME |
… | |
… | |
217 | =item @cf::INVOKE_RESULTS |
227 | =item @cf::INVOKE_RESULTS |
218 | |
228 | |
219 | This array contains the results of the last C<invoke ()> call. When |
229 | This array contains the results of the last C<invoke ()> call. When |
220 | C<cf::override> is called C<@cf::INVOKE_RESULTS> is set to the parameters of |
230 | C<cf::override> is called C<@cf::INVOKE_RESULTS> is set to the parameters of |
221 | that call. |
231 | that call. |
|
|
232 | |
|
|
233 | =item %cf::REFLECT |
|
|
234 | |
|
|
235 | Contains, for each (C++) class name, a hash reference with information |
|
|
236 | about object members (methods, scalars and arrays) and other metadata, |
|
|
237 | which is useful for introspection. |
222 | |
238 | |
223 | =back |
239 | =back |
224 | |
240 | |
225 | =cut |
241 | =cut |
226 | |
242 | |