/src/runtime/ext/profile/extprofile_splfile.h

https://github.com/kevlund/hiphop-php · C Header · 307 lines · 226 code · 62 blank · 19 comment · 0 complexity · 6180702c585d3807f8166224b270b57b 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_SPLFILE_H__
  18. #define __EXTPROFILE_SPLFILE_H__
  19. // >>>>>> Generated by idl.php. Do NOT modify. <<<<<<
  20. #include <runtime/ext/ext_splfile.h>
  21. namespace HPHP {
  22. ///////////////////////////////////////////////////////////////////////////////
  23. inline Object x_hphp_splfileinfo___construct(CObjRef obj, CStrRef file_name) {
  24. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo___construct);
  25. return f_hphp_splfileinfo___construct(obj, file_name);
  26. }
  27. inline int64 x_hphp_splfileinfo_getatime(CObjRef obj) {
  28. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getatime);
  29. return f_hphp_splfileinfo_getatime(obj);
  30. }
  31. inline String x_hphp_splfileinfo_getbasename(CObjRef obj, CStrRef suffix) {
  32. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getbasename);
  33. return f_hphp_splfileinfo_getbasename(obj, suffix);
  34. }
  35. inline int64 x_hphp_splfileinfo_getctime(CObjRef obj) {
  36. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getctime);
  37. return f_hphp_splfileinfo_getctime(obj);
  38. }
  39. inline Object x_hphp_splfileinfo_getfileinfo(CObjRef obj, CStrRef class_name) {
  40. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getfileinfo);
  41. return f_hphp_splfileinfo_getfileinfo(obj, class_name);
  42. }
  43. inline String x_hphp_splfileinfo_getfilename(CObjRef obj) {
  44. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getfilename);
  45. return f_hphp_splfileinfo_getfilename(obj);
  46. }
  47. inline int64 x_hphp_splfileinfo_getgroup(CObjRef obj) {
  48. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getgroup);
  49. return f_hphp_splfileinfo_getgroup(obj);
  50. }
  51. inline int64 x_hphp_splfileinfo_getinode(CObjRef obj) {
  52. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getinode);
  53. return f_hphp_splfileinfo_getinode(obj);
  54. }
  55. inline String x_hphp_splfileinfo_getlinktarget(CObjRef obj) {
  56. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getlinktarget);
  57. return f_hphp_splfileinfo_getlinktarget(obj);
  58. }
  59. inline int64 x_hphp_splfileinfo_getmtime(CObjRef obj) {
  60. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getmtime);
  61. return f_hphp_splfileinfo_getmtime(obj);
  62. }
  63. inline int64 x_hphp_splfileinfo_getowner(CObjRef obj) {
  64. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getowner);
  65. return f_hphp_splfileinfo_getowner(obj);
  66. }
  67. inline String x_hphp_splfileinfo_getpath(CObjRef obj) {
  68. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getpath);
  69. return f_hphp_splfileinfo_getpath(obj);
  70. }
  71. inline Object x_hphp_splfileinfo_getpathinfo(CObjRef obj, CStrRef class_name) {
  72. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getpathinfo);
  73. return f_hphp_splfileinfo_getpathinfo(obj, class_name);
  74. }
  75. inline String x_hphp_splfileinfo_getpathname(CObjRef obj) {
  76. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getpathname);
  77. return f_hphp_splfileinfo_getpathname(obj);
  78. }
  79. inline int64 x_hphp_splfileinfo_getperms(CObjRef obj) {
  80. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getperms);
  81. return f_hphp_splfileinfo_getperms(obj);
  82. }
  83. inline Variant x_hphp_splfileinfo_getrealpath(CObjRef obj) {
  84. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getrealpath);
  85. return f_hphp_splfileinfo_getrealpath(obj);
  86. }
  87. inline int64 x_hphp_splfileinfo_getsize(CObjRef obj) {
  88. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_getsize);
  89. return f_hphp_splfileinfo_getsize(obj);
  90. }
  91. inline String x_hphp_splfileinfo_gettype(CObjRef obj) {
  92. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_gettype);
  93. return f_hphp_splfileinfo_gettype(obj);
  94. }
  95. inline bool x_hphp_splfileinfo_isdir(CObjRef obj) {
  96. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_isdir);
  97. return f_hphp_splfileinfo_isdir(obj);
  98. }
  99. inline bool x_hphp_splfileinfo_isexecutable(CObjRef obj) {
  100. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_isexecutable);
  101. return f_hphp_splfileinfo_isexecutable(obj);
  102. }
  103. inline bool x_hphp_splfileinfo_isfile(CObjRef obj) {
  104. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_isfile);
  105. return f_hphp_splfileinfo_isfile(obj);
  106. }
  107. inline bool x_hphp_splfileinfo_islink(CObjRef obj) {
  108. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_islink);
  109. return f_hphp_splfileinfo_islink(obj);
  110. }
  111. inline bool x_hphp_splfileinfo_isreadable(CObjRef obj) {
  112. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_isreadable);
  113. return f_hphp_splfileinfo_isreadable(obj);
  114. }
  115. inline bool x_hphp_splfileinfo_iswritable(CObjRef obj) {
  116. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_iswritable);
  117. return f_hphp_splfileinfo_iswritable(obj);
  118. }
  119. inline Object x_hphp_splfileinfo_openfile(CObjRef obj, CStrRef open_mode, bool use_include_path, CVarRef context) {
  120. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_openfile);
  121. return f_hphp_splfileinfo_openfile(obj, open_mode, use_include_path, context);
  122. }
  123. inline void x_hphp_splfileinfo_setfileclass(CObjRef obj, CStrRef class_name) {
  124. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_setfileclass);
  125. f_hphp_splfileinfo_setfileclass(obj, class_name);
  126. }
  127. inline void x_hphp_splfileinfo_setinfoclass(CObjRef obj, CStrRef class_name) {
  128. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo_setinfoclass);
  129. f_hphp_splfileinfo_setinfoclass(obj, class_name);
  130. }
  131. inline String x_hphp_splfileinfo___tostring(CObjRef obj) {
  132. FUNCTION_INJECTION_BUILTIN(hphp_splfileinfo___tostring);
  133. return f_hphp_splfileinfo___tostring(obj);
  134. }
  135. inline Object x_hphp_splfileobject___construct(CObjRef obj, CStrRef filename, CStrRef open_mode, bool use_include_path, CVarRef context) {
  136. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject___construct);
  137. return f_hphp_splfileobject___construct(obj, filename, open_mode, use_include_path, context);
  138. }
  139. inline Variant x_hphp_splfileobject_current(CObjRef obj) {
  140. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_current);
  141. return f_hphp_splfileobject_current(obj);
  142. }
  143. inline bool x_hphp_splfileobject_eof(CObjRef obj) {
  144. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_eof);
  145. return f_hphp_splfileobject_eof(obj);
  146. }
  147. inline bool x_hphp_splfileobject_fflush(CObjRef obj) {
  148. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fflush);
  149. return f_hphp_splfileobject_fflush(obj);
  150. }
  151. inline String x_hphp_splfileobject_fgetc(CObjRef obj) {
  152. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fgetc);
  153. return f_hphp_splfileobject_fgetc(obj);
  154. }
  155. inline Variant x_hphp_splfileobject_fgetcsv(CObjRef obj, CStrRef delimiter, CStrRef enclosure, CStrRef escape) {
  156. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fgetcsv);
  157. return f_hphp_splfileobject_fgetcsv(obj, delimiter, enclosure, escape);
  158. }
  159. inline String x_hphp_splfileobject_fgets(CObjRef obj) {
  160. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fgets);
  161. return f_hphp_splfileobject_fgets(obj);
  162. }
  163. inline String x_hphp_splfileobject_fgetss(CObjRef obj, CStrRef allowable_tags) {
  164. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fgetss);
  165. return f_hphp_splfileobject_fgetss(obj, allowable_tags);
  166. }
  167. inline bool x_hphp_splfileobject_flock(CObjRef obj, VRefParam wouldblock) {
  168. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_flock);
  169. return f_hphp_splfileobject_flock(obj, wouldblock);
  170. }
  171. inline int64 x_hphp_splfileobject_fpassthru(CObjRef obj) {
  172. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fpassthru);
  173. return f_hphp_splfileobject_fpassthru(obj);
  174. }
  175. inline Variant x_hphp_splfileobject_fscanf(int64 _argc, CObjRef obj, CStrRef format, CVarRef _argv) {
  176. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fscanf);
  177. return f_hphp_splfileobject_fscanf(_argc, obj, format, _argv);
  178. }
  179. inline int64 x_hphp_splfileobject_fseek(CObjRef obj, int64 offset, int64 whence) {
  180. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fseek);
  181. return f_hphp_splfileobject_fseek(obj, offset, whence);
  182. }
  183. inline Variant x_hphp_splfileobject_fstat(CObjRef obj) {
  184. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fstat);
  185. return f_hphp_splfileobject_fstat(obj);
  186. }
  187. inline int64 x_hphp_splfileobject_ftell(CObjRef obj) {
  188. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_ftell);
  189. return f_hphp_splfileobject_ftell(obj);
  190. }
  191. inline bool x_hphp_splfileobject_ftruncate(CObjRef obj, int64 size) {
  192. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_ftruncate);
  193. return f_hphp_splfileobject_ftruncate(obj, size);
  194. }
  195. inline int64 x_hphp_splfileobject_fwrite(CObjRef obj, CStrRef str, int64 length) {
  196. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_fwrite);
  197. return f_hphp_splfileobject_fwrite(obj, str, length);
  198. }
  199. inline Variant x_hphp_splfileobject_getcvscontrol(CObjRef obj) {
  200. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_getcvscontrol);
  201. return f_hphp_splfileobject_getcvscontrol(obj);
  202. }
  203. inline int64 x_hphp_splfileobject_getflags(CObjRef obj) {
  204. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_getflags);
  205. return f_hphp_splfileobject_getflags(obj);
  206. }
  207. inline int64 x_hphp_splfileobject_getmaxlinelen(CObjRef obj) {
  208. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_getmaxlinelen);
  209. return f_hphp_splfileobject_getmaxlinelen(obj);
  210. }
  211. inline int64 x_hphp_splfileobject_key(CObjRef obj) {
  212. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_key);
  213. return f_hphp_splfileobject_key(obj);
  214. }
  215. inline void x_hphp_splfileobject_next(CObjRef obj) {
  216. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_next);
  217. f_hphp_splfileobject_next(obj);
  218. }
  219. inline void x_hphp_splfileobject_rewind(CObjRef obj) {
  220. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_rewind);
  221. f_hphp_splfileobject_rewind(obj);
  222. }
  223. inline bool x_hphp_splfileobject_valid(CObjRef obj) {
  224. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_valid);
  225. return f_hphp_splfileobject_valid(obj);
  226. }
  227. inline void x_hphp_splfileobject_seek(CObjRef obj, int64 line_pos) {
  228. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_seek);
  229. f_hphp_splfileobject_seek(obj, line_pos);
  230. }
  231. inline void x_hphp_splfileobject_setcsvcontrol(CObjRef obj, CStrRef delimiter, CStrRef enclosure, CStrRef escape) {
  232. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_setcsvcontrol);
  233. f_hphp_splfileobject_setcsvcontrol(obj, delimiter, enclosure, escape);
  234. }
  235. inline void x_hphp_splfileobject_setflags(CObjRef obj, int64 flags) {
  236. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_setflags);
  237. f_hphp_splfileobject_setflags(obj, flags);
  238. }
  239. inline void x_hphp_splfileobject_setmaxlinelen(CObjRef obj, int64 max_len) {
  240. FUNCTION_INJECTION_BUILTIN(hphp_splfileobject_setmaxlinelen);
  241. f_hphp_splfileobject_setmaxlinelen(obj, max_len);
  242. }
  243. ///////////////////////////////////////////////////////////////////////////////
  244. }
  245. #endif // __EXTPROFILE_SPLFILE_H__