/src/idl/thrift.idl.php

https://github.com/kevlund/hiphop-php · PHP · 195 lines · 110 code · 11 blank · 74 comment · 0 complexity · 94f8b5512d9bf549ee844c25570e0a0e MD5 · raw file

  1. <?php
  2. /**
  3. * Automatically generated by running "php schema.php thrift".
  4. *
  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.
  10. */
  11. ///////////////////////////////////////////////////////////////////////////////
  12. // Preamble: C++ code inserted at beginning of ext_{name}.h
  13. DefinePreamble(<<<CPP
  14. CPP
  15. );
  16. ///////////////////////////////////////////////////////////////////////////////
  17. // Constants
  18. //
  19. // array (
  20. // 'name' => name of the constant
  21. // 'type' => type of the constant
  22. // 'note' => additional note about this constant's schema
  23. // )
  24. ///////////////////////////////////////////////////////////////////////////////
  25. // Functions
  26. //
  27. // array (
  28. // 'name' => name of the function
  29. // 'desc' => description of the function's purpose
  30. // 'flags' => attributes of the function, see base.php for possible values
  31. // 'opt' => optimization callback function's name for compiler
  32. // 'note' => additional note about this function's schema
  33. // 'return' =>
  34. // array (
  35. // 'type' => return type, use Reference for ref return
  36. // 'desc' => description of the return value
  37. // )
  38. // 'args' => arguments
  39. // array (
  40. // 'name' => name of the argument
  41. // 'type' => type of the argument, use Reference for output parameter
  42. // 'value' => default value of the argument
  43. // 'desc' => description of the argument
  44. // )
  45. // )
  46. DefineFunction(
  47. array(
  48. 'name' => "thrift_protocol_write_binary",
  49. 'flags' => HasDocComment,
  50. 'return' => array(
  51. 'type' => null,
  52. ),
  53. 'args' => array(
  54. array(
  55. 'name' => "transportobj",
  56. 'type' => Object,
  57. ),
  58. array(
  59. 'name' => "method_name",
  60. 'type' => String,
  61. ),
  62. array(
  63. 'name' => "msgtype",
  64. 'type' => Int64,
  65. ),
  66. array(
  67. 'name' => "request_struct",
  68. 'type' => Object,
  69. ),
  70. array(
  71. 'name' => "seqid",
  72. 'type' => Int32,
  73. ),
  74. array(
  75. 'name' => "strict_write",
  76. 'type' => Boolean,
  77. ),
  78. ),
  79. 'taint_observer' => false,
  80. ));
  81. DefineFunction(
  82. array(
  83. 'name' => "thrift_protocol_read_binary",
  84. 'flags' => HasDocComment,
  85. 'return' => array(
  86. 'type' => Variant,
  87. ),
  88. 'args' => array(
  89. array(
  90. 'name' => "transportobj",
  91. 'type' => Object,
  92. ),
  93. array(
  94. 'name' => "obj_typename",
  95. 'type' => String,
  96. ),
  97. array(
  98. 'name' => "strict_read",
  99. 'type' => Boolean,
  100. ),
  101. ),
  102. 'taint_observer' => false,
  103. ));
  104. DefineFunction(
  105. array(
  106. 'name' => "thrift_protocol_write_compact",
  107. 'flags' => HasDocComment,
  108. 'return' => array(
  109. 'type' => null,
  110. ),
  111. 'args' => array(
  112. array(
  113. 'name' => "transportobj",
  114. 'type' => Object,
  115. ),
  116. array(
  117. 'name' => "method_name",
  118. 'type' => String,
  119. ),
  120. array(
  121. 'name' => "msgtype",
  122. 'type' => Int64,
  123. ),
  124. array(
  125. 'name' => "request_struct",
  126. 'type' => Object,
  127. ),
  128. array(
  129. 'name' => "seqid",
  130. 'type' => Int32,
  131. ),
  132. ),
  133. ));
  134. DefineFunction(
  135. array(
  136. 'name' => "thrift_protocol_read_compact",
  137. 'flags' => HasDocComment,
  138. 'return' => array(
  139. 'type' => Variant,
  140. ),
  141. 'args' => array(
  142. array(
  143. 'name' => "transportobj",
  144. 'type' => Object,
  145. ),
  146. array(
  147. 'name' => "obj_typename",
  148. 'type' => String,
  149. ),
  150. ),
  151. ));
  152. ///////////////////////////////////////////////////////////////////////////////
  153. // Classes
  154. //
  155. // BeginClass
  156. // array (
  157. // 'name' => name of the class
  158. // 'desc' => description of the class's purpose
  159. // 'flags' => attributes of the class, see base.php for possible values
  160. // 'note' => additional note about this class's schema
  161. // 'parent' => parent class name, if any
  162. // 'ifaces' => array of interfaces tihs class implements
  163. // 'bases' => extra internal and special base classes this class requires
  164. // 'footer' => extra C++ inserted at end of class declaration
  165. // )
  166. //
  167. // DefineConstant(..)
  168. // DefineConstant(..)
  169. // ...
  170. // DefineFunction(..)
  171. // DefineFunction(..)
  172. // ...
  173. // DefineProperty
  174. // DefineProperty
  175. //
  176. // array (
  177. // 'name' => name of the property
  178. // 'type' => type of the property
  179. // 'flags' => attributes of the property
  180. // 'desc' => description of the property
  181. // 'note' => additional note about this property's schema
  182. // )
  183. //
  184. // EndClass()