gmarshal.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. /* GObject - GLib Type, Object, Parameter and Signal Library
  2. *
  3. * This library is free software; you can redistribute it and/or
  4. * modify it under the terms of the GNU Lesser General Public
  5. * License as published by the Free Software Foundation; either
  6. * version 2.1 of the License, or (at your option) any later version.
  7. *
  8. * This library is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. * Lesser General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Lesser General
  14. * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef __G_MARSHAL_H__
  17. #define __G_MARSHAL_H__
  18. G_BEGIN_DECLS
  19. /* VOID:VOID */
  20. GLIB_AVAILABLE_IN_ALL
  21. void g_cclosure_marshal_VOID__VOID (GClosure *closure,
  22. GValue *return_value,
  23. guint n_param_values,
  24. const GValue *param_values,
  25. gpointer invocation_hint,
  26. gpointer marshal_data);
  27. GLIB_AVAILABLE_IN_ALL
  28. void g_cclosure_marshal_VOID__VOIDv (GClosure *closure,
  29. GValue *return_value,
  30. gpointer instance,
  31. va_list args,
  32. gpointer marshal_data,
  33. int n_params,
  34. GType *param_types);
  35. /* VOID:BOOLEAN */
  36. GLIB_AVAILABLE_IN_ALL
  37. void g_cclosure_marshal_VOID__BOOLEAN (GClosure *closure,
  38. GValue *return_value,
  39. guint n_param_values,
  40. const GValue *param_values,
  41. gpointer invocation_hint,
  42. gpointer marshal_data);
  43. GLIB_AVAILABLE_IN_ALL
  44. void g_cclosure_marshal_VOID__BOOLEANv (GClosure *closure,
  45. GValue *return_value,
  46. gpointer instance,
  47. va_list args,
  48. gpointer marshal_data,
  49. int n_params,
  50. GType *param_types);
  51. /* VOID:CHAR */
  52. GLIB_AVAILABLE_IN_ALL
  53. void g_cclosure_marshal_VOID__CHAR (GClosure *closure,
  54. GValue *return_value,
  55. guint n_param_values,
  56. const GValue *param_values,
  57. gpointer invocation_hint,
  58. gpointer marshal_data);
  59. GLIB_AVAILABLE_IN_ALL
  60. void g_cclosure_marshal_VOID__CHARv (GClosure *closure,
  61. GValue *return_value,
  62. gpointer instance,
  63. va_list args,
  64. gpointer marshal_data,
  65. int n_params,
  66. GType *param_types);
  67. /* VOID:UCHAR */
  68. GLIB_AVAILABLE_IN_ALL
  69. void g_cclosure_marshal_VOID__UCHAR (GClosure *closure,
  70. GValue *return_value,
  71. guint n_param_values,
  72. const GValue *param_values,
  73. gpointer invocation_hint,
  74. gpointer marshal_data);
  75. GLIB_AVAILABLE_IN_ALL
  76. void g_cclosure_marshal_VOID__UCHARv (GClosure *closure,
  77. GValue *return_value,
  78. gpointer instance,
  79. va_list args,
  80. gpointer marshal_data,
  81. int n_params,
  82. GType *param_types);
  83. /* VOID:INT */
  84. GLIB_AVAILABLE_IN_ALL
  85. void g_cclosure_marshal_VOID__INT (GClosure *closure,
  86. GValue *return_value,
  87. guint n_param_values,
  88. const GValue *param_values,
  89. gpointer invocation_hint,
  90. gpointer marshal_data);
  91. GLIB_AVAILABLE_IN_ALL
  92. void g_cclosure_marshal_VOID__INTv (GClosure *closure,
  93. GValue *return_value,
  94. gpointer instance,
  95. va_list args,
  96. gpointer marshal_data,
  97. int n_params,
  98. GType *param_types);
  99. /* VOID:UINT */
  100. GLIB_AVAILABLE_IN_ALL
  101. void g_cclosure_marshal_VOID__UINT (GClosure *closure,
  102. GValue *return_value,
  103. guint n_param_values,
  104. const GValue *param_values,
  105. gpointer invocation_hint,
  106. gpointer marshal_data);
  107. GLIB_AVAILABLE_IN_ALL
  108. void g_cclosure_marshal_VOID__UINTv (GClosure *closure,
  109. GValue *return_value,
  110. gpointer instance,
  111. va_list args,
  112. gpointer marshal_data,
  113. int n_params,
  114. GType *param_types);
  115. /* VOID:LONG */
  116. GLIB_AVAILABLE_IN_ALL
  117. void g_cclosure_marshal_VOID__LONG (GClosure *closure,
  118. GValue *return_value,
  119. guint n_param_values,
  120. const GValue *param_values,
  121. gpointer invocation_hint,
  122. gpointer marshal_data);
  123. GLIB_AVAILABLE_IN_ALL
  124. void g_cclosure_marshal_VOID__LONGv (GClosure *closure,
  125. GValue *return_value,
  126. gpointer instance,
  127. va_list args,
  128. gpointer marshal_data,
  129. int n_params,
  130. GType *param_types);
  131. /* VOID:ULONG */
  132. GLIB_AVAILABLE_IN_ALL
  133. void g_cclosure_marshal_VOID__ULONG (GClosure *closure,
  134. GValue *return_value,
  135. guint n_param_values,
  136. const GValue *param_values,
  137. gpointer invocation_hint,
  138. gpointer marshal_data);
  139. GLIB_AVAILABLE_IN_ALL
  140. void g_cclosure_marshal_VOID__ULONGv (GClosure *closure,
  141. GValue *return_value,
  142. gpointer instance,
  143. va_list args,
  144. gpointer marshal_data,
  145. int n_params,
  146. GType *param_types);
  147. /* VOID:ENUM */
  148. GLIB_AVAILABLE_IN_ALL
  149. void g_cclosure_marshal_VOID__ENUM (GClosure *closure,
  150. GValue *return_value,
  151. guint n_param_values,
  152. const GValue *param_values,
  153. gpointer invocation_hint,
  154. gpointer marshal_data);
  155. GLIB_AVAILABLE_IN_ALL
  156. void g_cclosure_marshal_VOID__ENUMv (GClosure *closure,
  157. GValue *return_value,
  158. gpointer instance,
  159. va_list args,
  160. gpointer marshal_data,
  161. int n_params,
  162. GType *param_types);
  163. /* VOID:FLAGS */
  164. GLIB_AVAILABLE_IN_ALL
  165. void g_cclosure_marshal_VOID__FLAGS (GClosure *closure,
  166. GValue *return_value,
  167. guint n_param_values,
  168. const GValue *param_values,
  169. gpointer invocation_hint,
  170. gpointer marshal_data);
  171. GLIB_AVAILABLE_IN_ALL
  172. void g_cclosure_marshal_VOID__FLAGSv (GClosure *closure,
  173. GValue *return_value,
  174. gpointer instance,
  175. va_list args,
  176. gpointer marshal_data,
  177. int n_params,
  178. GType *param_types);
  179. /* VOID:FLOAT */
  180. GLIB_AVAILABLE_IN_ALL
  181. void g_cclosure_marshal_VOID__FLOAT (GClosure *closure,
  182. GValue *return_value,
  183. guint n_param_values,
  184. const GValue *param_values,
  185. gpointer invocation_hint,
  186. gpointer marshal_data);
  187. GLIB_AVAILABLE_IN_ALL
  188. void g_cclosure_marshal_VOID__FLOATv (GClosure *closure,
  189. GValue *return_value,
  190. gpointer instance,
  191. va_list args,
  192. gpointer marshal_data,
  193. int n_params,
  194. GType *param_types);
  195. /* VOID:DOUBLE */
  196. GLIB_AVAILABLE_IN_ALL
  197. void g_cclosure_marshal_VOID__DOUBLE (GClosure *closure,
  198. GValue *return_value,
  199. guint n_param_values,
  200. const GValue *param_values,
  201. gpointer invocation_hint,
  202. gpointer marshal_data);
  203. GLIB_AVAILABLE_IN_ALL
  204. void g_cclosure_marshal_VOID__DOUBLEv (GClosure *closure,
  205. GValue *return_value,
  206. gpointer instance,
  207. va_list args,
  208. gpointer marshal_data,
  209. int n_params,
  210. GType *param_types);
  211. /* VOID:STRING */
  212. GLIB_AVAILABLE_IN_ALL
  213. void g_cclosure_marshal_VOID__STRING (GClosure *closure,
  214. GValue *return_value,
  215. guint n_param_values,
  216. const GValue *param_values,
  217. gpointer invocation_hint,
  218. gpointer marshal_data);
  219. GLIB_AVAILABLE_IN_ALL
  220. void g_cclosure_marshal_VOID__STRINGv (GClosure *closure,
  221. GValue *return_value,
  222. gpointer instance,
  223. va_list args,
  224. gpointer marshal_data,
  225. int n_params,
  226. GType *param_types);
  227. /* VOID:PARAM */
  228. GLIB_AVAILABLE_IN_ALL
  229. void g_cclosure_marshal_VOID__PARAM (GClosure *closure,
  230. GValue *return_value,
  231. guint n_param_values,
  232. const GValue *param_values,
  233. gpointer invocation_hint,
  234. gpointer marshal_data);
  235. GLIB_AVAILABLE_IN_ALL
  236. void g_cclosure_marshal_VOID__PARAMv (GClosure *closure,
  237. GValue *return_value,
  238. gpointer instance,
  239. va_list args,
  240. gpointer marshal_data,
  241. int n_params,
  242. GType *param_types);
  243. /* VOID:BOXED */
  244. GLIB_AVAILABLE_IN_ALL
  245. void g_cclosure_marshal_VOID__BOXED (GClosure *closure,
  246. GValue *return_value,
  247. guint n_param_values,
  248. const GValue *param_values,
  249. gpointer invocation_hint,
  250. gpointer marshal_data);
  251. GLIB_AVAILABLE_IN_ALL
  252. void g_cclosure_marshal_VOID__BOXEDv (GClosure *closure,
  253. GValue *return_value,
  254. gpointer instance,
  255. va_list args,
  256. gpointer marshal_data,
  257. int n_params,
  258. GType *param_types);
  259. /* VOID:POINTER */
  260. GLIB_AVAILABLE_IN_ALL
  261. void g_cclosure_marshal_VOID__POINTER (GClosure *closure,
  262. GValue *return_value,
  263. guint n_param_values,
  264. const GValue *param_values,
  265. gpointer invocation_hint,
  266. gpointer marshal_data);
  267. GLIB_AVAILABLE_IN_ALL
  268. void g_cclosure_marshal_VOID__POINTERv (GClosure *closure,
  269. GValue *return_value,
  270. gpointer instance,
  271. va_list args,
  272. gpointer marshal_data,
  273. int n_params,
  274. GType *param_types);
  275. /* VOID:OBJECT */
  276. GLIB_AVAILABLE_IN_ALL
  277. void g_cclosure_marshal_VOID__OBJECT (GClosure *closure,
  278. GValue *return_value,
  279. guint n_param_values,
  280. const GValue *param_values,
  281. gpointer invocation_hint,
  282. gpointer marshal_data);
  283. GLIB_AVAILABLE_IN_ALL
  284. void g_cclosure_marshal_VOID__OBJECTv (GClosure *closure,
  285. GValue *return_value,
  286. gpointer instance,
  287. va_list args,
  288. gpointer marshal_data,
  289. int n_params,
  290. GType *param_types);
  291. /* VOID:VARIANT */
  292. GLIB_AVAILABLE_IN_ALL
  293. void g_cclosure_marshal_VOID__VARIANT (GClosure *closure,
  294. GValue *return_value,
  295. guint n_param_values,
  296. const GValue *param_values,
  297. gpointer invocation_hint,
  298. gpointer marshal_data);
  299. GLIB_AVAILABLE_IN_ALL
  300. void g_cclosure_marshal_VOID__VARIANTv (GClosure *closure,
  301. GValue *return_value,
  302. gpointer instance,
  303. va_list args,
  304. gpointer marshal_data,
  305. int n_params,
  306. GType *param_types);
  307. /* VOID:UINT,POINTER */
  308. GLIB_AVAILABLE_IN_ALL
  309. void g_cclosure_marshal_VOID__UINT_POINTER (GClosure *closure,
  310. GValue *return_value,
  311. guint n_param_values,
  312. const GValue *param_values,
  313. gpointer invocation_hint,
  314. gpointer marshal_data);
  315. GLIB_AVAILABLE_IN_ALL
  316. void g_cclosure_marshal_VOID__UINT_POINTERv (GClosure *closure,
  317. GValue *return_value,
  318. gpointer instance,
  319. va_list args,
  320. gpointer marshal_data,
  321. int n_params,
  322. GType *param_types);
  323. /* BOOL:FLAGS */
  324. GLIB_AVAILABLE_IN_ALL
  325. void g_cclosure_marshal_BOOLEAN__FLAGS (GClosure *closure,
  326. GValue *return_value,
  327. guint n_param_values,
  328. const GValue *param_values,
  329. gpointer invocation_hint,
  330. gpointer marshal_data);
  331. GLIB_AVAILABLE_IN_ALL
  332. void g_cclosure_marshal_BOOLEAN__FLAGSv (GClosure *closure,
  333. GValue *return_value,
  334. gpointer instance,
  335. va_list args,
  336. gpointer marshal_data,
  337. int n_params,
  338. GType *param_types);
  339. /**
  340. * g_cclosure_marshal_BOOL__FLAGS:
  341. * @closure: A #GClosure.
  342. * @return_value: A #GValue to store the return value. May be %NULL
  343. * if the callback of closure doesn't return a value.
  344. * @n_param_values: The length of the @param_values array.
  345. * @param_values: An array of #GValues holding the arguments
  346. * on which to invoke the callback of closure.
  347. * @invocation_hint: The invocation hint given as the last argument to
  348. * g_closure_invoke().
  349. * @marshal_data: Additional data specified when registering the
  350. * marshaller, see g_closure_set_marshal() and
  351. * g_closure_set_meta_marshal()
  352. *
  353. * An old alias for g_cclosure_marshal_BOOLEAN__FLAGS().
  354. */
  355. #define g_cclosure_marshal_BOOL__FLAGS g_cclosure_marshal_BOOLEAN__FLAGS
  356. /* STRING:OBJECT,POINTER */
  357. GLIB_AVAILABLE_IN_ALL
  358. void g_cclosure_marshal_STRING__OBJECT_POINTER (GClosure *closure,
  359. GValue *return_value,
  360. guint n_param_values,
  361. const GValue *param_values,
  362. gpointer invocation_hint,
  363. gpointer marshal_data);
  364. GLIB_AVAILABLE_IN_ALL
  365. void g_cclosure_marshal_STRING__OBJECT_POINTERv (GClosure *closure,
  366. GValue *return_value,
  367. gpointer instance,
  368. va_list args,
  369. gpointer marshal_data,
  370. int n_params,
  371. GType *param_types);
  372. /* BOOL:BOXED,BOXED */
  373. GLIB_AVAILABLE_IN_ALL
  374. void g_cclosure_marshal_BOOLEAN__BOXED_BOXED (GClosure *closure,
  375. GValue *return_value,
  376. guint n_param_values,
  377. const GValue *param_values,
  378. gpointer invocation_hint,
  379. gpointer marshal_data);
  380. GLIB_AVAILABLE_IN_ALL
  381. void g_cclosure_marshal_BOOLEAN__BOXED_BOXEDv (GClosure *closure,
  382. GValue *return_value,
  383. gpointer instance,
  384. va_list args,
  385. gpointer marshal_data,
  386. int n_params,
  387. GType *param_types);
  388. /**
  389. * g_cclosure_marshal_BOOL__BOXED_BOXED:
  390. * @closure: A #GClosure.
  391. * @return_value: A #GValue to store the return value. May be %NULL
  392. * if the callback of closure doesn't return a value.
  393. * @n_param_values: The length of the @param_values array.
  394. * @param_values: An array of #GValues holding the arguments
  395. * on which to invoke the callback of closure.
  396. * @invocation_hint: The invocation hint given as the last argument to
  397. * g_closure_invoke().
  398. * @marshal_data: Additional data specified when registering the
  399. * marshaller, see g_closure_set_marshal() and
  400. * g_closure_set_meta_marshal()
  401. *
  402. * An old alias for g_cclosure_marshal_BOOLEAN__BOXED_BOXED().
  403. */
  404. #define g_cclosure_marshal_BOOL__BOXED_BOXED g_cclosure_marshal_BOOLEAN__BOXED_BOXED
  405. G_END_DECLS
  406. #endif /* __G_MARSHAL_H__ */