/src/runtime/ext/profile/extprofile_function.h
https://github.com/tmjnaid/hiphop-php · C Header · 142 lines · 94 code · 29 blank · 19 comment · 0 complexity · 68264e4b101be6160945628557e700ec MD5 · raw file
- /*
- +----------------------------------------------------------------------+
- | HipHop for PHP |
- +----------------------------------------------------------------------+
- | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
- | Copyright (c) 1997-2010 The PHP Group |
- +----------------------------------------------------------------------+
- | This source file is subject to version 3.01 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available through the world-wide-web at the following url: |
- | http://www.php.net/license/3_01.txt |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
- +----------------------------------------------------------------------+
- */
- #ifndef __EXTPROFILE_FUNCTION_H__
- #define __EXTPROFILE_FUNCTION_H__
- // >>>>>> Generated by idl.php. Do NOT modify. <<<<<<
- #include <runtime/ext/ext_function.h>
- namespace HPHP {
- ///////////////////////////////////////////////////////////////////////////////
- inline Array x_get_defined_functions() {
- FUNCTION_INJECTION_BUILTIN(get_defined_functions);
- return f_get_defined_functions();
- }
- inline bool x_function_exists(CStrRef function_name) {
- FUNCTION_INJECTION_BUILTIN(function_exists);
- return f_function_exists(function_name);
- }
- inline bool x_is_callable(CVarRef v, bool syntax = false, CVarRef name = null) {
- FUNCTION_INJECTION_BUILTIN(is_callable);
- return f_is_callable(v, syntax, name);
- }
- inline Variant x_call_user_func_array(CVarRef function, CArrRef params) {
- FUNCTION_INJECTION_BUILTIN(call_user_func_array);
- return f_call_user_func_array(function, params);
- }
- inline Variant x_call_user_func(int _argc, CVarRef function, CArrRef _argv = null_array) {
- FUNCTION_INJECTION_BUILTIN(call_user_func);
- return f_call_user_func(_argc, function, _argv);
- }
- inline Object x_call_user_func_array_async(CVarRef function, CArrRef params) {
- FUNCTION_INJECTION_BUILTIN(call_user_func_array_async);
- return f_call_user_func_array_async(function, params);
- }
- inline Object x_call_user_func_async(int _argc, CVarRef function, CArrRef _argv = null_array) {
- FUNCTION_INJECTION_BUILTIN(call_user_func_async);
- return f_call_user_func_async(_argc, function, _argv);
- }
- inline Variant x_end_user_func_async(CObjRef handle, int default_strategy = k_GLOBAL_STATE_IGNORE, CVarRef additional_strategies = null) {
- FUNCTION_INJECTION_BUILTIN(end_user_func_async);
- return f_end_user_func_async(handle, default_strategy, additional_strategies);
- }
- inline String x_call_user_func_serialized(CStrRef input) {
- FUNCTION_INJECTION_BUILTIN(call_user_func_serialized);
- return f_call_user_func_serialized(input);
- }
- inline Variant x_call_user_func_array_rpc(CStrRef host, int port, CStrRef auth, int timeout, CVarRef function, CArrRef params) {
- FUNCTION_INJECTION_BUILTIN(call_user_func_array_rpc);
- return f_call_user_func_array_rpc(host, port, auth, timeout, function, params);
- }
- inline Variant x_call_user_func_rpc(int _argc, CStrRef host, int port, CStrRef auth, int timeout, CVarRef function, CArrRef _argv = null_array) {
- FUNCTION_INJECTION_BUILTIN(call_user_func_rpc);
- return f_call_user_func_rpc(_argc, host, port, auth, timeout, function, _argv);
- }
- inline Variant x_forward_static_call_array(CVarRef function, CArrRef params) {
- FUNCTION_INJECTION_BUILTIN(forward_static_call_array);
- return f_forward_static_call_array(function, params);
- }
- inline Variant x_forward_static_call(int _argc, CVarRef function, CArrRef _argv = null_array) {
- FUNCTION_INJECTION_BUILTIN(forward_static_call);
- return f_forward_static_call(_argc, function, _argv);
- }
- inline String x_create_function(CStrRef args, CStrRef code) {
- FUNCTION_INJECTION_BUILTIN(create_function);
- return f_create_function(args, code);
- }
- inline Variant x_func_get_arg(int arg_num) {
- FUNCTION_INJECTION_BUILTIN(func_get_arg);
- return f_func_get_arg(arg_num);
- }
- inline Array x_func_get_args() {
- FUNCTION_INJECTION_BUILTIN(func_get_args);
- return f_func_get_args();
- }
- inline int x_func_num_args() {
- FUNCTION_INJECTION_BUILTIN(func_num_args);
- return f_func_num_args();
- }
- inline void x_register_postsend_function(int _argc, CVarRef function, CArrRef _argv = null_array) {
- FUNCTION_INJECTION_BUILTIN(register_postsend_function);
- f_register_postsend_function(_argc, function, _argv);
- }
- inline void x_register_shutdown_function(int _argc, CVarRef function, CArrRef _argv = null_array) {
- FUNCTION_INJECTION_BUILTIN(register_shutdown_function);
- f_register_shutdown_function(_argc, function, _argv);
- }
- inline void x_register_cleanup_function(int _argc, CVarRef function, CArrRef _argv = null_array) {
- FUNCTION_INJECTION_BUILTIN(register_cleanup_function);
- f_register_cleanup_function(_argc, function, _argv);
- }
- inline bool x_register_tick_function(int _argc, CVarRef function, CArrRef _argv = null_array) {
- FUNCTION_INJECTION_BUILTIN(register_tick_function);
- return f_register_tick_function(_argc, function, _argv);
- }
- inline void x_unregister_tick_function(CVarRef function_name) {
- FUNCTION_INJECTION_BUILTIN(unregister_tick_function);
- f_unregister_tick_function(function_name);
- }
- ///////////////////////////////////////////////////////////////////////////////
- }
- #endif // __EXTPROFILE_FUNCTION_H__