glib2 1.1.9-x86-mingw32 → 1.2.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (517) hide show
  1. data/Rakefile +26 -4
  2. data/ext/glib2/glib2.def +3 -1
  3. data/ext/glib2/rbgcompat.h +0 -15
  4. data/ext/glib2/rbglib.h +11 -3
  5. data/ext/glib2/rbglib_source.c +6 -1
  6. data/ext/glib2/rbgobj_boxed.c +65 -48
  7. data/ext/glib2/rbgobj_convert.c +29 -14
  8. data/ext/glib2/rbgobj_value.c +42 -0
  9. data/ext/glib2/rbgobject.c +7 -4
  10. data/ext/glib2/rbgobject.h +15 -9
  11. data/lib/1.8/glib2.so +0 -0
  12. data/lib/1.9/glib2.so +0 -0
  13. data/lib/gnome2-raketask.rb +6 -1
  14. data/lib/gnome2-win32-binary-build-task.rb +40 -10
  15. data/vendor/local/bin/certtool.exe +0 -0
  16. data/vendor/local/bin/danetool.exe +0 -0
  17. data/vendor/local/bin/gdbus-codegen +1 -1
  18. data/vendor/local/bin/gdbus.exe +0 -0
  19. data/vendor/local/bin/gio-querymodules.exe +0 -0
  20. data/vendor/local/bin/glib-compile-resources.exe +0 -0
  21. data/vendor/local/bin/glib-compile-schemas.exe +0 -0
  22. data/vendor/local/bin/glib-genmarshal.exe +0 -0
  23. data/vendor/local/bin/glib-gettextize +1 -1
  24. data/vendor/local/bin/glib-mkenums +1 -1
  25. data/vendor/local/bin/gnutls-cli-debug.exe +0 -0
  26. data/vendor/local/bin/gnutls-cli.exe +0 -0
  27. data/vendor/local/bin/gnutls-serv.exe +0 -0
  28. data/vendor/local/bin/gobject-query.exe +0 -0
  29. data/vendor/local/bin/gresource.exe +0 -0
  30. data/vendor/local/bin/gsettings.exe +0 -0
  31. data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
  32. data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
  33. data/vendor/local/bin/libgio-2.0-0.dll +0 -0
  34. data/vendor/local/bin/libglib-2.0-0.dll +0 -0
  35. data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
  36. data/vendor/local/bin/libgmp-10.dll +0 -0
  37. data/vendor/local/bin/libgnutls-28.dll +0 -0
  38. data/vendor/local/bin/libgnutls-openssl-27.dll +0 -0
  39. data/vendor/local/bin/libgnutls-openssl-28.def +87 -93
  40. data/vendor/local/bin/libgnutlsxx-28.dll +0 -0
  41. data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
  42. data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
  43. data/vendor/local/bin/libhogweed-2-2.dll +0 -0
  44. data/vendor/local/bin/libnettle-4-4.dll +0 -0
  45. data/vendor/local/bin/nettle-hash.exe +0 -0
  46. data/vendor/local/bin/nettle-lfib-stream.exe +0 -0
  47. data/vendor/local/bin/ocsptool.exe +0 -0
  48. data/vendor/local/bin/pkcs1-conv.exe +0 -0
  49. data/vendor/local/bin/psktool.exe +0 -0
  50. data/vendor/local/bin/sexp-conv.exe +0 -0
  51. data/vendor/local/bin/srptool.exe +0 -0
  52. data/vendor/local/{lib/libffi-3.0.6/include → include}/ffi.h +0 -0
  53. data/vendor/local/{lib/libffi-3.0.6/include → include}/ffitarget.h +0 -0
  54. data/vendor/local/include/glib-2.0/gio/gactionmap.h +0 -4
  55. data/vendor/local/include/glib-2.0/gio/gappinfo.h +1 -3
  56. data/vendor/local/include/glib-2.0/gio/gapplication.h +0 -1
  57. data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +0 -4
  58. data/vendor/local/include/glib-2.0/gio/gcontenttype.h +0 -1
  59. data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +1 -6
  60. data/vendor/local/include/glib-2.0/gio/gfile.h +0 -3
  61. data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +0 -3
  62. data/vendor/local/include/glib-2.0/gio/gfileinfo.h +0 -2
  63. data/vendor/local/include/glib-2.0/gio/ginetaddressmask.h +0 -6
  64. data/vendor/local/include/glib-2.0/gio/gio.h +0 -1
  65. data/vendor/local/include/glib-2.0/gio/gioenums.h +1 -3
  66. data/vendor/local/include/glib-2.0/gio/giomodule.h +0 -5
  67. data/vendor/local/include/glib-2.0/gio/gioscheduler.h +0 -4
  68. data/vendor/local/include/glib-2.0/gio/giotypes.h +0 -1
  69. data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +0 -2
  70. data/vendor/local/include/glib-2.0/gio/gmenu.h +0 -27
  71. data/vendor/local/include/glib-2.0/gio/gmenumodel.h +0 -19
  72. data/vendor/local/include/glib-2.0/gio/gresource.h +0 -2
  73. data/vendor/local/include/glib-2.0/gio/gsettingsschema.h +0 -4
  74. data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +0 -1
  75. data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +0 -1
  76. data/vendor/local/include/glib-2.0/gio/gsocket.h +0 -13
  77. data/vendor/local/include/glib-2.0/glib/deprecated/gthread.h +0 -1
  78. data/vendor/local/include/glib-2.0/glib/gchecksum.h +1 -3
  79. data/vendor/local/include/glib-2.0/glib/gconvert.h +9 -24
  80. data/vendor/local/include/glib-2.0/glib/gdir.h +8 -10
  81. data/vendor/local/include/glib-2.0/glib/genviron.h +8 -12
  82. data/vendor/local/include/glib-2.0/glib/gfileutils.h +15 -20
  83. data/vendor/local/include/glib-2.0/glib/giochannel.h +4 -14
  84. data/vendor/local/include/glib-2.0/glib/gslice.h +0 -4
  85. data/vendor/local/include/glib-2.0/glib/gspawn.h +10 -46
  86. data/vendor/local/include/glib-2.0/glib/gtestutils.h +0 -1
  87. data/vendor/local/include/glib-2.0/glib/gunicode.h +5 -5
  88. data/vendor/local/include/glib-2.0/glib/gutils.h +14 -14
  89. data/vendor/local/include/glib-2.0/glib/gvariant.h +0 -8
  90. data/vendor/local/include/glib-2.0/glib/gversionmacros.h +0 -24
  91. data/vendor/local/include/glib-2.0/glib/gwin32.h +7 -14
  92. data/vendor/local/include/glib-2.0/gmodule.h +7 -11
  93. data/vendor/local/include/glib-2.0/gobject/glib-types.h +0 -33
  94. data/vendor/local/include/glib-2.0/gobject/gobject.h +7 -7
  95. data/vendor/local/include/glib-2.0/gobject/gtype.h +7 -13
  96. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/__init__.py +0 -0
  97. data/vendor/local/lib/gdbus-2.0/codegen/__init__.pyc +0 -0
  98. data/vendor/local/lib/gdbus-2.0/codegen/__init__.pyo +0 -0
  99. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen.py +0 -0
  100. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen.pyc +0 -0
  101. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen.pyo +0 -0
  102. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_docbook.py +0 -0
  103. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_docbook.pyc +0 -0
  104. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_docbook.pyo +0 -0
  105. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_main.py +0 -2
  106. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_main.pyc +0 -0
  107. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/codegen_main.pyo +0 -0
  108. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/config.py +1 -1
  109. data/vendor/local/lib/gdbus-2.0/codegen/config.pyc +0 -0
  110. data/vendor/local/lib/gdbus-2.0/codegen/config.pyo +0 -0
  111. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/dbustypes.py +0 -0
  112. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/dbustypes.pyc +0 -0
  113. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/dbustypes.pyo +0 -0
  114. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/parser.py +0 -0
  115. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/parser.pyc +0 -0
  116. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/parser.pyo +0 -0
  117. data/vendor/local/{share/glib-2.0 → lib/gdbus-2.0}/codegen/utils.py +0 -0
  118. data/vendor/local/lib/gdbus-2.0/codegen/utils.pyc +0 -0
  119. data/vendor/local/lib/gdbus-2.0/codegen/utils.pyo +0 -0
  120. data/vendor/local/lib/gio-2.0.def +2 -41
  121. data/vendor/local/lib/gio/modules/libgiognutls.a +0 -0
  122. data/vendor/local/lib/gio/modules/libgiognutls.dll +0 -0
  123. data/vendor/local/lib/gio/modules/libgiognutls.dll.a +0 -0
  124. data/vendor/local/lib/gio/modules/libgiognutls.la +1 -1
  125. data/vendor/local/lib/glib-2.0.def +0 -2
  126. data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
  127. data/vendor/local/lib/gobject-2.0.def +0 -4
  128. data/vendor/local/lib/libgio-2.0.dll.a +0 -0
  129. data/vendor/local/lib/libgio-2.0.la +4 -4
  130. data/vendor/local/lib/libglib-2.0.dll.a +0 -0
  131. data/vendor/local/lib/libglib-2.0.la +3 -3
  132. data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
  133. data/vendor/local/lib/libgmodule-2.0.la +3 -3
  134. data/vendor/local/lib/libgmp.dll.a +0 -0
  135. data/vendor/local/lib/libgnutls-openssl.a +0 -0
  136. data/vendor/local/lib/libgnutls-openssl.dll.a +0 -0
  137. data/vendor/local/lib/libgnutls.a +0 -0
  138. data/vendor/local/lib/libgnutls.dll.a +0 -0
  139. data/vendor/local/lib/libgnutlsxx.a +0 -0
  140. data/vendor/local/lib/libgnutlsxx.dll.a +0 -0
  141. data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
  142. data/vendor/local/lib/libgobject-2.0.la +4 -4
  143. data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
  144. data/vendor/local/lib/libgthread-2.0.la +3 -3
  145. data/vendor/local/lib/libhogweed.a +0 -0
  146. data/vendor/local/lib/libhogweed.dll.a +0 -0
  147. data/vendor/local/lib/libnettle.a +0 -0
  148. data/vendor/local/lib/libnettle.dll.a +0 -0
  149. data/vendor/local/lib/pkgconfig/gio-2.0.pc +1 -1
  150. data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
  151. data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
  152. data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
  153. data/vendor/local/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
  154. data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  155. data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
  156. data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
  157. data/vendor/local/share/gdb/auto-load/{libglib-2.0.so.0.3503.0-gdb.py → libglib-2.0.so.0.3400.3-gdb.py} +0 -0
  158. data/vendor/local/share/gdb/auto-load/{libgobject-2.0.so.0.3503.0-gdb.py → libgobject-2.0.so.0.3400.3-gdb.py} +0 -0
  159. data/vendor/local/share/glib-2.0/gdb/glib.py +4 -0
  160. data/vendor/local/share/glib-2.0/gettext/mkinstalldirs +2 -2
  161. data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +17 -5
  162. data/vendor/local/share/gtk-doc/html/gio/GActionMap.html +1 -1
  163. data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +1 -27
  164. data/vendor/local/share/gtk-doc/html/gio/GApplication.html +15 -8
  165. data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +6 -47
  166. data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +37 -21
  167. data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +4 -16
  168. data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +1 -1
  169. data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +1 -1
  170. data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +32 -16
  171. data/vendor/local/share/gtk-doc/html/gio/GDBusInterfaceSkeleton.html +1 -1
  172. data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +1 -1
  173. data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManagerClient.html +2 -4
  174. data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +10 -6
  175. data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +7 -3
  176. data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +3 -3
  177. data/vendor/local/share/gtk-doc/html/gio/GFile.html +17 -65
  178. data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +2 -59
  179. data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +1 -29
  180. data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +1 -1
  181. data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +4 -4
  182. data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +0 -13
  183. data/vendor/local/share/gtk-doc/html/gio/GMount.html +1 -1
  184. data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +2 -2
  185. data/vendor/local/share/gtk-doc/html/gio/GSettings.html +5 -5
  186. data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +1 -1
  187. data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +4 -12
  188. data/vendor/local/share/gtk-doc/html/gio/GSocket.html +1 -137
  189. data/vendor/local/share/gtk-doc/html/gio/GTestDBus.html +2 -3
  190. data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +1 -1
  191. data/vendor/local/share/gtk-doc/html/gio/GVolume.html +1 -1
  192. data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +0 -4
  193. data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +0 -19
  194. data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +0 -180
  195. data/vendor/local/share/gtk-doc/html/gio/async.html +0 -3
  196. data/vendor/local/share/gtk-doc/html/gio/ch01.html +1 -1
  197. data/vendor/local/share/gtk-doc/html/gio/ch02.html +3 -3
  198. data/vendor/local/share/gtk-doc/html/gio/ch03.html +1 -1
  199. data/vendor/local/share/gtk-doc/html/gio/ch29.html +1 -1
  200. data/vendor/local/share/gtk-doc/html/gio/ch30.html +4 -4
  201. data/vendor/local/share/gtk-doc/html/gio/ch30s02.html +2 -2
  202. data/vendor/local/share/gtk-doc/html/gio/ch30s03.html +3 -3
  203. data/vendor/local/share/gtk-doc/html/gio/ch31.html +3 -3
  204. data/vendor/local/share/gtk-doc/html/gio/ch31s02.html +1 -1
  205. data/vendor/local/share/gtk-doc/html/gio/ch31s03.html +1 -1
  206. data/vendor/local/share/gtk-doc/html/gio/ch31s04.html +1 -1
  207. data/vendor/local/share/gtk-doc/html/gio/ch31s05.html +1 -1
  208. data/vendor/local/share/gtk-doc/html/gio/ch31s06.html +2 -2
  209. data/vendor/local/share/gtk-doc/html/gio/ch31s07.html +1 -1
  210. data/vendor/local/share/gtk-doc/html/gio/ch32.html +3 -3
  211. data/vendor/local/share/gtk-doc/html/gio/ch32s02.html +1 -1
  212. data/vendor/local/share/gtk-doc/html/gio/ch32s03.html +1 -1
  213. data/vendor/local/share/gtk-doc/html/gio/ch32s04.html +1 -1
  214. data/vendor/local/share/gtk-doc/html/gio/ch32s05.html +17 -9
  215. data/vendor/local/share/gtk-doc/html/gio/gdbus-codegen.html +11 -11
  216. data/vendor/local/share/gtk-doc/html/gio/gdbus-org.gtk.GDBus.Example.ObjectManager.Animal.html +2 -2
  217. data/vendor/local/share/gtk-doc/html/gio/gdbus.html +6 -6
  218. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +5 -5
  219. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +1 -1
  220. data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +0 -109
  221. data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +1 -1
  222. data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +2 -2
  223. data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +1 -7
  224. data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +12 -29
  225. data/vendor/local/share/gtk-doc/html/gio/gio-GResource.html +1 -1
  226. data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +7 -3
  227. data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +8 -10
  228. data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +0 -1
  229. data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +1 -1
  230. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +11 -64
  231. data/vendor/local/share/gtk-doc/html/gio/glib-compile-resources.html +3 -15
  232. data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +2 -2
  233. data/vendor/local/share/gtk-doc/html/gio/gresource-tool.html +2 -2
  234. data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +2 -2
  235. data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +2 -2
  236. data/vendor/local/share/gtk-doc/html/gio/index.html +4 -10
  237. data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -59
  238. data/vendor/local/share/gtk-doc/html/gio/migrating.html +3 -3
  239. data/vendor/local/share/gtk-doc/html/gio/networking.html +0 -3
  240. data/vendor/local/share/gtk-doc/html/gio/pt01.html +1 -1
  241. data/vendor/local/share/gtk-doc/html/gio/pt02.html +1 -7
  242. data/vendor/local/share/gtk-doc/html/glib/api-index-2-34.html +0 -4
  243. data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +1 -21
  244. data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +2 -2
  245. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +1 -1
  246. data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +4 -13
  247. data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +2 -2
  248. data/vendor/local/share/gtk-doc/html/glib/glib-Deprecated-Thread-APIs.html +11 -7
  249. data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +2 -2
  250. data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +1 -1
  251. data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +10 -86
  252. data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +46 -5
  253. data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +7 -11
  254. data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +3 -3
  255. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +4 -4
  256. data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +3 -3
  257. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +34 -27
  258. data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +1 -1
  259. data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +2 -2
  260. data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +2 -2
  261. data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +2 -23
  262. data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +14 -14
  263. data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +6 -6
  264. data/vendor/local/share/gtk-doc/html/glib/glib-UNIX-specific-utilities-and-integration.html +7 -13
  265. data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +5 -9
  266. data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +4 -28
  267. data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +2 -2
  268. data/vendor/local/share/gtk-doc/html/glib/glib-building.html +1 -1
  269. data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +2 -2
  270. data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +1 -1
  271. data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +3 -3
  272. data/vendor/local/share/gtk-doc/html/glib/glib-programming.html +3 -3
  273. data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +45 -45
  274. data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +3 -3
  275. data/vendor/local/share/gtk-doc/html/glib/glib-running.html +6 -6
  276. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +25 -32
  277. data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +3 -3
  278. data/vendor/local/share/gtk-doc/html/glib/gtester.html +3 -3
  279. data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +12 -12
  280. data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +2 -2
  281. data/vendor/local/share/gtk-doc/html/glib/index.html +1 -1
  282. data/vendor/local/share/gtk-doc/html/glib/index.sgml +0 -7
  283. data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +0 -12
  284. data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +0 -12
  285. data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +4 -4
  286. data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +4 -4
  287. data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +2 -2
  288. data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +8 -8
  289. data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +6 -6
  290. data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +5 -5
  291. data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +0 -22
  292. data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +5 -1
  293. data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +32 -6
  294. data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +6 -6
  295. data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +24 -51
  296. data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +4 -4
  297. data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +3 -3
  298. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +8 -11
  299. data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +2 -2
  300. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +2 -2
  301. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +3 -3
  302. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +3 -3
  303. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +2 -2
  304. data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +2 -2
  305. data/vendor/local/share/gtk-doc/html/gobject/index.html +7 -7
  306. data/vendor/local/share/gtk-doc/html/gobject/index.sgml +0 -3
  307. data/vendor/local/share/gtk-doc/html/gobject/pr01.html +1 -1
  308. data/vendor/local/share/gtk-doc/html/gobject/pt01.html +4 -4
  309. data/vendor/local/share/gtk-doc/html/gobject/pt02.html +4 -4
  310. data/vendor/local/share/gtk-doc/html/gobject/pt03.html +1 -1
  311. data/vendor/local/share/gtk-doc/html/gobject/rn01.html +1 -1
  312. data/vendor/local/share/gtk-doc/html/gobject/rn02.html +1 -1
  313. data/vendor/local/share/gtk-doc/html/gobject/signal.html +4 -4
  314. data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
  315. data/vendor/local/share/locale/cs/LC_MESSAGES/glib-networking.mo +0 -0
  316. data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
  317. data/vendor/local/share/locale/es/LC_MESSAGES/glib-networking.mo +0 -0
  318. data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
  319. data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
  320. data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
  321. data/vendor/local/share/locale/he/LC_MESSAGES/glib-networking.mo +0 -0
  322. data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
  323. data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
  324. data/vendor/local/share/locale/lt/LC_MESSAGES/glib-networking.mo +0 -0
  325. data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
  326. data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
  327. data/vendor/local/share/locale/or/LC_MESSAGES/glib20.mo +0 -0
  328. data/vendor/local/share/locale/pl/LC_MESSAGES/glib-networking.mo +0 -0
  329. data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
  330. data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
  331. data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
  332. data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
  333. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
  334. data/vendor/local/share/man/man1/gdbus-codegen.1 +1 -1
  335. data/vendor/local/share/man/man1/gdbus.1 +1 -1
  336. data/vendor/local/share/man/man1/gio-querymodules.1 +1 -1
  337. data/vendor/local/share/man/man1/glib-compile-resources.1 +1 -13
  338. data/vendor/local/share/man/man1/glib-compile-schemas.1 +1 -1
  339. data/vendor/local/share/man/man1/glib-genmarshal.1 +1 -1
  340. data/vendor/local/share/man/man1/glib-gettextize.1 +1 -1
  341. data/vendor/local/share/man/man1/glib-mkenums.1 +1 -1
  342. data/vendor/local/share/man/man1/gobject-query.1 +1 -1
  343. data/vendor/local/share/man/man1/gresource.1 +1 -1
  344. data/vendor/local/share/man/man1/gsettings.1 +1 -1
  345. data/vendor/local/share/man/man1/gtester-report.1 +1 -1
  346. data/vendor/local/share/man/man1/gtester.1 +1 -1
  347. metadata +33 -197
  348. data/ext/glib2/rbgobj_fundamental.c +0 -43
  349. data/vendor/local/bin/asn1Coding.exe +0 -0
  350. data/vendor/local/bin/asn1Decoding.exe +0 -0
  351. data/vendor/local/bin/asn1Parser.exe +0 -0
  352. data/vendor/local/bin/dumpsexp.exe +0 -0
  353. data/vendor/local/bin/gpg-error.exe +0 -0
  354. data/vendor/local/bin/hmac256.exe +0 -0
  355. data/vendor/local/bin/libgcrypt-11.dll +0 -0
  356. data/vendor/local/bin/libgcrypt-config +0 -177
  357. data/vendor/local/bin/libgnutls-26.dll +0 -0
  358. data/vendor/local/bin/libgnutls-extra-26.dll +0 -0
  359. data/vendor/local/bin/libgnutls-openssl-26.dll +0 -0
  360. data/vendor/local/bin/libgpg-error-0.dll +0 -0
  361. data/vendor/local/bin/libtasn1-3.dll +0 -0
  362. data/vendor/local/etc/bash_completion.d/gdbus-bash-completion.sh +0 -33
  363. data/vendor/local/etc/bash_completion.d/gsettings-bash-completion.sh +0 -67
  364. data/vendor/local/gnutls.README.txt +0 -6
  365. data/vendor/local/include/gcrypt-module.h +0 -226
  366. data/vendor/local/include/gcrypt.h +0 -1826
  367. data/vendor/local/include/glib-2.0/gio/gnetworking.h +0 -83
  368. data/vendor/local/include/glib-2.0/gio/gtask.h +0 -160
  369. data/vendor/local/include/glib-2.0/glib/gcache.h +0 -69
  370. data/vendor/local/include/glib-2.0/glib/gcompletion.h +0 -81
  371. data/vendor/local/include/glib-2.0/glib/grel.h +0 -101
  372. data/vendor/local/include/gnutls/extra.h +0 -137
  373. data/vendor/local/include/gpg-error.h +0 -651
  374. data/vendor/local/include/libtasn1.h +0 -246
  375. data/vendor/local/lib/gio-2.0.lib +0 -0
  376. data/vendor/local/lib/glib-2.0.lib +0 -0
  377. data/vendor/local/lib/gmodule-2.0.lib +0 -0
  378. data/vendor/local/lib/gobject-2.0.lib +0 -0
  379. data/vendor/local/lib/gthread-2.0.lib +0 -0
  380. data/vendor/local/lib/libgcrypt.def +0 -237
  381. data/vendor/local/lib/libgcrypt.dll.a +0 -0
  382. data/vendor/local/lib/libgnutls-extra.dll.a +0 -0
  383. data/vendor/local/lib/libgpg-error.dll.a +0 -0
  384. data/vendor/local/lib/libtasn1.dll.a +0 -0
  385. data/vendor/local/manifest/glib-dev_2.28.8-1_win32.mft +0 -619
  386. data/vendor/local/manifest/glib_2.28.8-1_win32.mft +0 -103
  387. data/vendor/local/manifest/gnutls-dev_2.4.2-1_win32.mft +0 -593
  388. data/vendor/local/manifest/gnutls_2.4.2-1_win32.mft +0 -8
  389. data/vendor/local/share/aclocal/gpg-error.m4 +0 -65
  390. data/vendor/local/share/aclocal/libgcrypt.m4 +0 -108
  391. data/vendor/local/share/aclocal/libgnutls-extra.m4 +0 -161
  392. data/vendor/local/share/aclocal/libgnutls.m4 +0 -160
  393. data/vendor/local/share/aclocal/libtasn1.m4 +0 -160
  394. data/vendor/local/share/common-lisp/source/gpg-error/gpg-error-codes.lisp +0 -417
  395. data/vendor/local/share/common-lisp/source/gpg-error/gpg-error-package.lisp +0 -64
  396. data/vendor/local/share/common-lisp/source/gpg-error/gpg-error.asd +0 -36
  397. data/vendor/local/share/common-lisp/source/gpg-error/gpg-error.lisp +0 -236
  398. data/vendor/local/share/doc/glib-2.28.8/COPYING +0 -482
  399. data/vendor/local/share/doc/glib-dev-2.28.8/COPYING +0 -482
  400. data/vendor/local/share/glib-2.0/codegen/__init__.pyc +0 -0
  401. data/vendor/local/share/glib-2.0/codegen/__init__.pyo +0 -0
  402. data/vendor/local/share/glib-2.0/codegen/config.pyc +0 -0
  403. data/vendor/local/share/glib-2.0/codegen/config.pyo +0 -0
  404. data/vendor/local/share/glib-2.0/codegen/utils.pyc +0 -0
  405. data/vendor/local/share/glib-2.0/codegen/utils.pyo +0 -0
  406. data/vendor/local/share/gtk-doc/html/gio/GDBusError.html +0 -879
  407. data/vendor/local/share/gtk-doc/html/gio/GTask.html +0 -2296
  408. data/vendor/local/share/gtk-doc/html/gio/ch26.html +0 -75
  409. data/vendor/local/share/gtk-doc/html/gio/ch27.html +0 -217
  410. data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +0 -41
  411. data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +0 -39
  412. data/vendor/local/share/gtk-doc/html/gio/ch28.html +0 -57
  413. data/vendor/local/share/gtk-doc/html/gio/ch28s02.html +0 -59
  414. data/vendor/local/share/gtk-doc/html/gio/ch28s03.html +0 -159
  415. data/vendor/local/share/gtk-doc/html/gio/ch28s04.html +0 -46
  416. data/vendor/local/share/gtk-doc/html/gio/ch28s05.html +0 -48
  417. data/vendor/local/share/gtk-doc/html/gio/ch28s06.html +0 -279
  418. data/vendor/local/share/gtk-doc/html/gio/ch28s07.html +0 -160
  419. data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +0 -130
  420. data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +0 -202
  421. data/vendor/local/share/gtk-doc/html/gio/ch29s04.html +0 -96
  422. data/vendor/local/share/gtk-doc/html/gio/ch29s05.html +0 -823
  423. data/vendor/local/share/gtk-doc/html/gio/ch29s06.html +0 -828
  424. data/vendor/local/share/gtk-doc/html/gio/gio-gnetworking.h.html +0 -91
  425. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +0 -1956
  426. data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +0 -389
  427. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +0 -137
  428. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +0 -679
  429. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +0 -2218
  430. data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +0 -113
  431. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +0 -766
  432. data/vendor/local/share/info/gcrypt.info +0 -6243
  433. data/vendor/local/share/info/gnutls-certificate-user-use-case.png +0 -0
  434. data/vendor/local/share/info/gnutls-extensions_st.png +0 -0
  435. data/vendor/local/share/info/gnutls-mod_auth_st.png +0 -0
  436. data/vendor/local/share/info/gnutls-objects.png +0 -0
  437. data/vendor/local/share/info/libtasn1.info +0 -2993
  438. data/vendor/local/share/man/man1/asn1Coding.1 +0 -46
  439. data/vendor/local/share/man/man1/asn1Decoding.1 +0 -41
  440. data/vendor/local/share/man/man1/asn1Parser.1 +0 -49
  441. data/vendor/local/share/man/man3/asn1_array2tree.3 +0 -47
  442. data/vendor/local/share/man/man3/asn1_bit_der.3 +0 -39
  443. data/vendor/local/share/man/man3/asn1_check_version.3 +0 -39
  444. data/vendor/local/share/man/man3/asn1_copy_node.3 +0 -39
  445. data/vendor/local/share/man/man3/asn1_create_element.3 +0 -45
  446. data/vendor/local/share/man/man3/asn1_delete_element.3 +0 -39
  447. data/vendor/local/share/man/man3/asn1_delete_structure.3 +0 -37
  448. data/vendor/local/share/man/man3/asn1_der_coding.3 +0 -52
  449. data/vendor/local/share/man/man3/asn1_der_decoding.3 +0 -50
  450. data/vendor/local/share/man/man3/asn1_der_decoding_element.3 +0 -54
  451. data/vendor/local/share/man/man3/asn1_der_decoding_startEnd.3 +0 -58
  452. data/vendor/local/share/man/man3/asn1_expand_any_defined_by.3 +0 -45
  453. data/vendor/local/share/man/man3/asn1_expand_octet_string.3 +0 -51
  454. data/vendor/local/share/man/man3/asn1_find_node.3 +0 -38
  455. data/vendor/local/share/man/man3/asn1_find_structure_from_oid.3 +0 -37
  456. data/vendor/local/share/man/man3/asn1_get_bit_der.3 +0 -43
  457. data/vendor/local/share/man/man3/asn1_get_length_der.3 +0 -38
  458. data/vendor/local/share/man/man3/asn1_get_octet_der.3 +0 -43
  459. data/vendor/local/share/man/man3/asn1_get_tag_der.3 +0 -41
  460. data/vendor/local/share/man/man3/asn1_length_der.3 +0 -36
  461. data/vendor/local/share/man/man3/asn1_number_of_elements.3 +0 -43
  462. data/vendor/local/share/man/man3/asn1_octet_der.3 +0 -37
  463. data/vendor/local/share/man/man3/asn1_parser2array.3 +0 -58
  464. data/vendor/local/share/man/man3/asn1_parser2tree.3 +0 -55
  465. data/vendor/local/share/man/man3/asn1_print_structure.3 +0 -40
  466. data/vendor/local/share/man/man3/asn1_read_tag.3 +0 -46
  467. data/vendor/local/share/man/man3/asn1_read_value.3 +0 -92
  468. data/vendor/local/share/man/man3/asn1_write_value.3 +0 -136
  469. data/vendor/local/share/man/man3/gnutls_certificate_client_set_retrieve_function.3 +0 -58
  470. data/vendor/local/share/man/man3/gnutls_certificate_get_openpgp_keyring.3 +0 -37
  471. data/vendor/local/share/man/man3/gnutls_certificate_get_x509_cas.3 +0 -40
  472. data/vendor/local/share/man/man3/gnutls_certificate_get_x509_crls.3 +0 -40
  473. data/vendor/local/share/man/man3/gnutls_certificate_server_set_retrieve_function.3 +0 -47
  474. data/vendor/local/share/man/man3/gnutls_certificate_verify_peers.3 +0 -44
  475. data/vendor/local/share/man/man3/gnutls_crypto_cipher_register.3 +0 -45
  476. data/vendor/local/share/man/man3/gnutls_crypto_digest_register.3 +0 -45
  477. data/vendor/local/share/man/man3/gnutls_crypto_mac_register.3 +0 -45
  478. data/vendor/local/share/man/man3/gnutls_crypto_rnd_register.3 +0 -43
  479. data/vendor/local/share/man/man3/gnutls_extra_check_version.3 +0 -36
  480. data/vendor/local/share/man/man3/gnutls_free.3 +0 -34
  481. data/vendor/local/share/man/man3/gnutls_global_init_extra.3 +0 -38
  482. data/vendor/local/share/man/man3/gnutls_ia_allocate_client_credentials.3 +0 -42
  483. data/vendor/local/share/man/man3/gnutls_ia_allocate_server_credentials.3 +0 -42
  484. data/vendor/local/share/man/man3/gnutls_ia_enable.3 +0 -53
  485. data/vendor/local/share/man/man3/gnutls_ia_endphase_send.3 +0 -43
  486. data/vendor/local/share/man/man3/gnutls_ia_extract_inner_secret.3 +0 -44
  487. data/vendor/local/share/man/man3/gnutls_ia_free_client_credentials.3 +0 -34
  488. data/vendor/local/share/man/man3/gnutls_ia_free_server_credentials.3 +0 -34
  489. data/vendor/local/share/man/man3/gnutls_ia_generate_challenge.3 +0 -40
  490. data/vendor/local/share/man/man3/gnutls_ia_get_client_avp_ptr.3 +0 -36
  491. data/vendor/local/share/man/man3/gnutls_ia_get_server_avp_ptr.3 +0 -36
  492. data/vendor/local/share/man/man3/gnutls_ia_handshake.3 +0 -36
  493. data/vendor/local/share/man/man3/gnutls_ia_handshake_p.3 +0 -37
  494. data/vendor/local/share/man/man3/gnutls_ia_permute_inner_secret.3 +0 -43
  495. data/vendor/local/share/man/man3/gnutls_ia_recv.3 +0 -57
  496. data/vendor/local/share/man/man3/gnutls_ia_send.3 +0 -56
  497. data/vendor/local/share/man/man3/gnutls_ia_set_client_avp_function.3 +0 -61
  498. data/vendor/local/share/man/man3/gnutls_ia_set_client_avp_ptr.3 +0 -36
  499. data/vendor/local/share/man/man3/gnutls_ia_set_server_avp_function.3 +0 -68
  500. data/vendor/local/share/man/man3/gnutls_ia_set_server_avp_ptr.3 +0 -36
  501. data/vendor/local/share/man/man3/gnutls_ia_verify_endphase.3 +0 -45
  502. data/vendor/local/share/man/man3/gnutls_malloc.3 +0 -37
  503. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_expiration_time.3 +0 -40
  504. data/vendor/local/share/man/man3/gnutls_oprfi_enable_client.3 +0 -42
  505. data/vendor/local/share/man/man3/gnutls_oprfi_enable_server.3 +0 -49
  506. data/vendor/local/share/man/man3/gnutls_psk_netconf_derive_key.3 +0 -44
  507. data/vendor/local/share/man/man3/gnutls_session_get_client_random.3 +0 -40
  508. data/vendor/local/share/man/man3/gnutls_session_get_master_secret.3 +0 -43
  509. data/vendor/local/share/man/man3/gnutls_session_get_server_random.3 +0 -40
  510. data/vendor/local/share/man/man3/gnutls_sign_algorithm_get_name.3 +0 -35
  511. data/vendor/local/share/man/man3/gnutls_transport_set_global_errno.3 +0 -47
  512. data/vendor/local/share/man/man3/gnutls_transport_set_lowat.3 +0 -40
  513. data/vendor/local/share/man/man3/gnutls_x509_privkey_verify_data.3 +0 -43
  514. data/vendor/local/share/man/man3/libtasn1_perror.3 +0 -32
  515. data/vendor/local/share/man/man3/libtasn1_strerror.3 +0 -35
  516. data/vendor/local/src/dieterv/packaging/glib_2.28.8-1_win32.log +0 -2919
  517. data/vendor/local/src/dieterv/packaging/glib_2.28.8-1_win32.sh +0 -157
