3 * Automatically generated by running "php schema.php server".
5 * You may modify the file, but re-running schema.php against this file will
6 * standardize the format without losing your schema changes. It does lose
7 * any changes that are not part of schema. Use "note" field to comment on
8 * schema itself, and "note" fields are not used in any code generation but
9 * only staying within this file.
11 ///////////////////////////////////////////////////////////////////////////////
12 // Preamble: C++ code inserted at beginning of ext_{name}.h
19 ///////////////////////////////////////////////////////////////////////////////
23 // 'name' => name of the constant
24 // 'type' => type of the constant
25 // 'note' => additional note about this constant's schema
29 ///////////////////////////////////////////////////////////////////////////////
33 // 'name' => name of the function
34 // 'desc' => description of the function's purpose
35 // 'flags' => attributes of the function, see base.php for possible values
36 // 'opt' => optimization callback function's name for compiler
37 // 'note' => additional note about this function's schema
40 // 'type' => return type, use Reference for ref return
41 // 'desc' => description of the return value
43 // 'args' => arguments
45 // 'name' => name of the argument
46 // 'type' => type of the argument, use Reference for output parameter
47 // 'value' => default value of the argument
48 // 'desc' => description of the argument
54 'name' => "dangling_server_proxy_old_request",
55 'desc' => "When I'm running a newer version of the server software and I'm getting an HTTP request that's from old version of a web page, proxy it to a local instance that is still running or dangling just for handling old version of requests. Please read server documentation for more details.",
56 'flags' => HasDocComment | HipHopSpecific
,
59 'desc' => "TRUE if successful, FALSE otherwise.",
65 'name' => "dangling_server_proxy_new_request",
66 'desc' => "When I'm still running an old version of the server software and I'm getting an HTTP request that's newer, proxy it to a specified host that already has the new version of the software running. Please read server documentation for more details.",
67 'flags' => HasDocComment | HipHopSpecific
,
70 'desc' => "TRUE if successful, FALSE otherwise.",
76 'desc' => "The machine to proxy to.",
83 'name' => "PAGELET_NOT_READY", // no data is available
89 'name' => "PAGELET_READY", // data available (flushed)
95 'name' => "PAGELET_DONE", // the pagelet request is finished
101 'name' => "pagelet_server_is_enabled",
102 'desc' => "Whether pagelet server is enabled or not. Please read server documentation for what a pagelet server is.",
103 'flags' => HasDocComment | HipHopSpecific
,
106 'desc' => "TRUE if it's enabled, FALSE otherwise.",
112 'name' => "pagelet_server_task_start",
113 'desc' => "Processes a pagelet server request.",
114 'flags' => HasDocComment | HipHopSpecific
,
117 'desc' => "An object that can be used with pagelet_server_task_status() or pagelet_server_task_result().",
123 'desc' => "The URL we're running this pagelet with.",
128 'value' => "null_array",
129 'desc' => "HTTP headers to send to the pagelet.",
132 'name' => "post_data",
134 'value' => "null_string",
135 'desc' => "POST data to send.",
139 'type' => VariantVec
,
140 'value' => "null_array",
141 'desc' => "$_FILES for the pagelet.",
148 'name' => "pagelet_server_task_status",
149 'desc' => "Checks finish status of a pagelet task.",
150 'flags' => HasDocComment | HipHopSpecific
,
153 'desc' => "PAGELET_NOT_READY if there is no data available, PAGELET_READY if (partial) data is available from pagelet_server_flush(), and PAGELET_DONE if the pagelet request is done.",
159 'desc' => "The pagelet task handle returned from pagelet_server_task_start().",
166 'name' => "pagelet_server_task_result",
167 'desc' => "Block and wait until pagelet task finishes or times out.",
168 'flags' => HasDocComment | HipHopSpecific
,
171 'desc' => "HTTP response from the pagelet.",
177 'desc' => "The pagelet task handle returned from pagelet_server_task_start().",
181 'type' => Variant | Reference
,
182 'desc' => "HTTP response headers.",
186 'type' => Variant | Reference
,
187 'desc' => "HTTP response code. Set to -1 in the event of a timeout.",
190 'name' => "timeout_ms",
193 'desc' => "How many milliseconds to wait. A timeout of zero is interpreted as an infinite timeout.",
200 'name' => "pagelet_server_flush",
201 'desc' => "Flush all the currently buffered output, so that the main thread can read it with pagelet_server_task_result(). This is only meaningful in a pagelet thread.",
202 'flags' => HasDocComment | HipHopSpecific
,
205 'desc' => "No value is returned.",
211 'name' => "xbox_send_message",
212 'desc' => "Sends an xbox message and waits for response. Please read server documentation for what an xbox is.",
213 'flags' => HasDocComment | HipHopSpecific
,
216 'desc' => "TRUE if successful, FALSE otherwise.",
222 'desc' => "The message.",
226 'type' => Variant | Reference
,
227 'desc' => "The response.",
230 'name' => "timeout_ms",
232 'desc' => "How many milli-seconds to wait.",
237 'value' => "\"localhost\"",
238 'desc' => "Which machine to send to.",
245 'name' => "xbox_post_message",
246 'desc' => "Posts an xbox message without waiting. Please read server documentation for more details.",
247 'flags' => HasDocComment | HipHopSpecific
,
250 'desc' => "TRUE if successful, FALSE otherwise.",
256 'desc' => "The response.",
261 'value' => "\"localhost\"",
262 'desc' => "Which machine to post to.",
269 'name' => "xbox_task_start",
270 'desc' => "Starts a local xbox task.",
271 'flags' => HasDocComment | HipHopSpecific
,
274 'desc' => "A task handle xbox_task_status() and xbox_task_result() can use.",
280 'desc' => "A message to send to xbox's message processing function.",
287 'name' => "xbox_task_status",
288 'desc' => "Checks an xbox task's status.",
289 'flags' => HasDocComment | HipHopSpecific
,
292 'desc' => "TRUE if finished, FALSE otherwise.",
298 'desc' => "The xbox task object created by xbox_task_start().",
305 'name' => "xbox_task_result",
306 'desc' => "Block and wait for xbox task's result.",
307 'flags' => HasDocComment | HipHopSpecific
,
310 'desc' => "Response code following HTTP's responses. For example, 200 for success and 500 for server error.",
316 'desc' => "The xbox task object created by xbox_task_start().",
319 'name' => "timeout_ms",
321 'desc' => "How many milli-seconds to wait.",
325 'type' => Variant | Reference
,
326 'desc' => "xbox message processing function's return value.",
333 'name' => "xbox_process_call_message",
334 'desc' => "This function is invoked by the xbox facility to start an xbox call task. This function is not intended to be called directly by user code.",
335 'flags' => HasDocComment | HipHopSpecific
,
338 'desc' => "The return value of the xbox call task.",
344 'desc' => "The call message.",
351 'name' => "xbox_get_thread_timeout",
352 'desc' => "Gets the timeout (maximum duration), in seconds, of the current xbox thread. Throws for non-xbox threads.",
353 'flags' => HasDocComment | HipHopSpecific
,
356 'desc' => "The current timeout (maximum duration).",
362 'name' => "xbox_set_thread_timeout",
363 'desc' => "Sets the timeout (maximum duration), in seconds, of the current xbox thread. The xbox thread would reset when this amount of time has passed since the previous reset. Throws for non-xbox threads.",
364 'flags' => HasDocComment | HipHopSpecific
,
372 'desc' => "The new timeout (maximum duration).",
379 'name' => "xbox_schedule_thread_reset",
380 'desc' => "Schedules a reset of the current xbox thread, when the next request comes in. Throws for non-xbox threads.",
381 'flags' => HasDocComment | HipHopSpecific
,
389 'name' => "xbox_get_thread_time",
390 'desc' => "Returns the time that the current xbox thread has been running without a reset, in seconds, and throws for non-xbox threads.",
391 'flags' => HasDocComment | HipHopSpecific
,
394 'desc' => "The time that the current xbox thread has been running without a reset.",
399 ///////////////////////////////////////////////////////////////////////////////
404 // 'name' => name of the class
405 // 'desc' => description of the class's purpose
406 // 'flags' => attributes of the class, see base.php for possible values
407 // 'note' => additional note about this class's schema
408 // 'parent' => parent class name, if any
409 // 'ifaces' => array of interfaces tihs class implements
410 // 'bases' => extra internal and special base classes this class requires
411 // 'footer' => extra C++ inserted at end of class declaration
414 // DefineConstant(..)
415 // DefineConstant(..)
417 // DefineFunction(..)
418 // DefineFunction(..)
424 // 'name' => name of the property
425 // 'type' => type of the property
426 // 'flags' => attributes of the property
427 // 'desc' => description of the property
428 // 'note' => additional note about this property's schema