/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

  1. /*
  2. +----------------------------------------------------------------------+
  3. | HipHop for PHP |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
  6. | Copyright (c) 1997-2010 The PHP Group |
  7. +----------------------------------------------------------------------+
  8. | This source file is subject to version 3.01 of the PHP license, |
  9. | that is bundled with this package in the file LICENSE, and is |
  10. | available through the world-wide-web at the following url: |
  11. | http://www.php.net/license/3_01.txt |
  12. | If you did not receive a copy of the PHP license and are unable to |
  13. | obtain it through the world-wide-web, please send a note to |
  14. | license@php.net so we can mail you a copy immediately. |
  15. +----------------------------------------------------------------------+
  16. */
  17. #ifndef __EXTPROFILE_FUNCTION_H__
  18. #define __EXTPROFILE_FUNCTION_H__
  19. // >>>>>> Generated by idl.php. Do NOT modify. <<<<<<
  20. #include <runtime/ext/ext_function.h>
  21. namespace HPHP {
  22. ///////////////////////////////////////////////////////////////////////////////
  23. inline Array x_get_defined_functions() {
  24. FUNCTION_INJECTION_BUILTIN(get_defined_functions);
  25. return f_get_defined_functions();
  26. }
  27. inline bool x_function_exists(CStrRef function_name) {
  28. FUNCTION_INJECTION_BUILTIN(function_exists);
  29. return f_function_exists(function_name);
  30. }
  31. inline bool x_is_callable(CVarRef v, bool syntax = false, CVarRef name = null) {
  32. FUNCTION_INJECTION_BUILTIN(is_callable);
  33. return f_is_callable(v, syntax, name);
  34. }
  35. inline Variant x_call_user_func_array(CVarRef function, CArrRef params) {
  36. FUNCTION_INJECTION_BUILTIN(call_user_func_array);
  37. return f_call_user_func_array(function, params);
  38. }
  39. inline Variant x_call_user_func(int _argc, CVarRef function, CArrRef _argv = null_array) {
  40. FUNCTION_INJECTION_BUILTIN(call_user_func);
  41. return f_call_user_func(_argc, function, _argv);
  42. }
  43. inline Object x_call_user_func_array_async(CVarRef function, CArrRef params) {
  44. FUNCTION_INJECTION_BUILTIN(call_user_func_array_async);
  45. return f_call_user_func_array_async(function, params);
  46. }
  47. inline Object x_call_user_func_async(int _argc, CVarRef function, CArrRef _argv = null_array) {
  48. FUNCTION_INJECTION_BUILTIN(call_user_func_async);
  49. return f_call_user_func_async(_argc, function, _argv);
  50. }
  51. inline Variant x_end_user_func_async(CObjRef handle, int default_strategy = k_GLOBAL_STATE_IGNORE, CVarRef additional_strategies = null) {
  52. FUNCTION_INJECTION_BUILTIN(end_user_func_async);
  53. return f_end_user_func_async(handle, default_strategy, additional_strategies);
  54. }
  55. inline String x_call_user_func_serialized(CStrRef input) {
  56. FUNCTION_INJECTION_BUILTIN(call_user_func_serialized);
  57. return f_call_user_func_serialized(input);
  58. }
  59. inline Variant x_call_user_func_array_rpc(CStrRef host, int port, CStrRef auth, int timeout, CVarRef function, CArrRef params) {
  60. FUNCTION_INJECTION_BUILTIN(call_user_func_array_rpc);
  61. return f_call_user_func_array_rpc(host, port, auth, timeout, function, params);
  62. }
  63. inline Variant x_call_user_func_rpc(int _argc, CStrRef host, int port, CStrRef auth, int timeout, CVarRef function, CArrRef _argv = null_array) {
  64. FUNCTION_INJECTION_BUILTIN(call_user_func_rpc);
  65. return f_call_user_func_rpc(_argc, host, port, auth, timeout, function, _argv);
  66. }
  67. inline Variant x_forward_static_call_array(CVarRef function, CArrRef params) {
  68. FUNCTION_INJECTION_BUILTIN(forward_static_call_array);
  69. return f_forward_static_call_array(function, params);
  70. }
  71. inline Variant x_forward_static_call(int _argc, CVarRef function, CArrRef _argv = null_array) {
  72. FUNCTION_INJECTION_BUILTIN(forward_static_call);
  73. return f_forward_static_call(_argc, function, _argv);
  74. }
  75. inline String x_create_function(CStrRef args, CStrRef code) {
  76. FUNCTION_INJECTION_BUILTIN(create_function);
  77. return f_create_function(args, code);
  78. }
  79. inline Variant x_func_get_arg(int arg_num) {
  80. FUNCTION_INJECTION_BUILTIN(func_get_arg);
  81. return f_func_get_arg(arg_num);
  82. }
  83. inline Array x_func_get_args() {
  84. FUNCTION_INJECTION_BUILTIN(func_get_args);
  85. return f_func_get_args();
  86. }
  87. inline int x_func_num_args() {
  88. FUNCTION_INJECTION_BUILTIN(func_num_args);
  89. return f_func_num_args();
  90. }
  91. inline void x_register_postsend_function(int _argc, CVarRef function, CArrRef _argv = null_array) {
  92. FUNCTION_INJECTION_BUILTIN(register_postsend_function);
  93. f_register_postsend_function(_argc, function, _argv);
  94. }
  95. inline void x_register_shutdown_function(int _argc, CVarRef function, CArrRef _argv = null_array) {
  96. FUNCTION_INJECTION_BUILTIN(register_shutdown_function);
  97. f_register_shutdown_function(_argc, function, _argv);
  98. }
  99. inline void x_register_cleanup_function(int _argc, CVarRef function, CArrRef _argv = null_array) {
  100. FUNCTION_INJECTION_BUILTIN(register_cleanup_function);
  101. f_register_cleanup_function(_argc, function, _argv);
  102. }
  103. inline bool x_register_tick_function(int _argc, CVarRef function, CArrRef _argv = null_array) {
  104. FUNCTION_INJECTION_BUILTIN(register_tick_function);
  105. return f_register_tick_function(_argc, function, _argv);
  106. }
  107. inline void x_unregister_tick_function(CVarRef function_name) {
  108. FUNCTION_INJECTION_BUILTIN(unregister_tick_function);
  109. f_unregister_tick_function(function_name);
  110. }
  111. ///////////////////////////////////////////////////////////////////////////////
  112. }
  113. #endif // __EXTPROFILE_FUNCTION_H__