@@ -1,679 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Memory Chunks</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
- <link rel="home" href="index.html" title="GLib Reference Manual">
8
- <link rel="up" href="glib-data-types.html" title="GLib Data Types">
9
- <link rel="prev" href="glib-Memory-Slices.html" title="Memory Slices">
10
- <link rel="next" href="glib-Doubly-Linked-Lists.html" title="Doubly-Linked Lists">
11
- <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12
- <link rel="stylesheet" href="style.css" type="text/css">
13
- </head>
14
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
- <tr valign="middle">
17
- <td><a accesskey="p" href="glib-Memory-Slices.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
- <td><a accesskey="u" href="glib-data-types.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
- <th width="100%" align="center">GLib Reference Manual</th>
21
- <td><a accesskey="n" href="glib-Doubly-Linked-Lists.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
- </tr>
23
- <tr><td colspan="5" class="shortcuts">
24
- <a href="#glib-Memory-Chunks.synopsis" class="shortcut">Top</a>
25
-  | 
26
- <a href="#glib-Memory-Chunks.description" class="shortcut">Description</a>
27
- </td></tr>
28
- </table>
29
- <div class="refentry">
30
- <a name="glib-Memory-Chunks"></a><div class="titlepage"></div>
31
- <div class="refnamediv"><table width="100%"><tr>
32
- <td valign="top">
33
- <h2><span class="refentrytitle"><a name="glib-Memory-Chunks.top_of_page"></a>Memory Chunks</span></h2>
34
- <p>Memory Chunks — deprecated way to allocate groups of equal-sized
35
- chunks of memory</p>
36
- </td>
37
- <td valign="top" align="right"></td>
38
- </tr></table></div>
39
- <div class="refsynopsisdiv">
40
- <a name="glib-Memory-Chunks.synopsis"></a><h2>Synopsis</h2>
41
- <pre class="synopsis">
42
- #include &lt;glib.h&gt;
43
-
44
- <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk">GMemChunk</a>;
45
- #define <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS" title="G_ALLOC_AND_FREE">G_ALLOC_AND_FREE</a>
46
- #define <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-ONLY:CAPS" title="G_ALLOC_ONLY">G_ALLOC_ONLY</a>
47
-
48
- <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="returnvalue">GMemChunk</span></a> * <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-new" title="g_mem_chunk_new ()">g_mem_chunk_new</a> (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
49
- <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> atom_size</code></em>,
50
- <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> area_size</code></em>,
51
- <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> type</code></em>);
52
- <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-alloc" title="g_mem_chunk_alloc ()">g_mem_chunk_alloc</a> (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);
53
- <a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-alloc0" title="g_mem_chunk_alloc0 ()">g_mem_chunk_alloc0</a> (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);
54
- <span class="returnvalue">void</span> <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-free" title="g_mem_chunk_free ()">g_mem_chunk_free</a> (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>,
55
- <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>);
56
- <span class="returnvalue">void</span> <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-destroy" title="g_mem_chunk_destroy ()">g_mem_chunk_destroy</a> (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);
57
-
58
- #define <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-create" title="g_mem_chunk_create()">g_mem_chunk_create</a> (type,
59
- pre_alloc,
60
- alloc_type)
61
- #define <a class="link" href="glib-Memory-Chunks.html#g-chunk-new" title="g_chunk_new()">g_chunk_new</a> (type,
62
- chunk)
63
- #define <a class="link" href="glib-Memory-Chunks.html#g-chunk-new0" title="g_chunk_new0()">g_chunk_new0</a> (type,
64
- chunk)
65
- #define <a class="link" href="glib-Memory-Chunks.html#g-chunk-free" title="g_chunk_free()">g_chunk_free</a> (mem,
66
- mem_chunk)
67
-
68
- <span class="returnvalue">void</span> <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-reset" title="g_mem_chunk_reset ()">g_mem_chunk_reset</a> (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);
69
- <span class="returnvalue">void</span> <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-clean" title="g_mem_chunk_clean ()">g_mem_chunk_clean</a> (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);
70
- <span class="returnvalue">void</span> <a class="link" href="glib-Memory-Chunks.html#g-blow-chunks" title="g_blow_chunks ()">g_blow_chunks</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
71
-
72
- <span class="returnvalue">void</span> <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-info" title="g_mem_chunk_info ()">g_mem_chunk_info</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
73
- <span class="returnvalue">void</span> <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-print" title="g_mem_chunk_print ()">g_mem_chunk_print</a> (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);
74
- </pre>
75
- </div>
76
- <div class="refsect1">
77
- <a name="glib-Memory-Chunks.description"></a><h2>Description</h2>
78
- <p>
79
- Memory chunks provide an space-efficient way to allocate equal-sized
80
- pieces of memory, called atoms. However, due to the administrative
81
- overhead (in particular for <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS" title="G_ALLOC_AND_FREE"><span class="type">G_ALLOC_AND_FREE</span></a>, and when used from
82
- multiple threads), they are in practise often slower than direct use
83
- of <a class="link" href="glib-Memory-Allocation.html#g-malloc" title="g_malloc ()"><code class="function">g_malloc()</code></a>. Therefore, memory chunks have been deprecated in
84
- favor of the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice
85
- allocator</a>, which has been added in 2.10. All internal uses of
86
- memory chunks in GLib have been converted to the
87
- <code class="literal">g_slice</code> API.
88
- </p>
89
- <p>
90
- There are two types of memory chunks, <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-ONLY:CAPS" title="G_ALLOC_ONLY"><span class="type">G_ALLOC_ONLY</span></a>, and
91
- <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS" title="G_ALLOC_AND_FREE"><span class="type">G_ALLOC_AND_FREE</span></a>. </p>
92
- <div class="itemizedlist"><ul class="itemizedlist" type="disc">
93
- <li class="listitem"><p> <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-ONLY:CAPS" title="G_ALLOC_ONLY"><span class="type">G_ALLOC_ONLY</span></a>
94
- chunks only allow allocation of atoms. The atoms can never be freed
95
- individually. The memory chunk can only be free in its entirety.
96
- </p></li>
97
- <li class="listitem"><p> <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS" title="G_ALLOC_AND_FREE"><span class="type">G_ALLOC_AND_FREE</span></a> chunks do
98
- allow atoms to be freed individually. The disadvantage of this is
99
- that the memory chunk has to keep track of which atoms have been
100
- freed. This results in more memory being used and a slight
101
- degradation in performance. </p></li>
102
- </ul></div>
103
- <p>
104
- </p>
105
- <p>
106
- To create a memory chunk use <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-new" title="g_mem_chunk_new ()"><code class="function">g_mem_chunk_new()</code></a> or the convenience
107
- macro <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-create" title="g_mem_chunk_create()"><code class="function">g_mem_chunk_create()</code></a>.
108
- </p>
109
- <p>
110
- To allocate a new atom use <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-alloc" title="g_mem_chunk_alloc ()"><code class="function">g_mem_chunk_alloc()</code></a>,
111
- <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-alloc0" title="g_mem_chunk_alloc0 ()"><code class="function">g_mem_chunk_alloc0()</code></a>, or the convenience macros <a class="link" href="glib-Memory-Chunks.html#g-chunk-new" title="g_chunk_new()"><code class="function">g_chunk_new()</code></a> or
112
- <a class="link" href="glib-Memory-Chunks.html#g-chunk-new0" title="g_chunk_new0()"><code class="function">g_chunk_new0()</code></a>.
113
- </p>
114
- <p>
115
- To free an atom use <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-free" title="g_mem_chunk_free ()"><code class="function">g_mem_chunk_free()</code></a>, or the convenience macro
116
- <a class="link" href="glib-Memory-Chunks.html#g-chunk-free" title="g_chunk_free()"><code class="function">g_chunk_free()</code></a>. (Atoms can only be freed if the memory chunk is
117
- created with the type set to <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS" title="G_ALLOC_AND_FREE"><span class="type">G_ALLOC_AND_FREE</span></a>.)
118
- </p>
119
- <p>
120
- To free any blocks of memory which are no longer being used, use
121
- <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-clean" title="g_mem_chunk_clean ()"><code class="function">g_mem_chunk_clean()</code></a>. To clean all memory chunks, use <a class="link" href="glib-Memory-Chunks.html#g-blow-chunks" title="g_blow_chunks ()"><code class="function">g_blow_chunks()</code></a>.
122
- </p>
123
- <p>
124
- To reset the memory chunk, freeing all of the atoms, use
125
- <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-reset" title="g_mem_chunk_reset ()"><code class="function">g_mem_chunk_reset()</code></a>.
126
- </p>
127
- <p>
128
- To destroy a memory chunk, use <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-destroy" title="g_mem_chunk_destroy ()"><code class="function">g_mem_chunk_destroy()</code></a>.
129
- </p>
130
- <p>
131
- To help debug memory chunks, use <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-info" title="g_mem_chunk_info ()"><code class="function">g_mem_chunk_info()</code></a> and
132
- <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-print" title="g_mem_chunk_print ()"><code class="function">g_mem_chunk_print()</code></a>.
133
- </p>
134
- <p>
135
- </p>
136
- <div class="example">
137
- <a name="id851590"></a><p class="title"><b>Example 17. Using a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a></b></p>
138
- <div class="example-contents">
139
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
140
- <tbody>
141
- <tr>
142
- <td class="listing_lines" align="right"><pre>1
143
- 2
144
- 3
145
- 4
146
- 5
147
- 6
148
- 7
149
- 8
150
- 9
151
- 10
152
- 11
153
- 12
154
- 13
155
- 14
156
- 15
157
- 16
158
- 17
159
- 18
160
- 19
161
- 20
162
- 21
163
- 22
164
- 23
165
- 24</pre></td>
166
- <td class="listing_code"><pre class="programlisting"><span class="usertype">GMemChunk</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">mem_chunk</span><span class="symbol">;</span>
167
- <span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">mem</span><span class="symbol">[</span><span class="number">10000</span><span class="symbol">];</span>
168
- <span class="usertype">gint</span><span class="normal"> i</span><span class="symbol">;</span>
169
-
170
- <span class="comment">/* Create a GMemChunk with atoms 50 bytes long, and memory</span>
171
- <span class="comment"> blocks holding 100 bytes. Note that this means that only 2 atoms</span>
172
- <span class="comment"> fit into each memory block and so isn't very efficient. */</span>
173
- <span class="normal">mem_chunk </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="glib-Memory-Chunks.html#g-mem-chunk-new">g_mem_chunk_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"test mem chunk"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">50</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">,</span><span class="normal"> <a href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS">G_ALLOC_AND_FREE</a></span><span class="symbol">);</span>
174
- <span class="comment">/* Now allocate 10000 atoms. */</span>
175
- <span class="keyword">for</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">i </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span><span class="normal"> i </span><span class="symbol">&lt;</span><span class="normal"> </span><span class="number">10000</span><span class="symbol">;</span><span class="normal"> i</span><span class="symbol">++)</span>
176
- <span class="normal"> </span><span class="cbracket">{</span>
177
- <span class="normal"> mem</span><span class="symbol">[</span><span class="normal">i</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="glib-Memory-Chunks.html#g-chunk-new">g_chunk_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="glib-Basic-Types.html#gchar">gchar</a></span><span class="symbol">,</span><span class="normal"> mem_chunk</span><span class="symbol">);</span>
178
- <span class="normal"> </span><span class="comment">/* Fill in the atom memory with some junk. */</span>
179
- <span class="normal"> </span><span class="keyword">for</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">j </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span><span class="normal"> j </span><span class="symbol">&lt;</span><span class="normal"> </span><span class="number">50</span><span class="symbol">;</span><span class="normal"> j</span><span class="symbol">++)</span>
180
- <span class="normal"> mem</span><span class="symbol">[</span><span class="normal">i</span><span class="symbol">][</span><span class="normal">j</span><span class="symbol">]</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> i </span><span class="symbol">*</span><span class="normal"> j</span><span class="symbol">;</span>
181
- <span class="normal"> </span><span class="cbracket">}</span>
182
- <span class="comment">/* Now free all of the atoms. Note that since we are going to</span>
183
- <span class="comment"> destroy the GMemChunk, this wouldn't normally be used. */</span>
184
- <span class="keyword">for</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">i </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span><span class="normal"> i </span><span class="symbol">&lt;</span><span class="normal"> </span><span class="number">10000</span><span class="symbol">;</span><span class="normal"> i</span><span class="symbol">++)</span>
185
- <span class="normal"> </span><span class="cbracket">{</span>
186
- <span class="normal"> </span><span class="function"><a href="glib-Memory-Chunks.html#g-mem-chunk-free">g_mem_chunk_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mem_chunk</span><span class="symbol">,</span><span class="normal"> mem</span><span class="symbol">[</span><span class="normal">i</span><span class="symbol">]);</span>
187
- <span class="normal"> </span><span class="cbracket">}</span>
188
- <span class="comment">/* We are finished with the GMemChunk, so we destroy it. */</span>
189
- <span class="function"><a href="glib-Memory-Chunks.html#g-mem-chunk-destroy">g_mem_chunk_destroy</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mem_chunk</span><span class="symbol">);</span></pre></td>
190
- </tr>
191
- </tbody>
192
- </table>
193
- </div>
194
-
195
- </div>
196
- <p><br class="example-break">
197
- </p>
198
- <p>
199
- </p>
200
- <div class="example">
201
- <a name="id756690"></a><p class="title"><b>Example 18. Using a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> with data structures</b></p>
202
- <div class="example-contents">
203
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
204
- <tbody>
205
- <tr>
206
- <td class="listing_lines" align="right"><pre>1
207
- 2
208
- 3
209
- 4
210
- 5
211
- 6
212
- 7
213
- 8
214
- 9
215
- 10
216
- 11
217
- 12
218
- 13
219
- 14
220
- 15
221
- 16
222
- 17
223
- 18
224
- 19</pre></td>
225
- <td class="listing_code"><pre class="programlisting"><span class="usertype">GMemChunk</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">array_mem_chunk</span><span class="symbol">;</span>
226
- <span class="usertype">GRealArray</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">array</span><span class="symbol">;</span>
227
- <span class="comment">/* Create a GMemChunk to hold GRealArray structures, using</span>
228
- <span class="comment"> the g_mem_chunk_create() convenience macro. We want 1024 atoms in each</span>
229
- <span class="comment"> memory block, and we want to be able to free individual atoms. */</span>
230
- <span class="normal">array_mem_chunk </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="glib-Memory-Chunks.html#g-mem-chunk-create">g_mem_chunk_create</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">GRealArray</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1024</span><span class="symbol">,</span><span class="normal"> <a href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS">G_ALLOC_AND_FREE</a></span><span class="symbol">);</span>
231
- <span class="comment">/* Allocate one atom, using the g_chunk_new() convenience macro. */</span>
232
- <span class="normal">array </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="glib-Memory-Chunks.html#g-chunk-new">g_chunk_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">GRealArray</span><span class="symbol">,</span><span class="normal"> array_mem_chunk</span><span class="symbol">);</span>
233
- <span class="comment">/* We can now use array just like a normal pointer to a structure. */</span>
234
- <span class="normal">array</span><span class="symbol">-&gt;</span><span class="normal">data </span><span class="symbol">=</span><span class="normal"> <a href="glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
235
- <span class="normal">array</span><span class="symbol">-&gt;</span><span class="normal">len </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
236
- <span class="normal">array</span><span class="symbol">-&gt;</span><span class="normal">alloc </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
237
- <span class="normal">array</span><span class="symbol">-&gt;</span><span class="normal">zero_terminated </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">zero_terminated </span><span class="symbol">?</span><span class="normal"> </span><span class="number">1</span><span class="normal"> </span><span class="symbol">:</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
238
- <span class="normal">array</span><span class="symbol">-&gt;</span><span class="normal">clear </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">clear </span><span class="symbol">?</span><span class="normal"> </span><span class="number">1</span><span class="normal"> </span><span class="symbol">:</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
239
- <span class="normal">array</span><span class="symbol">-&gt;</span><span class="normal">elt_size </span><span class="symbol">=</span><span class="normal"> elt_size</span><span class="symbol">;</span>
240
- <span class="comment">/* We can free the element, so it can be reused. */</span>
241
- <span class="function"><a href="glib-Memory-Chunks.html#g-chunk-free">g_chunk_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">array</span><span class="symbol">,</span><span class="normal"> array_mem_chunk</span><span class="symbol">);</span>
242
- <span class="comment">/* We destroy the GMemChunk when we are finished with it. */</span>
243
- <span class="function"><a href="glib-Memory-Chunks.html#g-mem-chunk-destroy">g_mem_chunk_destroy</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">array_mem_chunk</span><span class="symbol">);</span></pre></td>
244
- </tr>
245
- </tbody>
246
- </table>
247
- </div>
248
-
249
- </div>
250
- <p><br class="example-break">
251
- </p>
252
- </div>
253
- <div class="refsect1">
254
- <a name="glib-Memory-Chunks.details"></a><h2>Details</h2>
255
- <div class="refsect2">
256
- <a name="GMemChunk"></a><h3>GMemChunk</h3>
257
- <pre class="programlisting">typedef struct _GMemChunk GMemChunk;</pre>
258
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
259
- <h3 class="title">Warning</h3>
260
- <p><code class="literal">GMemChunk</code> is deprecated and should not be used in newly-written code.</p>
261
- </div>
262
- <p>
263
- The <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> struct is an opaque data structure representing a
264
- memory chunk. It should be accessed only through the use of the
265
- following functions.
266
- </p>
267
- </div>
268
- <hr>
269
- <div class="refsect2">
270
- <a name="G-ALLOC-AND-FREE:CAPS"></a><h3>G_ALLOC_AND_FREE</h3>
271
- <pre class="programlisting">#define G_ALLOC_AND_FREE 2
272
- </pre>
273
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
274
- <h3 class="title">Warning</h3>
275
- <p><code class="literal">G_ALLOC_AND_FREE</code> is deprecated and should not be used in newly-written code.</p>
276
- </div>
277
- <p>
278
- Specifies the type of a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. Used in <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-new" title="g_mem_chunk_new ()"><code class="function">g_mem_chunk_new()</code></a> and
279
- <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-create" title="g_mem_chunk_create()"><code class="function">g_mem_chunk_create()</code></a> to specify that atoms will be freed
280
- individually.
281
- </p>
282
- </div>
283
- <hr>
284
- <div class="refsect2">
285
- <a name="G-ALLOC-ONLY:CAPS"></a><h3>G_ALLOC_ONLY</h3>
286
- <pre class="programlisting">#define G_ALLOC_ONLY 1
287
- </pre>
288
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
289
- <h3 class="title">Warning</h3>
290
- <p><code class="literal">G_ALLOC_ONLY</code> is deprecated and should not be used in newly-written code.</p>
291
- </div>
292
- <p>
293
- Specifies the type of a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. Used in <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-new" title="g_mem_chunk_new ()"><code class="function">g_mem_chunk_new()</code></a> and
294
- <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-create" title="g_mem_chunk_create()"><code class="function">g_mem_chunk_create()</code></a> to specify that atoms will never be freed
295
- individually.
296
- </p>
297
- </div>
298
- <hr>
299
- <div class="refsect2">
300
- <a name="g-mem-chunk-new"></a><h3>g_mem_chunk_new ()</h3>
301
- <pre class="programlisting"><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="returnvalue">GMemChunk</span></a> * g_mem_chunk_new (<em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
302
- <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> atom_size</code></em>,
303
- <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> area_size</code></em>,
304
- <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> type</code></em>);</pre>
305
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
306
- <h3 class="title">Warning</h3>
307
- <p><code class="literal">g_mem_chunk_new</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice
308
- allocator</a> instead</p>
309
- </div>
310
- <p>
311
- Creates a new <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.
312
- </p>
313
- <div class="variablelist"><table border="0">
314
- <col align="left" valign="top">
315
- <tbody>
316
- <tr>
317
- <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
318
- <td>a string to identify the <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. It is not copied so it
319
- should be valid for the lifetime of the <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. It is
320
- only used in <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-print" title="g_mem_chunk_print ()"><code class="function">g_mem_chunk_print()</code></a>, which is used for debugging.</td>
321
- </tr>
322
- <tr>
323
- <td><p><span class="term"><em class="parameter"><code>atom_size</code></em> :</span></p></td>
324
- <td>the size, in bytes, of each element in the <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
325
- </tr>
326
- <tr>
327
- <td><p><span class="term"><em class="parameter"><code>area_size</code></em> :</span></p></td>
328
- <td>the size, in bytes, of each block of memory allocated to
329
- contain the atoms.</td>
330
- </tr>
331
- <tr>
332
- <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
333
- <td>the type of the <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS" title="G_ALLOC_AND_FREE"><span class="type">G_ALLOC_AND_FREE</span></a> is used if the
334
- atoms will be freed individually. <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-ONLY:CAPS" title="G_ALLOC_ONLY"><span class="type">G_ALLOC_ONLY</span></a> should be
335
- used if atoms will never be freed individually.
336
- <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-ONLY:CAPS" title="G_ALLOC_ONLY"><span class="type">G_ALLOC_ONLY</span></a> is quicker, since it does not need to track
337
- free atoms, but it obviously wastes memory if you no longer
338
- need many of the atoms.</td>
339
- </tr>
340
- <tr>
341
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
342
- <td>the new <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
343
- </tr>
344
- </tbody>
345
- </table></div>
346
- </div>
347
- <hr>
348
- <div class="refsect2">
349
- <a name="g-mem-chunk-alloc"></a><h3>g_mem_chunk_alloc ()</h3>
350
- <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_mem_chunk_alloc (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);</pre>
351
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
352
- <h3 class="title">Warning</h3>
353
- <p><code class="literal">g_mem_chunk_alloc</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use <a class="link" href="glib-Memory-Slices.html#g-slice-alloc" title="g_slice_alloc ()"><code class="function">g_slice_alloc()</code></a> instead</p>
354
- </div>
355
- <p>
356
- Allocates an atom of memory from a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.
357
- </p>
358
- <div class="variablelist"><table border="0">
359
- <col align="left" valign="top">
360
- <tbody>
361
- <tr>
362
- <td><p><span class="term"><em class="parameter"><code>mem_chunk</code></em> :</span></p></td>
363
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
364
- </tr>
365
- <tr>
366
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
367
- <td>a pointer to the allocated atom.</td>
368
- </tr>
369
- </tbody>
370
- </table></div>
371
- </div>
372
- <hr>
373
- <div class="refsect2">
374
- <a name="g-mem-chunk-alloc0"></a><h3>g_mem_chunk_alloc0 ()</h3>
375
- <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="returnvalue">gpointer</span></a> g_mem_chunk_alloc0 (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);</pre>
376
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
377
- <h3 class="title">Warning</h3>
378
- <p><code class="literal">g_mem_chunk_alloc0</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use <a class="link" href="glib-Memory-Slices.html#g-slice-alloc0" title="g_slice_alloc0 ()"><code class="function">g_slice_alloc0()</code></a> instead</p>
379
- </div>
380
- <p>
381
- Allocates an atom of memory from a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>, setting the memory to
382
- 0.
383
- </p>
384
- <div class="variablelist"><table border="0">
385
- <col align="left" valign="top">
386
- <tbody>
387
- <tr>
388
- <td><p><span class="term"><em class="parameter"><code>mem_chunk</code></em> :</span></p></td>
389
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
390
- </tr>
391
- <tr>
392
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
393
- <td>a pointer to the allocated atom.</td>
394
- </tr>
395
- </tbody>
396
- </table></div>
397
- </div>
398
- <hr>
399
- <div class="refsect2">
400
- <a name="g-mem-chunk-free"></a><h3>g_mem_chunk_free ()</h3>
401
- <pre class="programlisting"><span class="returnvalue">void</span> g_mem_chunk_free (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>,
402
- <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gpointer" title="gpointer"><span class="type">gpointer</span></a> mem</code></em>);</pre>
403
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
404
- <h3 class="title">Warning</h3>
405
- <p><code class="literal">g_mem_chunk_free</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use <a class="link" href="glib-Memory-Slices.html#g-slice-free1" title="g_slice_free1 ()"><code class="function">g_slice_free1()</code></a> instead</p>
406
- </div>
407
- <p>
408
- Frees an atom in a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. This should only be called if the
409
- <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> was created with <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS" title="G_ALLOC_AND_FREE"><span class="type">G_ALLOC_AND_FREE</span></a>. Otherwise it will
410
- simply return.
411
- </p>
412
- <div class="variablelist"><table border="0">
413
- <col align="left" valign="top">
414
- <tbody>
415
- <tr>
416
- <td><p><span class="term"><em class="parameter"><code>mem_chunk</code></em> :</span></p></td>
417
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
418
- </tr>
419
- <tr>
420
- <td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
421
- <td>a pointer to the atom to free.</td>
422
- </tr>
423
- </tbody>
424
- </table></div>
425
- </div>
426
- <hr>
427
- <div class="refsect2">
428
- <a name="g-mem-chunk-destroy"></a><h3>g_mem_chunk_destroy ()</h3>
429
- <pre class="programlisting"><span class="returnvalue">void</span> g_mem_chunk_destroy (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);</pre>
430
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
431
- <h3 class="title">Warning</h3>
432
- <p><code class="literal">g_mem_chunk_destroy</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice
433
- allocator</a> instead</p>
434
- </div>
435
- <p>
436
- Frees all of the memory allocated for a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.
437
- </p>
438
- <div class="variablelist"><table border="0">
439
- <col align="left" valign="top">
440
- <tbody><tr>
441
- <td><p><span class="term"><em class="parameter"><code>mem_chunk</code></em> :</span></p></td>
442
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
443
- </tr></tbody>
444
- </table></div>
445
- </div>
446
- <hr>
447
- <div class="refsect2">
448
- <a name="g-mem-chunk-create"></a><h3>g_mem_chunk_create()</h3>
449
- <pre class="programlisting">#define g_mem_chunk_create(type, pre_alloc, alloc_type)</pre>
450
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
451
- <h3 class="title">Warning</h3>
452
- <p><code class="literal">g_mem_chunk_create</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice
453
- allocator</a> instead</p>
454
- </div>
455
- <p>
456
- A convenience macro for creating a new <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. It calls
457
- <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-new" title="g_mem_chunk_new ()"><code class="function">g_mem_chunk_new()</code></a>, using the given type to create the <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>
458
- name. The atom size is determined using
459
- <code class="function"><code class="function">sizeof()</code></code>, and the area size is calculated by
460
- multiplying the <em class="parameter"><code>pre_alloc</code></em> parameter with the atom size.
461
- </p>
462
- <div class="variablelist"><table border="0">
463
- <col align="left" valign="top">
464
- <tbody>
465
- <tr>
466
- <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
467
- <td>the type of the atoms, typically a structure name.</td>
468
- </tr>
469
- <tr>
470
- <td><p><span class="term"><em class="parameter"><code>pre_alloc</code></em> :</span></p></td>
471
- <td>the number of atoms to store in each block of memory.</td>
472
- </tr>
473
- <tr>
474
- <td><p><span class="term"><em class="parameter"><code>alloc_type</code></em> :</span></p></td>
475
- <td>the type of the <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-AND-FREE:CAPS" title="G_ALLOC_AND_FREE"><span class="type">G_ALLOC_AND_FREE</span></a> is used
476
- if the atoms will be freed individually. <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-ONLY:CAPS" title="G_ALLOC_ONLY"><span class="type">G_ALLOC_ONLY</span></a>
477
- should be used if atoms will never be freed
478
- individually. <a class="link" href="glib-Memory-Chunks.html#G-ALLOC-ONLY:CAPS" title="G_ALLOC_ONLY"><span class="type">G_ALLOC_ONLY</span></a> is quicker, since it does
479
- not need to track free atoms, but it obviously wastes
480
- memory if you no longer need many of the atoms.</td>
481
- </tr>
482
- <tr>
483
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
484
- <td>the new <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
485
- </tr>
486
- </tbody>
487
- </table></div>
488
- </div>
489
- <hr>
490
- <div class="refsect2">
491
- <a name="g-chunk-new"></a><h3>g_chunk_new()</h3>
492
- <pre class="programlisting">#define g_chunk_new(type, chunk)</pre>
493
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
494
- <h3 class="title">Warning</h3>
495
- <p><code class="literal">g_chunk_new</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use <a class="link" href="glib-Memory-Slices.html#g-slice-new" title="g_slice_new()"><code class="function">g_slice_new()</code></a> instead</p>
496
- </div>
497
- <p>
498
- A convenience macro to allocate an atom of memory from a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.
499
- It calls <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-alloc" title="g_mem_chunk_alloc ()"><code class="function">g_mem_chunk_alloc()</code></a> and casts the returned atom to a
500
- pointer to the given type, avoiding a type cast in the source code.
501
- </p>
502
- <div class="variablelist"><table border="0">
503
- <col align="left" valign="top">
504
- <tbody>
505
- <tr>
506
- <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
507
- <td>the type of the <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> atoms, typically a structure name.</td>
508
- </tr>
509
- <tr>
510
- <td><p><span class="term"><em class="parameter"><code>chunk</code></em> :</span></p></td>
511
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
512
- </tr>
513
- <tr>
514
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
515
- <td>a pointer to the allocated atom, cast to a pointer to
516
- <em class="parameter"><code>type</code></em>.</td>
517
- </tr>
518
- </tbody>
519
- </table></div>
520
- </div>
521
- <hr>
522
- <div class="refsect2">
523
- <a name="g-chunk-new0"></a><h3>g_chunk_new0()</h3>
524
- <pre class="programlisting">#define g_chunk_new0(type, chunk)</pre>
525
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
526
- <h3 class="title">Warning</h3>
527
- <p><code class="literal">g_chunk_new0</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use <a class="link" href="glib-Memory-Slices.html#g-slice-new0" title="g_slice_new0()"><code class="function">g_slice_new0()</code></a> instead</p>
528
- </div>
529
- <p>
530
- A convenience macro to allocate an atom of memory from a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.
531
- It calls <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-alloc0" title="g_mem_chunk_alloc0 ()"><code class="function">g_mem_chunk_alloc0()</code></a> and casts the returned atom to a
532
- pointer to the given type, avoiding a type cast in the source code.
533
- </p>
534
- <div class="variablelist"><table border="0">
535
- <col align="left" valign="top">
536
- <tbody>
537
- <tr>
538
- <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
539
- <td>the type of the <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> atoms, typically a structure name.</td>
540
- </tr>
541
- <tr>
542
- <td><p><span class="term"><em class="parameter"><code>chunk</code></em> :</span></p></td>
543
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
544
- </tr>
545
- <tr>
546
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
547
- <td>a pointer to the allocated atom, cast to a pointer to
548
- <em class="parameter"><code>type</code></em>.</td>
549
- </tr>
550
- </tbody>
551
- </table></div>
552
- </div>
553
- <hr>
554
- <div class="refsect2">
555
- <a name="g-chunk-free"></a><h3>g_chunk_free()</h3>
556
- <pre class="programlisting">#define g_chunk_free(mem, mem_chunk)</pre>
557
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
558
- <h3 class="title">Warning</h3>
559
- <p><code class="literal">g_chunk_free</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use <a class="link" href="glib-Memory-Slices.html#g-slice-free" title="g_slice_free()"><code class="function">g_slice_free()</code></a> instead</p>
560
- </div>
561
- <p>
562
- A convenience macro to free an atom of memory from a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. It
563
- simply switches the arguments and calls <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-free" title="g_mem_chunk_free ()"><code class="function">g_mem_chunk_free()</code></a> It is
564
- included simply to complement the other convenience macros,
565
- <a class="link" href="glib-Memory-Chunks.html#g-chunk-new" title="g_chunk_new()"><code class="function">g_chunk_new()</code></a> and <a class="link" href="glib-Memory-Chunks.html#g-chunk-new0" title="g_chunk_new0()"><code class="function">g_chunk_new0()</code></a>.
566
- </p>
567
- <div class="variablelist"><table border="0">
568
- <col align="left" valign="top">
569
- <tbody>
570
- <tr>
571
- <td><p><span class="term"><em class="parameter"><code>mem</code></em> :</span></p></td>
572
- <td>a pointer to the atom to be freed.</td>
573
- </tr>
574
- <tr>
575
- <td><p><span class="term"><em class="parameter"><code>mem_chunk</code></em> :</span></p></td>
576
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
577
- </tr>
578
- </tbody>
579
- </table></div>
580
- </div>
581
- <hr>
582
- <div class="refsect2">
583
- <a name="g-mem-chunk-reset"></a><h3>g_mem_chunk_reset ()</h3>
584
- <pre class="programlisting"><span class="returnvalue">void</span> g_mem_chunk_reset (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);</pre>
585
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
586
- <h3 class="title">Warning</h3>
587
- <p><code class="literal">g_mem_chunk_reset</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice
588
- allocator</a> instead</p>
589
- </div>
590
- <p>
591
- Resets a GMemChunk to its initial state. It frees all of the
592
- currently allocated blocks of memory.
593
- </p>
594
- <div class="variablelist"><table border="0">
595
- <col align="left" valign="top">
596
- <tbody><tr>
597
- <td><p><span class="term"><em class="parameter"><code>mem_chunk</code></em> :</span></p></td>
598
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
599
- </tr></tbody>
600
- </table></div>
601
- </div>
602
- <hr>
603
- <div class="refsect2">
604
- <a name="g-mem-chunk-clean"></a><h3>g_mem_chunk_clean ()</h3>
605
- <pre class="programlisting"><span class="returnvalue">void</span> g_mem_chunk_clean (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);</pre>
606
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
607
- <h3 class="title">Warning</h3>
608
- <p><code class="literal">g_mem_chunk_clean</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice
609
- allocator</a> instead</p>
610
- </div>
611
- <p>
612
- Frees any blocks in a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> which are no longer being used.
613
- </p>
614
- <div class="variablelist"><table border="0">
615
- <col align="left" valign="top">
616
- <tbody><tr>
617
- <td><p><span class="term"><em class="parameter"><code>mem_chunk</code></em> :</span></p></td>
618
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
619
- </tr></tbody>
620
- </table></div>
621
- </div>
622
- <hr>
623
- <div class="refsect2">
624
- <a name="g-blow-chunks"></a><h3>g_blow_chunks ()</h3>
625
- <pre class="programlisting"><span class="returnvalue">void</span> g_blow_chunks (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
626
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
627
- <h3 class="title">Warning</h3>
628
- <p><code class="literal">g_blow_chunks</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice
629
- allocator</a> instead</p>
630
- </div>
631
- <p>
632
- Calls <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-clean" title="g_mem_chunk_clean ()"><code class="function">g_mem_chunk_clean()</code></a> on all <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> objects.
633
- </p>
634
- </div>
635
- <hr>
636
- <div class="refsect2">
637
- <a name="g-mem-chunk-info"></a><h3>g_mem_chunk_info ()</h3>
638
- <pre class="programlisting"><span class="returnvalue">void</span> g_mem_chunk_info (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
639
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
640
- <h3 class="title">Warning</h3>
641
- <p><code class="literal">g_mem_chunk_info</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice
642
- allocator</a> instead</p>
643
- </div>
644
- <p>
645
- Outputs debugging information for all <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> objects currently
646
- in use. It outputs the number of <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> objects currently
647
- allocated, and calls <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-print" title="g_mem_chunk_print ()"><code class="function">g_mem_chunk_print()</code></a> to output information on
648
- each one.
649
- </p>
650
- </div>
651
- <hr>
652
- <div class="refsect2">
653
- <a name="g-mem-chunk-print"></a><h3>g_mem_chunk_print ()</h3>
654
- <pre class="programlisting"><span class="returnvalue">void</span> g_mem_chunk_print (<em class="parameter"><code><a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> *mem_chunk</code></em>);</pre>
655
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
656
- <h3 class="title">Warning</h3>
657
- <p><code class="literal">g_mem_chunk_print</code> has been deprecated since version 2.10 and should not be used in newly-written code. Use the <a class="link" href="glib-Memory-Slices.html" title="Memory Slices">slice
658
- allocator</a> instead</p>
659
- </div>
660
- <p>
661
- Outputs debugging information for a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>. It outputs the name
662
- of the <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a> (set with <a class="link" href="glib-Memory-Chunks.html#g-mem-chunk-new" title="g_mem_chunk_new ()"><code class="function">g_mem_chunk_new()</code></a>), the number of bytes
663
- used, and the number of blocks of memory allocated.
664
- </p>
665
- <div class="variablelist"><table border="0">
666
- <col align="left" valign="top">
667
- <tbody><tr>
668
- <td><p><span class="term"><em class="parameter"><code>mem_chunk</code></em> :</span></p></td>
669
- <td>a <a class="link" href="glib-Memory-Chunks.html#GMemChunk" title="GMemChunk"><span class="type">GMemChunk</span></a>.</td>
670
- </tr></tbody>
671
- </table></div>
672
- </div>
673
- </div>
674
- </div>
675
- <div class="footer">
676
- <hr>
677
- Generated by GTK-Doc V1.17</div>
678
- </body>
679
- </html>