glib2 1.1.8-x86-mingw32 → 1.1.9-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1810) hide show
  1. data/Rakefile +51 -9
  2. data/ext/glib2/extconf.rb +2 -2
  3. data/ext/glib2/rbglib.h +3 -2
  4. data/ext/glib2/rbglib_win32.c +0 -17
  5. data/ext/glib2/rbgobj_type.c +10 -5
  6. data/ext/glib2/rbgobject.h +3 -1
  7. data/lib/1.8/glib2.so +0 -0
  8. data/lib/1.9/glib2.so +0 -0
  9. data/lib/gnome2-win32-binary-build-task.rb +42 -15
  10. data/vendor/local/bin/certtool.exe +0 -0
  11. data/vendor/local/bin/danetool.exe +0 -0
  12. data/vendor/local/bin/gdbus-codegen +41 -0
  13. data/vendor/local/bin/gdbus.exe +0 -0
  14. data/vendor/local/bin/gio-querymodules.exe +0 -0
  15. data/vendor/local/bin/glib-compile-resources.exe +0 -0
  16. data/vendor/local/bin/glib-compile-schemas.exe +0 -0
  17. data/vendor/local/bin/glib-genmarshal.exe +0 -0
  18. data/vendor/local/bin/glib-gettextize +3 -3
  19. data/vendor/local/bin/glib-mkenums +41 -14
  20. data/vendor/local/bin/gnutls-cli-debug.exe +0 -0
  21. data/vendor/local/bin/gnutls-cli.exe +0 -0
  22. data/vendor/local/bin/gnutls-serv.exe +0 -0
  23. data/vendor/local/bin/gobject-query.exe +0 -0
  24. data/vendor/local/bin/gresource.exe +0 -0
  25. data/vendor/local/bin/gsettings.exe +0 -0
  26. data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
  27. data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
  28. data/vendor/local/bin/libffi-5.dll +0 -0
  29. data/vendor/local/bin/libgio-2.0-0.dll +0 -0
  30. data/vendor/local/bin/libglib-2.0-0.dll +0 -0
  31. data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
  32. data/vendor/local/bin/libgmp-10.dll +0 -0
  33. data/vendor/local/bin/libgnutls-28.def +807 -0
  34. data/vendor/local/bin/libgnutls-28.dll +0 -0
  35. data/vendor/local/bin/libgnutls-openssl-27.dll +0 -0
  36. data/vendor/local/bin/libgnutls-openssl-28.def +304 -0
  37. data/vendor/local/bin/libgnutlsxx-28.dll +0 -0
  38. data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
  39. data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
  40. data/vendor/local/bin/libhogweed-2-2.dll +0 -0
  41. data/vendor/local/bin/libnettle-4-4.dll +0 -0
  42. data/vendor/local/bin/nettle-hash.exe +0 -0
  43. data/vendor/local/bin/nettle-lfib-stream.exe +0 -0
  44. data/vendor/local/bin/ocsptool.exe +0 -0
  45. data/vendor/local/bin/pkcs1-conv.exe +0 -0
  46. data/vendor/local/bin/psktool.exe +0 -0
  47. data/vendor/local/bin/sexp-conv.exe +0 -0
  48. data/vendor/local/bin/srptool.exe +0 -0
  49. data/vendor/local/bin/zlib1.dll +0 -0
  50. data/vendor/local/include/glib-2.0/gio/gaction.h +5 -18
  51. data/vendor/local/include/glib-2.0/gio/gactiongroup.h +19 -21
  52. data/vendor/local/include/glib-2.0/gio/gactiongroupexporter.h +47 -0
  53. data/vendor/local/include/glib-2.0/gio/gactionmap.h +97 -0
  54. data/vendor/local/include/glib-2.0/gio/gappinfo.h +48 -30
  55. data/vendor/local/include/glib-2.0/gio/gapplication.h +24 -31
  56. data/vendor/local/include/glib-2.0/gio/gapplicationcommandline.h +4 -16
  57. data/vendor/local/include/glib-2.0/gio/gasyncresult.h +11 -0
  58. data/vendor/local/include/glib-2.0/gio/gcontenttype.h +5 -0
  59. data/vendor/local/include/glib-2.0/gio/gdatainputstream.h +10 -0
  60. data/vendor/local/include/glib-2.0/gio/gdbusactiongroup.h +55 -0
  61. data/vendor/local/include/glib-2.0/gio/gdbusauthobserver.h +4 -0
  62. data/vendor/local/include/glib-2.0/gio/gdbusconnection.h +37 -0
  63. data/vendor/local/include/glib-2.0/gio/gdbusinterface.h +79 -0
  64. data/vendor/local/include/glib-2.0/gio/gdbusinterfaceskeleton.h +115 -0
  65. data/vendor/local/include/glib-2.0/gio/gdbusintrospection.h +25 -15
  66. data/vendor/local/include/glib-2.0/gio/gdbusmenumodel.h +45 -0
  67. data/vendor/local/include/glib-2.0/gio/gdbusmethodinvocation.h +5 -0
  68. data/vendor/local/include/glib-2.0/gio/gdbusnamewatching.h +6 -1
  69. data/vendor/local/include/glib-2.0/gio/gdbusobject.h +76 -0
  70. data/vendor/local/include/glib-2.0/gio/gdbusobjectmanager.h +91 -0
  71. data/vendor/local/include/glib-2.0/gio/gdbusobjectmanagerclient.h +137 -0
  72. data/vendor/local/include/glib-2.0/gio/gdbusobjectmanagerserver.h +87 -0
  73. data/vendor/local/include/glib-2.0/gio/gdbusobjectproxy.h +78 -0
  74. data/vendor/local/include/glib-2.0/gio/gdbusobjectskeleton.h +91 -0
  75. data/vendor/local/include/glib-2.0/gio/gdbusproxy.h +23 -0
  76. data/vendor/local/include/glib-2.0/gio/gdbusutils.h +5 -0
  77. data/vendor/local/include/glib-2.0/gio/gdrive.h +17 -6
  78. data/vendor/local/include/glib-2.0/gio/gfile.h +48 -20
  79. data/vendor/local/include/glib-2.0/gio/gfileattribute.h +3 -1
  80. data/vendor/local/include/glib-2.0/gio/gfileenumerator.h +3 -0
  81. data/vendor/local/include/glib-2.0/gio/gfileinfo.h +36 -3
  82. data/vendor/local/include/glib-2.0/gio/ginetaddress.h +3 -0
  83. data/vendor/local/include/glib-2.0/gio/ginetaddressmask.h +87 -0
  84. data/vendor/local/include/glib-2.0/gio/ginetsocketaddress.h +9 -5
  85. data/vendor/local/include/glib-2.0/gio/ginputstream.h +16 -0
  86. data/vendor/local/include/glib-2.0/gio/gio.h +30 -3
  87. data/vendor/local/include/glib-2.0/gio/gioenums.h +286 -14
  88. data/vendor/local/include/glib-2.0/gio/gioenumtypes.h +26 -0
  89. data/vendor/local/include/glib-2.0/gio/giomodule.h +18 -1
  90. data/vendor/local/include/glib-2.0/gio/gioscheduler.h +4 -0
  91. data/vendor/local/include/glib-2.0/gio/giotypes.h +60 -10
  92. data/vendor/local/include/glib-2.0/gio/gmemoryinputstream.h +6 -0
  93. data/vendor/local/include/glib-2.0/gio/gmemoryoutputstream.h +5 -0
  94. data/vendor/local/include/glib-2.0/gio/gmenu.h +177 -0
  95. data/vendor/local/include/glib-2.0/gio/gmenuexporter.h +42 -0
  96. data/vendor/local/include/glib-2.0/gio/gmenumodel.h +214 -0
  97. data/vendor/local/include/glib-2.0/gio/gmount.h +16 -4
  98. data/vendor/local/include/glib-2.0/gio/gmountoperation.h +5 -1
  99. data/vendor/local/include/glib-2.0/gio/gnetworking.h +83 -0
  100. data/vendor/local/include/glib-2.0/gio/gnetworkmonitor.h +91 -0
  101. data/vendor/local/include/glib-2.0/gio/goutputstream.h +16 -0
  102. data/vendor/local/include/glib-2.0/gio/gpollableinputstream.h +6 -5
  103. data/vendor/local/include/glib-2.0/gio/gpollableoutputstream.h +6 -2
  104. data/vendor/local/include/glib-2.0/gio/gpollableutils.h +65 -0
  105. data/vendor/local/include/glib-2.0/gio/gproxy.h +2 -1
  106. data/vendor/local/include/glib-2.0/gio/gproxyaddress.h +5 -0
  107. data/vendor/local/include/glib-2.0/gio/gproxyresolver.h +0 -5
  108. data/vendor/local/include/glib-2.0/gio/gremoteactiongroup.h +77 -0
  109. data/vendor/local/include/glib-2.0/gio/gresolver.h +35 -3
  110. data/vendor/local/include/glib-2.0/gio/gresource.h +131 -0
  111. data/vendor/local/include/glib-2.0/gio/gseekable.h +1 -1
  112. data/vendor/local/include/glib-2.0/gio/gsettings.h +26 -9
  113. data/vendor/local/include/glib-2.0/gio/gsettingsschema.h +65 -0
  114. data/vendor/local/include/glib-2.0/gio/gsimpleaction.h +4 -42
  115. data/vendor/local/include/glib-2.0/gio/gsimpleactiongroup.h +7 -0
  116. data/vendor/local/include/glib-2.0/gio/gsimpleasyncresult.h +3 -0
  117. data/vendor/local/include/glib-2.0/gio/gsocket.h +57 -0
  118. data/vendor/local/include/glib-2.0/gio/gsocketclient.h +5 -1
  119. data/vendor/local/include/glib-2.0/gio/gsocketconnection.h +19 -0
  120. data/vendor/local/include/glib-2.0/gio/gtask.h +160 -0
  121. data/vendor/local/include/glib-2.0/gio/gtestdbus.h +74 -0
  122. data/vendor/local/include/glib-2.0/gio/gtlsbackend.h +18 -20
  123. data/vendor/local/include/glib-2.0/gio/gtlscertificate.h +4 -0
  124. data/vendor/local/include/glib-2.0/gio/gtlsclientconnection.h +0 -8
  125. data/vendor/local/include/glib-2.0/gio/gtlsconnection.h +12 -10
  126. data/vendor/local/include/glib-2.0/gio/gtlsdatabase.h +235 -0
  127. data/vendor/local/include/glib-2.0/gio/gtlsfiledatabase.h +56 -0
  128. data/vendor/local/include/glib-2.0/gio/gtlsinteraction.h +102 -0
  129. data/vendor/local/include/glib-2.0/gio/gtlspassword.h +101 -0
  130. data/vendor/local/include/glib-2.0/gio/gvolume.h +36 -8
  131. data/vendor/local/include/glib-2.0/gio/gvolumemonitor.h +1 -2
  132. data/vendor/local/include/glib-2.0/glib-object.h +14 -14
  133. data/vendor/local/include/glib-2.0/glib-unix.h +90 -0
  134. data/vendor/local/include/glib-2.0/glib.h +16 -3
  135. data/vendor/local/include/glib-2.0/glib/deprecated/gallocator.h +90 -0
  136. data/vendor/local/include/glib-2.0/glib/deprecated/gcache.h +73 -0
  137. data/vendor/local/include/glib-2.0/glib/deprecated/gcompletion.h +85 -0
  138. data/vendor/local/include/glib-2.0/glib/deprecated/gmain.h +138 -0
  139. data/vendor/local/include/glib-2.0/glib/deprecated/grel.h +107 -0
  140. data/vendor/local/include/glib-2.0/glib/deprecated/gthread.h +286 -0
  141. data/vendor/local/include/glib-2.0/glib/galloca.h +1 -1
  142. data/vendor/local/include/glib-2.0/glib/garray.h +9 -1
  143. data/vendor/local/include/glib-2.0/glib/gasyncqueue.h +30 -59
  144. data/vendor/local/include/glib-2.0/glib/gatomic.h +197 -82
  145. data/vendor/local/include/glib-2.0/glib/gbacktrace.h +8 -12
  146. data/vendor/local/include/glib-2.0/glib/gbase64.h +1 -1
  147. data/vendor/local/include/glib-2.0/glib/gbitlock.h +30 -1
  148. data/vendor/local/include/glib-2.0/glib/gbookmarkfile.h +1 -1
  149. data/vendor/local/include/glib-2.0/glib/gbytes.h +78 -0
  150. data/vendor/local/include/glib-2.0/glib/gcharset.h +40 -0
  151. data/vendor/local/include/glib-2.0/glib/gchecksum.h +10 -3
  152. data/vendor/local/include/glib-2.0/glib/gconvert.h +26 -11
  153. data/vendor/local/include/glib-2.0/glib/gdataset.h +19 -4
  154. data/vendor/local/include/glib-2.0/glib/gdate.h +2 -1
  155. data/vendor/local/include/glib-2.0/glib/gdatetime.h +1 -1
  156. data/vendor/local/include/glib-2.0/glib/gdir.h +12 -10
  157. data/vendor/local/include/glib-2.0/glib/genviron.h +69 -0
  158. data/vendor/local/include/glib-2.0/glib/gerror.h +10 -1
  159. data/vendor/local/include/glib-2.0/glib/gfileutils.h +94 -40
  160. data/vendor/local/include/glib-2.0/glib/ggettext.h +59 -0
  161. data/vendor/local/include/glib-2.0/glib/ghash.h +63 -82
  162. data/vendor/local/include/glib-2.0/glib/ghmac.h +80 -0
  163. data/vendor/local/include/glib-2.0/glib/ghook.h +1 -1
  164. data/vendor/local/include/glib-2.0/glib/giochannel.h +38 -20
  165. data/vendor/local/include/glib-2.0/glib/gkeyfile.h +3 -1
  166. data/vendor/local/include/glib-2.0/glib/glist.h +8 -6
  167. data/vendor/local/include/glib-2.0/glib/gmacros.h +66 -7
  168. data/vendor/local/include/glib-2.0/glib/gmain.h +53 -112
  169. data/vendor/local/include/glib-2.0/glib/gmappedfile.h +8 -3
  170. data/vendor/local/include/glib-2.0/glib/gmarkup.h +3 -3
  171. data/vendor/local/include/glib-2.0/glib/gmem.h +25 -49
  172. data/vendor/local/include/glib-2.0/glib/gmessages.h +76 -15
  173. data/vendor/local/include/glib-2.0/glib/gnode.h +14 -6
  174. data/vendor/local/include/glib-2.0/glib/goption.h +3 -3
  175. data/vendor/local/include/glib-2.0/glib/gpattern.h +1 -1
  176. data/vendor/local/include/glib-2.0/glib/gpoll.h +3 -0
  177. data/vendor/local/include/glib-2.0/glib/gprimes.h +1 -1
  178. data/vendor/local/include/glib-2.0/glib/gqsort.h +1 -1
  179. data/vendor/local/include/glib-2.0/glib/gquark.h +16 -4
  180. data/vendor/local/include/glib-2.0/glib/gqueue.h +62 -37
  181. data/vendor/local/include/glib-2.0/glib/grand.h +1 -1
  182. data/vendor/local/include/glib-2.0/glib/gregex.h +116 -26
  183. data/vendor/local/include/glib-2.0/glib/gscanner.h +9 -3
  184. data/vendor/local/include/glib-2.0/glib/gsequence.h +1 -1
  185. data/vendor/local/include/glib-2.0/glib/gshell.h +1 -1
  186. data/vendor/local/include/glib-2.0/glib/gslice.h +9 -1
  187. data/vendor/local/include/glib-2.0/glib/gslist.h +7 -6
  188. data/vendor/local/include/glib-2.0/glib/gspawn.h +164 -13
  189. data/vendor/local/include/glib-2.0/glib/gstdio.h +3 -1
  190. data/vendor/local/include/glib-2.0/glib/gstrfuncs.h +15 -37
  191. data/vendor/local/include/glib-2.0/glib/gstring.h +84 -104
  192. data/vendor/local/include/glib-2.0/glib/gstringchunk.h +53 -0
  193. data/vendor/local/include/glib-2.0/glib/gtestutils.h +23 -1
  194. data/vendor/local/include/glib-2.0/glib/gthread.h +172 -325
  195. data/vendor/local/include/glib-2.0/glib/gthreadpool.h +26 -60
  196. data/vendor/local/include/glib-2.0/glib/gtimer.h +1 -1
  197. data/vendor/local/include/glib-2.0/glib/gtimezone.h +3 -3
  198. data/vendor/local/include/glib-2.0/glib/gtrashstack.h +103 -0
  199. data/vendor/local/include/glib-2.0/glib/gtree.h +2 -3
  200. data/vendor/local/include/glib-2.0/glib/gtypes.h +50 -18
  201. data/vendor/local/include/glib-2.0/glib/gunicode.h +420 -95
  202. data/vendor/local/include/glib-2.0/glib/gurifuncs.h +2 -2
  203. data/vendor/local/include/glib-2.0/glib/gutils.h +68 -192
  204. data/vendor/local/include/glib-2.0/glib/gvariant.h +25 -3
  205. data/vendor/local/include/glib-2.0/glib/gvarianttype.h +20 -2
  206. data/vendor/local/include/glib-2.0/glib/gversion.h +56 -0
  207. data/vendor/local/include/glib-2.0/glib/gversionmacros.h +274 -0
  208. data/vendor/local/include/glib-2.0/glib/gwin32.h +15 -4
  209. data/vendor/local/include/glib-2.0/gmodule.h +14 -8
  210. data/vendor/local/include/glib-2.0/gobject/gbinding.h +2 -2
  211. data/vendor/local/include/glib-2.0/gobject/gboxed.h +41 -175
  212. data/vendor/local/include/glib-2.0/gobject/gclosure.h +40 -10
  213. data/vendor/local/include/glib-2.0/gobject/glib-types.h +310 -0
  214. data/vendor/local/include/glib-2.0/gobject/gmarshal.h +338 -183
  215. data/vendor/local/include/glib-2.0/gobject/gobject.h +56 -28
  216. data/vendor/local/include/glib-2.0/gobject/gobjectnotifyqueue.c +6 -0
  217. data/vendor/local/include/glib-2.0/gobject/gparam.h +11 -12
  218. data/vendor/local/include/glib-2.0/gobject/gparamspecs.h +6 -0
  219. data/vendor/local/include/glib-2.0/gobject/gsignal.h +42 -9
  220. data/vendor/local/include/glib-2.0/gobject/gsourceclosure.h +1 -16
  221. data/vendor/local/include/glib-2.0/gobject/gtype.h +28 -31
  222. data/vendor/local/include/glib-2.0/gobject/gtypemodule.h +1 -1
  223. data/vendor/local/include/glib-2.0/gobject/gvalue.h +21 -5
  224. data/vendor/local/include/glib-2.0/gobject/gvaluearray.h +31 -2
  225. data/vendor/local/include/glib-2.0/gobject/gvaluecollector.h +32 -3
  226. data/vendor/local/include/glib-2.0/gobject/gvaluetypes.h +12 -8
  227. data/vendor/local/include/gmp.h +2229 -0
  228. data/vendor/local/include/gnutls/abstract.h +401 -0
  229. data/vendor/local/include/gnutls/compat.h +290 -56
  230. data/vendor/local/include/gnutls/crypto.h +80 -47
  231. data/vendor/local/include/gnutls/dtls.h +88 -0
  232. data/vendor/local/include/gnutls/gnutls.h +1357 -550
  233. data/vendor/local/include/gnutls/gnutlsxx.h +400 -362
  234. data/vendor/local/include/gnutls/ocsp.h +259 -0
  235. data/vendor/local/include/gnutls/openpgp.h +235 -147
  236. data/vendor/local/include/gnutls/openssl.h +22 -24
  237. data/vendor/local/include/gnutls/pkcs11.h +322 -0
  238. data/vendor/local/include/gnutls/pkcs12.h +66 -38
  239. data/vendor/local/include/gnutls/tpm.h +74 -0
  240. data/vendor/local/include/gnutls/x509.h +771 -348
  241. data/vendor/local/include/nettle/aes.h +85 -0
  242. data/vendor/local/include/nettle/arcfour.h +66 -0
  243. data/vendor/local/include/nettle/arctwo.h +82 -0
  244. data/vendor/local/include/nettle/asn1.h +144 -0
  245. data/vendor/local/include/nettle/base16.h +106 -0
  246. data/vendor/local/include/nettle/base64.h +153 -0
  247. data/vendor/local/include/nettle/bignum.h +121 -0
  248. data/vendor/local/include/nettle/blowfish.h +76 -0
  249. data/vendor/local/include/nettle/buffer.h +98 -0
  250. data/vendor/local/include/nettle/camellia.h +82 -0
  251. data/vendor/local/include/nettle/cast128.h +77 -0
  252. data/vendor/local/include/nettle/cbc.h +76 -0
  253. data/vendor/local/include/nettle/ctr.h +62 -0
  254. data/vendor/local/include/nettle/des-compat.h +154 -0
  255. data/vendor/local/include/nettle/des.h +111 -0
  256. data/vendor/local/include/nettle/dsa.h +292 -0
  257. data/vendor/local/include/nettle/gcm.h +186 -0
  258. data/vendor/local/include/nettle/hmac.h +201 -0
  259. data/vendor/local/include/nettle/knuth-lfib.h +75 -0
  260. data/vendor/local/include/nettle/macros.h +216 -0
  261. data/vendor/local/include/nettle/md2.h +69 -0
  262. data/vendor/local/include/nettle/md4.h +73 -0
  263. data/vendor/local/include/nettle/md5-compat.h +50 -0
  264. data/vendor/local/include/nettle/md5.h +76 -0
  265. data/vendor/local/include/nettle/memxor.h +22 -0
  266. data/vendor/local/include/nettle/nettle-meta.h +227 -0
  267. data/vendor/local/include/nettle/nettle-stdint.h +286 -0
  268. data/vendor/local/include/nettle/nettle-types.h +92 -0
  269. data/vendor/local/include/nettle/pgp.h +240 -0
  270. data/vendor/local/include/nettle/pkcs1.h +106 -0
  271. data/vendor/local/include/nettle/realloc.h +41 -0
  272. data/vendor/local/include/nettle/ripemd160.h +78 -0
  273. data/vendor/local/include/nettle/rsa-compat.h +131 -0
  274. data/vendor/local/include/nettle/rsa.h +418 -0
  275. data/vendor/local/include/nettle/salsa20.h +82 -0
  276. data/vendor/local/include/nettle/serpent.h +81 -0
  277. data/vendor/local/include/nettle/sexp.h +212 -0
  278. data/vendor/local/include/nettle/sha.h +193 -0
  279. data/vendor/local/include/nettle/twofish.h +78 -0
  280. data/vendor/local/include/nettle/yarrow.h +137 -0
  281. data/vendor/local/include/zconf.h +461 -0
  282. data/vendor/local/include/zlib.h +1589 -0
  283. data/vendor/local/lib/charset.alias +4 -0
  284. data/vendor/local/lib/gio-2.0.def +505 -147
  285. data/vendor/local/lib/gio/modules/libgiognutls.a +0 -0
  286. data/vendor/local/lib/gio/modules/libgiognutls.dll +0 -0
  287. data/vendor/local/lib/gio/modules/libgiognutls.dll.a +0 -0
  288. data/vendor/local/lib/gio/modules/libgiognutls.la +2 -2
  289. data/vendor/local/lib/glib-2.0.def +298 -167
  290. data/vendor/local/lib/glib-2.0/include/glibconfig.h +32 -115
  291. data/vendor/local/lib/gmodule-2.0.def +0 -0
  292. data/vendor/local/lib/gobject-2.0.def +71 -23
  293. data/vendor/local/lib/gthread-2.0.def +0 -0
  294. data/vendor/local/lib/libffi-3.0.6/include/ffi.h +393 -0
  295. data/vendor/local/lib/libffi-3.0.6/include/ffitarget.h +90 -0
  296. data/vendor/local/lib/libffi.dll.a +0 -0
  297. data/vendor/local/lib/libgio-2.0.dll.a +0 -0
  298. data/vendor/local/lib/libgio-2.0.la +41 -0
  299. data/vendor/local/lib/libglib-2.0.dll.a +0 -0
  300. data/vendor/local/lib/libglib-2.0.la +41 -0
  301. data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
  302. data/vendor/local/lib/libgmodule-2.0.la +41 -0
  303. data/vendor/local/lib/libgmp.dll.a +0 -0
  304. data/vendor/local/lib/libgmp.la +41 -0
  305. data/vendor/local/lib/libgnutls-openssl.a +0 -0
  306. data/vendor/local/lib/libgnutls-openssl.dll.a +0 -0
  307. data/vendor/local/lib/libgnutls-openssl.la +41 -0
  308. data/vendor/local/lib/libgnutls.a +0 -0
  309. data/vendor/local/lib/libgnutls.dll.a +0 -0
  310. data/vendor/local/lib/libgnutls.la +41 -0
  311. data/vendor/local/lib/libgnutlsxx.a +0 -0
  312. data/vendor/local/lib/libgnutlsxx.dll.a +0 -0
  313. data/vendor/local/lib/libgnutlsxx.la +41 -0
  314. data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
  315. data/vendor/local/lib/libgobject-2.0.la +41 -0
  316. data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
  317. data/vendor/local/lib/libgthread-2.0.la +41 -0
  318. data/vendor/local/lib/libhogweed.a +0 -0
  319. data/vendor/local/lib/libhogweed.dll.a +0 -0
  320. data/vendor/local/lib/libnettle.a +0 -0
  321. data/vendor/local/lib/libnettle.dll.a +0 -0
  322. data/vendor/local/lib/libz.dll.a +0 -0
  323. data/vendor/local/lib/pkgconfig/gio-2.0.pc +7 -4
  324. data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
  325. data/vendor/local/lib/pkgconfig/glib-2.0.pc +3 -2
  326. data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
  327. data/vendor/local/lib/pkgconfig/gmodule-export-2.0.pc +14 -0
  328. data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  329. data/vendor/local/lib/pkgconfig/gnutls-dane.pc +24 -0
  330. data/vendor/local/lib/pkgconfig/gnutls.pc +13 -12
  331. data/vendor/local/lib/pkgconfig/gobject-2.0.pc +3 -2
  332. data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
  333. data/vendor/local/lib/pkgconfig/hogweed.pc +18 -0
  334. data/vendor/local/lib/pkgconfig/nettle.pc +11 -0
  335. data/vendor/local/lib/zdll.lib +0 -0
  336. data/vendor/local/lib/zlib.def +67 -0
  337. data/vendor/local/manifest/libffi-dev_3.0.6-1_win32.mft +9 -0
  338. data/vendor/local/manifest/libffi_3.0.6-1_win32.mft +2 -0
  339. data/vendor/local/manifest/zlib-dev_1.2.5-2_win32.mft +8 -0
  340. data/vendor/local/manifest/zlib_1.2.5-2_win32.mft +2 -0
  341. data/vendor/local/share/aclocal/glib-2.0.m4 +3 -0
  342. data/vendor/local/share/aclocal/glib-gettext.m4 +4 -0
  343. data/vendor/local/share/aclocal/gsettings.m4 +1 -1
  344. data/vendor/local/share/bash-completion/completions/gdbus +33 -0
  345. data/vendor/local/share/bash-completion/completions/gresource +58 -0
  346. data/vendor/local/share/bash-completion/completions/gsettings +84 -0
  347. data/vendor/local/share/gdb/auto-load/libglib-2.0.so.0.3503.0-gdb.py +10 -0
  348. data/vendor/local/share/gdb/auto-load/libgobject-2.0.so.0.3503.0-gdb.py +10 -0
  349. data/vendor/local/share/glib-2.0/codegen/__init__.py +29 -0
  350. data/vendor/local/share/glib-2.0/codegen/__init__.pyc +0 -0
  351. data/vendor/local/share/glib-2.0/codegen/__init__.pyo +0 -0
  352. data/vendor/local/share/glib-2.0/codegen/codegen.py +3375 -0
  353. data/vendor/local/share/glib-2.0/codegen/codegen.pyc +0 -0
  354. data/vendor/local/share/glib-2.0/codegen/codegen.pyo +0 -0
  355. data/vendor/local/share/glib-2.0/codegen/codegen_docbook.py +323 -0
  356. data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyc +0 -0
  357. data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyo +0 -0
  358. data/vendor/local/share/glib-2.0/codegen/codegen_main.py +203 -0
  359. data/vendor/local/share/glib-2.0/codegen/codegen_main.pyc +0 -0
  360. data/vendor/local/share/glib-2.0/codegen/codegen_main.pyo +0 -0
  361. data/vendor/local/share/glib-2.0/codegen/config.py +27 -0
  362. data/vendor/local/share/glib-2.0/codegen/config.pyc +0 -0
  363. data/vendor/local/share/glib-2.0/codegen/config.pyo +0 -0
  364. data/vendor/local/share/glib-2.0/codegen/dbustypes.py +426 -0
  365. data/vendor/local/share/glib-2.0/codegen/dbustypes.pyc +0 -0
  366. data/vendor/local/share/glib-2.0/codegen/dbustypes.pyo +0 -0
  367. data/vendor/local/share/glib-2.0/codegen/parser.py +290 -0
  368. data/vendor/local/share/glib-2.0/codegen/parser.pyc +0 -0
  369. data/vendor/local/share/glib-2.0/codegen/parser.pyo +0 -0
  370. data/vendor/local/share/glib-2.0/codegen/utils.py +104 -0
  371. data/vendor/local/share/glib-2.0/codegen/utils.pyc +0 -0
  372. data/vendor/local/share/glib-2.0/codegen/utils.pyo +0 -0
  373. data/vendor/local/share/glib-2.0/gdb/glib.py +15 -11
  374. data/vendor/local/share/glib-2.0/gdb/gobject.py +0 -0
  375. data/vendor/local/share/glib-2.0/gettext/po/Makefile.in.in +9 -20
  376. data/vendor/local/share/gtk-doc/html/gio/ExampleAnimal.html +1301 -0
  377. data/vendor/local/share/gtk-doc/html/gio/ExampleCat.html +594 -0
  378. data/vendor/local/share/gtk-doc/html/gio/ExampleObject.html +461 -0
  379. data/vendor/local/share/gtk-doc/html/gio/ExampleObjectManagerClient.html +486 -0
  380. data/vendor/local/share/gtk-doc/html/gio/GAction.html +174 -73
  381. data/vendor/local/share/gtk-doc/html/gio/GActionGroup.html +465 -130
  382. data/vendor/local/share/gtk-doc/html/gio/GActionMap.html +440 -0
  383. data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +470 -183
  384. data/vendor/local/share/gtk-doc/html/gio/GApplication.html +862 -225
  385. data/vendor/local/share/gtk-doc/html/gio/GApplicationCommandLine.html +139 -76
  386. data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +141 -135
  387. data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +148 -37
  388. data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +110 -67
  389. data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +55 -29
  390. data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +135 -79
  391. data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +42 -30
  392. data/vendor/local/share/gtk-doc/html/gio/GConverter.html +49 -42
  393. data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +78 -43
  394. data/vendor/local/share/gtk-doc/html/gio/GDBusActionGroup.html +138 -0
  395. data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +107 -24
  396. data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +1369 -836
  397. data/vendor/local/share/gtk-doc/html/gio/GDBusError.html +92 -92
  398. data/vendor/local/share/gtk-doc/html/gio/GDBusInterface.html +268 -0
  399. data/vendor/local/share/gtk-doc/html/gio/GDBusInterfaceSkeleton.html +691 -0
  400. data/vendor/local/share/gtk-doc/html/gio/GDBusMenuModel.html +126 -0
  401. data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +381 -215
  402. data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +212 -81
  403. data/vendor/local/share/gtk-doc/html/gio/GDBusObject.html +312 -0
  404. data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManager.html +462 -0
  405. data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManagerClient.html +1095 -0
  406. data/vendor/local/share/gtk-doc/html/gio/GDBusObjectManagerServer.html +397 -0
  407. data/vendor/local/share/gtk-doc/html/gio/GDBusObjectProxy.html +206 -0
  408. data/vendor/local/share/gtk-doc/html/gio/GDBusObjectSkeleton.html +385 -0
  409. data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +679 -330
  410. data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +161 -129
  411. data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +396 -210
  412. data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +143 -102
  413. data/vendor/local/share/gtk-doc/html/gio/GDrive.html +323 -162
  414. data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +35 -24
  415. data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +30 -15
  416. data/vendor/local/share/gtk-doc/html/gio/GFile.html +2551 -1662
  417. data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +16 -5
  418. data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +151 -64
  419. data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +34 -22
  420. data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +15 -8
  421. data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +731 -342
  422. data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +31 -22
  423. data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +53 -38
  424. data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +34 -22
  425. data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +37 -22
  426. data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +24 -15
  427. data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +24 -15
  428. data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +259 -22
  429. data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +91 -55
  430. data/vendor/local/share/gtk-doc/html/gio/GIcon.html +51 -34
  431. data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +189 -101
  432. data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +99 -15
  433. data/vendor/local/share/gtk-doc/html/gio/GInitable.html +116 -80
  434. data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +339 -110
  435. data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +33 -21
  436. data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +33 -20
  437. data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +84 -49
  438. data/vendor/local/share/gtk-doc/html/gio/GMenu.html +1562 -0
  439. data/vendor/local/share/gtk-doc/html/gio/GMenuModel.html +1064 -0
  440. data/vendor/local/share/gtk-doc/html/gio/GMount.html +325 -174
  441. data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +217 -94
  442. data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +72 -49
  443. data/vendor/local/share/gtk-doc/html/gio/GNetworkMonitor.html +435 -0
  444. data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +53 -35
  445. data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +392 -138
  446. data/vendor/local/share/gtk-doc/html/gio/GPermission.html +104 -74
  447. data/vendor/local/share/gtk-doc/html/gio/GPollableInputStream.html +58 -104
  448. data/vendor/local/share/gtk-doc/html/gio/GPollableOutputStream.html +60 -45
  449. data/vendor/local/share/gtk-doc/html/gio/GProxy.html +48 -30
  450. data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +157 -51
  451. data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +50 -37
  452. data/vendor/local/share/gtk-doc/html/gio/GRemoteActionGroup.html +262 -0
  453. data/vendor/local/share/gtk-doc/html/gio/GResolver.html +348 -128
  454. data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +66 -48
  455. data/vendor/local/share/gtk-doc/html/gio/GSettings.html +790 -390
  456. data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +106 -75
  457. data/vendor/local/share/gtk-doc/html/gio/GSimpleAction.html +188 -76
  458. data/vendor/local/share/gtk-doc/html/gio/GSimpleActionGroup.html +79 -22
  459. data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +334 -180
  460. data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +12 -9
  461. data/vendor/local/share/gtk-doc/html/gio/GSocket.html +1183 -407
  462. data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +51 -42
  463. data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +556 -217
  464. data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +55 -37
  465. data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +243 -49
  466. data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +35 -20
  467. data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +159 -122
  468. data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +57 -34
  469. data/vendor/local/share/gtk-doc/html/gio/GSrvTarget.html +56 -32
  470. data/vendor/local/share/gtk-doc/html/gio/GTask.html +2296 -0
  471. data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +22 -16
  472. data/vendor/local/share/gtk-doc/html/gio/GTcpWrapperConnection.html +13 -9
  473. data/vendor/local/share/gtk-doc/html/gio/GTestDBus.html +331 -0
  474. data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +43 -25
  475. data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +30 -24
  476. data/vendor/local/share/gtk-doc/html/gio/GTlsBackend.html +123 -36
  477. data/vendor/local/share/gtk-doc/html/gio/GTlsCertificate.html +145 -76
  478. data/vendor/local/share/gtk-doc/html/gio/GTlsClientConnection.html +67 -42
  479. data/vendor/local/share/gtk-doc/html/gio/GTlsConnection.html +297 -90
  480. data/vendor/local/share/gtk-doc/html/gio/GTlsDatabase.html +993 -0
  481. data/vendor/local/share/gtk-doc/html/gio/GTlsFileDatabase.html +172 -0
  482. data/vendor/local/share/gtk-doc/html/gio/GTlsInteraction.html +385 -0
  483. data/vendor/local/share/gtk-doc/html/gio/GTlsPassword.html +511 -0
  484. data/vendor/local/share/gtk-doc/html/gio/GTlsServerConnection.html +19 -16
  485. data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +244 -41
  486. data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +25 -13
  487. data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +70 -51
  488. data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +47 -34
  489. data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +44 -30
  490. data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +46 -32
  491. data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +76 -53
  492. data/vendor/local/share/gtk-doc/html/gio/GVfs.html +55 -33
  493. data/vendor/local/share/gtk-doc/html/gio/GVolume.html +260 -110
  494. data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +127 -70
  495. data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +32 -24
  496. data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +19 -13
  497. data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +10 -10
  498. data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +6 -6
  499. data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +5 -5
  500. data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +14 -10
  501. data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +8 -16
  502. data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +74 -31
  503. data/vendor/local/share/gtk-doc/html/gio/api-index-2-28.html +21 -41
  504. data/vendor/local/share/gtk-doc/html/gio/api-index-2-30.html +691 -0
  505. data/vendor/local/share/gtk-doc/html/gio/api-index-2-32.html +698 -0
  506. data/vendor/local/share/gtk-doc/html/gio/api-index-2-34.html +231 -0
  507. data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +55 -7
  508. data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +2101 -230
  509. data/vendor/local/share/gtk-doc/html/gio/application.html +33 -9
  510. data/vendor/local/share/gtk-doc/html/gio/async.html +6 -3
  511. data/vendor/local/share/gtk-doc/html/gio/ch01.html +43 -18
  512. data/vendor/local/share/gtk-doc/html/gio/ch02.html +86 -22
  513. data/vendor/local/share/gtk-doc/html/gio/ch03.html +23 -152
  514. data/vendor/local/share/gtk-doc/html/gio/ch27.html +5 -5
  515. data/vendor/local/share/gtk-doc/html/gio/ch28s03.html +2 -2
  516. data/vendor/local/share/gtk-doc/html/gio/ch28s06.html +2 -2
  517. data/vendor/local/share/gtk-doc/html/gio/ch29.html +54 -49
  518. data/vendor/local/share/gtk-doc/html/gio/ch29s02.html +1 -1
  519. data/vendor/local/share/gtk-doc/html/gio/ch29s03.html +19 -19
  520. data/vendor/local/share/gtk-doc/html/gio/ch29s04.html +3 -3
  521. data/vendor/local/share/gtk-doc/html/gio/ch29s05.html +81 -81
  522. data/vendor/local/share/gtk-doc/html/gio/ch29s06.html +67 -67
  523. data/vendor/local/share/gtk-doc/html/gio/ch30.html +217 -0
  524. data/vendor/local/share/gtk-doc/html/gio/ch30s02.html +41 -0
  525. data/vendor/local/share/gtk-doc/html/gio/ch30s03.html +39 -0
  526. data/vendor/local/share/gtk-doc/html/gio/ch31.html +57 -0
  527. data/vendor/local/share/gtk-doc/html/gio/ch31s02.html +59 -0
  528. data/vendor/local/share/gtk-doc/html/gio/ch31s03.html +159 -0
  529. data/vendor/local/share/gtk-doc/html/gio/ch31s04.html +46 -0
  530. data/vendor/local/share/gtk-doc/html/gio/ch31s05.html +48 -0
  531. data/vendor/local/share/gtk-doc/html/gio/ch31s06.html +278 -0
  532. data/vendor/local/share/gtk-doc/html/gio/ch31s07.html +160 -0
  533. data/vendor/local/share/gtk-doc/html/gio/ch32.html +113 -0
  534. data/vendor/local/share/gtk-doc/html/gio/ch32s02.html +142 -0
  535. data/vendor/local/share/gtk-doc/html/gio/ch32s03.html +202 -0
  536. data/vendor/local/share/gtk-doc/html/gio/ch32s04.html +97 -0
  537. data/vendor/local/share/gtk-doc/html/gio/ch32s05.html +931 -0
  538. data/vendor/local/share/gtk-doc/html/gio/conversion.html +3 -3
  539. data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +14 -5
  540. data/vendor/local/share/gtk-doc/html/gio/extending.html +5 -5
  541. data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +3 -3
  542. data/vendor/local/share/gtk-doc/html/gio/file_mon.html +3 -3
  543. data/vendor/local/share/gtk-doc/html/gio/file_ops.html +3 -3
  544. data/vendor/local/share/gtk-doc/html/gio/gdbus-codegen.html +1080 -0
  545. data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +28 -4
  546. data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +4 -4
  547. data/vendor/local/share/gtk-doc/html/gio/gdbus-org.gtk.GDBus.Example.ObjectManager.Animal.html +167 -0
  548. data/vendor/local/share/gtk-doc/html/gio/gdbus-org.gtk.GDBus.Example.ObjectManager.Cat.html +54 -0
  549. data/vendor/local/share/gtk-doc/html/gio/gdbus.html +87 -30
  550. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +70 -49
  551. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +420 -187
  552. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +200 -27
  553. data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +497 -23
  554. data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +88 -48
  555. data/vendor/local/share/gtk-doc/html/gio/gio-GActionGroup-exporter.html +176 -0
  556. data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +162 -68
  557. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +26 -8
  558. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +24 -6
  559. data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +919 -0
  560. data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +113 -97
  561. data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +38 -32
  562. data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +85 -62
  563. data/vendor/local/share/gtk-doc/html/gio/gio-GInetAddressMask.html +330 -0
  564. data/vendor/local/share/gtk-doc/html/gio/gio-GMenuModel-exporter.html +164 -0
  565. data/vendor/local/share/gtk-doc/html/gio/gio-GResource.html +917 -0
  566. data/vendor/local/share/gtk-doc/html/gio/gio-GSettingsSchema-GSettingsSchemaSource.html +614 -0
  567. data/vendor/local/share/gtk-doc/html/gio/gio-GWin32InputStream.html +213 -0
  568. data/vendor/local/share/gtk-doc/html/gio/gio-GWin32OutputStream.html +210 -0
  569. data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +154 -134
  570. data/vendor/local/share/gtk-doc/html/gio/gio-TLS-Overview.html +22 -17
  571. data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +272 -92
  572. data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +136 -105
  573. data/vendor/local/share/gtk-doc/html/gio/gio-gnetworking.h.html +91 -0
  574. data/vendor/local/share/gtk-doc/html/gio/gio-gpollableutils.html +396 -0
  575. data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +53 -52
  576. data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +5 -5
  577. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +790 -157
  578. data/vendor/local/share/gtk-doc/html/gio/glib-compile-resources.html +209 -0
  579. data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +25 -18
  580. data/vendor/local/share/gtk-doc/html/gio/gresource-tool.html +111 -0
  581. data/vendor/local/share/gtk-doc/html/gio/gsettings-tool.html +27 -15
  582. data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +10 -7
  583. data/vendor/local/share/gtk-doc/html/gio/icons.html +3 -3
  584. data/vendor/local/share/gtk-doc/html/gio/index.html +160 -34
  585. data/vendor/local/share/gtk-doc/html/gio/index.sgml +1009 -179
  586. data/vendor/local/share/gtk-doc/html/gio/menu-example.png +0 -0
  587. data/vendor/local/share/gtk-doc/html/gio/menu-model.png +0 -0
  588. data/vendor/local/share/gtk-doc/html/gio/migrating.html +45 -25
  589. data/vendor/local/share/gtk-doc/html/gio/networking.html +11 -5
  590. data/vendor/local/share/gtk-doc/html/gio/permissions.html +5 -5
  591. data/vendor/local/share/gtk-doc/html/gio/pt01.html +7 -6
  592. data/vendor/local/share/gtk-doc/html/gio/pt02.html +115 -13
  593. data/vendor/local/share/gtk-doc/html/gio/resolver.html +5 -5
  594. data/vendor/local/share/gtk-doc/html/gio/resources.html +33 -0
  595. data/vendor/local/share/gtk-doc/html/gio/running-gio-apps.html +176 -0
  596. data/vendor/local/share/gtk-doc/html/gio/settings.html +9 -5
  597. data/vendor/local/share/gtk-doc/html/gio/streaming.html +12 -3
  598. data/vendor/local/share/gtk-doc/html/gio/testing.html +33 -0
  599. data/vendor/local/share/gtk-doc/html/gio/tls.html +17 -5
  600. data/vendor/local/share/gtk-doc/html/gio/tools.html +13 -4
  601. data/vendor/local/share/gtk-doc/html/gio/types.html +5 -5
  602. data/vendor/local/share/gtk-doc/html/gio/utils.html +3 -3
  603. data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +3 -3
  604. data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +28 -7
  605. data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +6 -14
  606. data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +5 -5
  607. data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +19 -11
  608. data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +5 -5
  609. data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +17 -6
  610. data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +5 -5
  611. data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +15 -7
  612. data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +8 -8
  613. data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +13 -5
  614. data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +20 -5
  615. data/vendor/local/share/gtk-doc/html/glib/api-index-2-28.html +22 -7
  616. data/vendor/local/share/gtk-doc/html/glib/api-index-2-30.html +257 -0
  617. data/vendor/local/share/gtk-doc/html/glib/api-index-2-32.html +348 -0
  618. data/vendor/local/share/gtk-doc/html/glib/api-index-2-34.html +121 -0
  619. data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +26 -18
  620. data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +20 -16
  621. data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +11 -7
  622. data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +152 -78
  623. data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +729 -249
  624. data/vendor/local/share/gtk-doc/html/glib/deprecated.html +47 -0
  625. data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +135 -28
  626. data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +383 -170
  627. data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +525 -142
  628. data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +71 -32
  629. data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +97 -38
  630. data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +68 -30
  631. data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +724 -106
  632. data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +187 -67
  633. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +715 -29
  634. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +368 -194
  635. data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +105 -50
  636. data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +126 -59
  637. data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +163 -62
  638. data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +106 -25
  639. data/vendor/local/share/gtk-doc/html/glib/glib-Data-HMACs.html +452 -0
  640. data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +61 -19
  641. data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +394 -162
  642. data/vendor/local/share/gtk-doc/html/glib/glib-Deprecated-Thread-APIs.html +1772 -0
  643. data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +241 -63
  644. data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +236 -95
  645. data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +174 -100
  646. data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +259 -168
  647. data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +710 -221
  648. data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +409 -167
  649. data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +86 -53
  650. data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +1077 -281
  651. data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +234 -187
  652. data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +28 -10
  653. data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +545 -211
  654. data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +234 -108
  655. data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +23 -8
  656. data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +138 -77
  657. data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +259 -105
  658. data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +436 -206
  659. data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +263 -38
  660. data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +540 -362
  661. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +165 -37
  662. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +146 -79
  663. data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +214 -104
  664. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +489 -438
  665. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +690 -202
  666. data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +230 -118
  667. data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +23 -4
  668. data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +538 -102
  669. data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +135 -33
  670. data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +79 -23
  671. data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +75 -21
  672. data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +57 -21
  673. data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +308 -111
  674. data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +20 -9
  675. data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +88 -37
  676. data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +228 -86
  677. data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +271 -109
  678. data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +108 -63
  679. data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +42 -24
  680. data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +578 -315
  681. data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +241 -94
  682. data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +647 -189
  683. data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +592 -210
  684. data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +162 -100
  685. data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +1345 -1882
  686. data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +33 -23
  687. data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +40 -18
  688. data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +42 -25
  689. data/vendor/local/share/gtk-doc/html/glib/glib-UNIX-specific-utilities-and-integration.html +334 -0
  690. data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +55 -25
  691. data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +852 -253
  692. data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +204 -41
  693. data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +146 -85
  694. data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +106 -44
  695. data/vendor/local/share/gtk-doc/html/glib/glib-building.html +298 -333
  696. data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +11 -11
  697. data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +69 -39
  698. data/vendor/local/share/gtk-doc/html/glib/glib-core.html +13 -8
  699. data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +10 -5
  700. data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +15 -38
  701. data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +9 -11
  702. data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +13 -10
  703. data/vendor/local/share/gtk-doc/html/glib/glib-programming.html +76 -0
  704. data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +58 -58
  705. data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +12 -9
  706. data/vendor/local/share/gtk-doc/html/glib/glib-running.html +133 -112
  707. data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +24 -16
  708. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +434 -267
  709. data/vendor/local/share/gtk-doc/html/glib/glib.html +16 -24
  710. data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +12 -9
  711. data/vendor/local/share/gtk-doc/html/glib/gtester.html +68 -12
  712. data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +67 -25
  713. data/vendor/local/share/gtk-doc/html/glib/gvariant-text.html +15 -8
  714. data/vendor/local/share/gtk-doc/html/glib/index.html +66 -59
  715. data/vendor/local/share/gtk-doc/html/glib/index.sgml +383 -215
  716. data/vendor/local/share/gtk-doc/html/glib/tools.html +7 -7
  717. data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +56 -25
  718. data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +58 -19
  719. data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +39 -12
  720. data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +7 -7
  721. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +8 -8
  722. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +5 -5
  723. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +5 -5
  724. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +5 -5
  725. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +5 -5
  726. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +5 -5
  727. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +5 -5
  728. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +7 -7
  729. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-28.html +8 -8
  730. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-30.html +70 -0
  731. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-32.html +81 -0
  732. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-34.html +63 -0
  733. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +9 -9
  734. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +5 -5
  735. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +7 -7
  736. data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +94 -7
  737. data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +296 -76
  738. data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +10 -10
  739. data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +8 -8
  740. data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +13 -13
  741. data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +6 -6
  742. data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +14 -14
  743. data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +120 -108
  744. data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +157 -133
  745. data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +171 -27
  746. data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +741 -86
  747. data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +113 -41
  748. data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +182 -65
  749. data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +124 -37
  750. data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +365 -136
  751. data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +837 -244
  752. data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +773 -102
  753. data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +545 -158
  754. data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +149 -34
  755. data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +26 -11
  756. data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +4 -4
  757. data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +226 -105
  758. data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +29 -18
  759. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +92 -34
  760. data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +11 -10
  761. data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +10 -9
  762. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +104 -42
  763. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +4 -4
  764. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +8 -8
  765. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +4 -4
  766. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +68 -21
  767. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +3 -3
  768. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +7 -7
  769. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +11 -11
  770. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +33 -18
  771. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-override.html +135 -0
  772. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-prerequisite.html +123 -0
  773. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +27 -39
  774. data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +40 -51
  775. data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +8 -8
  776. data/vendor/local/share/gtk-doc/html/gobject/index.html +19 -15
  777. data/vendor/local/share/gtk-doc/html/gobject/index.sgml +59 -3
  778. data/vendor/local/share/gtk-doc/html/gobject/pr01.html +6 -6
  779. data/vendor/local/share/gtk-doc/html/gobject/pt01.html +7 -7
  780. data/vendor/local/share/gtk-doc/html/gobject/pt02.html +12 -11
  781. data/vendor/local/share/gtk-doc/html/gobject/pt03.html +4 -4
  782. data/vendor/local/share/gtk-doc/html/gobject/rn01.html +5 -5
  783. data/vendor/local/share/gtk-doc/html/gobject/rn02.html +4 -4
  784. data/vendor/local/share/gtk-doc/html/gobject/signal.html +16 -15
  785. data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +3 -3
  786. data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +3 -3
  787. data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +3 -3
  788. data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +3 -3
  789. data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +3 -3
  790. data/vendor/local/share/info/dir +40 -0
  791. data/vendor/local/share/info/gmp.info +183 -0
  792. data/vendor/local/share/info/gmp.info-1 +7078 -0
  793. data/vendor/local/share/info/gmp.info-2 +3513 -0
  794. data/vendor/local/share/info/gnutls-client-server-use-case.png +0 -0
  795. data/vendor/local/share/info/gnutls-guile.info +1580 -0
  796. data/vendor/local/share/info/gnutls-handshake-sequence.png +0 -0
  797. data/vendor/local/share/info/gnutls-handshake-state.png +0 -0
  798. data/vendor/local/share/info/gnutls-internals.png +0 -0
  799. data/vendor/local/share/info/gnutls-layers.png +0 -0
  800. data/vendor/local/share/info/gnutls-modauth.png +0 -0
  801. data/vendor/local/share/info/gnutls-pgp.png +0 -0
  802. data/vendor/local/share/info/gnutls-x509.png +0 -0
  803. data/vendor/local/share/info/gnutls.info +1237 -683
  804. data/vendor/local/share/info/gnutls.info-1 +5355 -8447
  805. data/vendor/local/share/info/gnutls.info-2 +9995 -5771
  806. data/vendor/local/share/info/gnutls.info-3 +8788 -1871
  807. data/vendor/local/share/info/gnutls.info-4 +5085 -0
  808. data/vendor/local/share/info/nettle.info +3355 -0
  809. data/vendor/local/share/info/pkcs11-vision.png +0 -0
  810. data/vendor/local/share/license/glib-networking/COPYING +9 -10
  811. data/vendor/local/share/license/glib/AUTHORS +40 -0
  812. data/vendor/local/share/license/glib/COPYING +482 -0
  813. data/vendor/local/share/license/gmp/AUTHORS +79 -0
  814. data/vendor/local/share/license/gmp/COPYING +674 -0
  815. data/vendor/local/share/license/gmp/COPYING.LIB +165 -0
  816. data/vendor/local/share/license/gnutls/AUTHORS +92 -0
  817. data/vendor/local/share/license/gnutls/COPYING +674 -0
  818. data/vendor/local/share/license/nettle/AUTHORS +1 -0
  819. data/vendor/local/share/license/nettle/COPYING.LIB +510 -0
  820. data/vendor/local/share/locale/af/LC_MESSAGES/glib20.mo +0 -0
  821. data/vendor/local/share/locale/am/LC_MESSAGES/glib20.mo +0 -0
  822. data/vendor/local/share/locale/ar/LC_MESSAGES/glib-networking.mo +0 -0
  823. data/vendor/local/share/locale/ar/LC_MESSAGES/glib20.mo +0 -0
  824. data/vendor/local/share/locale/as/LC_MESSAGES/glib-networking.mo +0 -0
  825. data/vendor/local/share/locale/as/LC_MESSAGES/glib20.mo +0 -0
  826. data/vendor/local/share/locale/ast/LC_MESSAGES/glib20.mo +0 -0
  827. data/vendor/local/share/locale/az/LC_MESSAGES/glib20.mo +0 -0
  828. data/vendor/local/share/locale/be/LC_MESSAGES/glib-networking.mo +0 -0
  829. data/vendor/local/share/locale/be/LC_MESSAGES/glib20.mo +0 -0
  830. data/vendor/local/share/locale/be@latin/LC_MESSAGES/glib20.mo +0 -0
  831. data/vendor/local/share/locale/bg/LC_MESSAGES/glib-networking.mo +0 -0
  832. data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
  833. data/vendor/local/share/locale/bn/LC_MESSAGES/glib20.mo +0 -0
  834. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/glib20.mo +0 -0
  835. data/vendor/local/share/locale/bs/LC_MESSAGES/glib20.mo +0 -0
  836. data/vendor/local/share/locale/ca/LC_MESSAGES/glib-networking.mo +0 -0
  837. data/vendor/local/share/locale/ca/LC_MESSAGES/glib20.mo +0 -0
  838. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib-networking.mo +0 -0
  839. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
  840. data/vendor/local/share/locale/cs/LC_MESSAGES/glib-networking.mo +0 -0
  841. data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
  842. data/vendor/local/share/locale/cs/LC_MESSAGES/gnutls.mo +0 -0
  843. data/vendor/local/share/locale/cy/LC_MESSAGES/glib20.mo +0 -0
  844. data/vendor/local/share/locale/da/LC_MESSAGES/glib-networking.mo +0 -0
  845. data/vendor/local/share/locale/da/LC_MESSAGES/glib20.mo +0 -0
  846. data/vendor/local/share/locale/de/LC_MESSAGES/glib-networking.mo +0 -0
  847. data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
  848. data/vendor/local/share/locale/de/LC_MESSAGES/gnutls.mo +0 -0
  849. data/vendor/local/share/locale/dz/LC_MESSAGES/glib20.mo +0 -0
  850. data/vendor/local/share/locale/el/LC_MESSAGES/glib-networking.mo +0 -0
  851. data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
  852. data/vendor/local/share/locale/en@boldquot/LC_MESSAGES/gnutls.mo +0 -0
  853. data/vendor/local/share/locale/en@quot/LC_MESSAGES/gnutls.mo +0 -0
  854. data/vendor/local/share/locale/en@shaw/LC_MESSAGES/glib20.mo +0 -0
  855. data/vendor/local/share/locale/en_CA/LC_MESSAGES/glib20.mo +0 -0
  856. data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib-networking.mo +0 -0
  857. data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
  858. data/vendor/local/share/locale/eo/LC_MESSAGES/glib20.mo +0 -0
  859. data/vendor/local/share/locale/es/LC_MESSAGES/glib-networking.mo +0 -0
  860. data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
  861. data/vendor/local/share/locale/et/LC_MESSAGES/glib-networking.mo +0 -0
  862. data/vendor/local/share/locale/et/LC_MESSAGES/glib20.mo +0 -0
  863. data/vendor/local/share/locale/eu/LC_MESSAGES/glib-networking.mo +0 -0
  864. data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
  865. data/vendor/local/share/locale/fa/LC_MESSAGES/glib-networking.mo +0 -0
  866. data/vendor/local/share/locale/fa/LC_MESSAGES/glib20.mo +0 -0
  867. data/vendor/local/share/locale/fi/LC_MESSAGES/glib-networking.mo +0 -0
  868. data/vendor/local/share/locale/fi/LC_MESSAGES/glib20.mo +0 -0
  869. data/vendor/local/share/locale/fi/LC_MESSAGES/gnutls.mo +0 -0
  870. data/vendor/local/share/locale/fr/LC_MESSAGES/glib-networking.mo +0 -0
  871. data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
  872. data/vendor/local/share/locale/fr/LC_MESSAGES/gnutls.mo +0 -0
  873. data/vendor/local/share/locale/ga/LC_MESSAGES/glib20.mo +0 -0
  874. data/vendor/local/share/locale/gl/LC_MESSAGES/glib-networking.mo +0 -0
  875. data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
  876. data/vendor/local/share/locale/gu/LC_MESSAGES/glib20.mo +0 -0
  877. data/vendor/local/share/locale/he/LC_MESSAGES/glib-networking.mo +0 -0
  878. data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
  879. data/vendor/local/share/locale/hi/LC_MESSAGES/glib-networking.mo +0 -0
  880. data/vendor/local/share/locale/hi/LC_MESSAGES/glib20.mo +0 -0
  881. data/vendor/local/share/locale/hr/LC_MESSAGES/glib20.mo +0 -0
  882. data/vendor/local/share/locale/hu/LC_MESSAGES/glib-networking.mo +0 -0
  883. data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
  884. data/vendor/local/share/locale/hy/LC_MESSAGES/glib20.mo +0 -0
  885. data/vendor/local/share/locale/id/LC_MESSAGES/glib-networking.mo +0 -0
  886. data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
  887. data/vendor/local/share/locale/is/LC_MESSAGES/glib20.mo +0 -0
  888. data/vendor/local/share/locale/it/LC_MESSAGES/glib-networking.mo +0 -0
  889. data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
  890. data/vendor/local/share/locale/it/LC_MESSAGES/gnutls.mo +0 -0
  891. data/vendor/local/share/locale/ja/LC_MESSAGES/glib-networking.mo +0 -0
  892. data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
  893. data/vendor/local/share/locale/ka/LC_MESSAGES/glib20.mo +0 -0
  894. data/vendor/local/share/locale/kk/LC_MESSAGES/glib20.mo +0 -0
  895. data/vendor/local/share/locale/km/LC_MESSAGES/glib-networking.mo +0 -0
  896. data/vendor/local/share/locale/kn/LC_MESSAGES/glib20.mo +0 -0
  897. data/vendor/local/share/locale/ko/LC_MESSAGES/glib-networking.mo +0 -0
  898. data/vendor/local/share/locale/ko/LC_MESSAGES/glib20.mo +0 -0
  899. data/vendor/local/share/locale/ku/LC_MESSAGES/glib20.mo +0 -0
  900. data/vendor/local/share/locale/lt/LC_MESSAGES/glib-networking.mo +0 -0
  901. data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
  902. data/vendor/local/share/locale/lv/LC_MESSAGES/glib-networking.mo +0 -0
  903. data/vendor/local/share/locale/lv/LC_MESSAGES/glib20.mo +0 -0
  904. data/vendor/local/share/locale/mai/LC_MESSAGES/glib20.mo +0 -0
  905. data/vendor/local/share/locale/mg/LC_MESSAGES/glib20.mo +0 -0
  906. data/vendor/local/share/locale/mk/LC_MESSAGES/glib20.mo +0 -0
  907. data/vendor/local/share/locale/ml/LC_MESSAGES/glib-networking.mo +0 -0
  908. data/vendor/local/share/locale/ml/LC_MESSAGES/glib20.mo +0 -0
  909. data/vendor/local/share/locale/mn/LC_MESSAGES/glib20.mo +0 -0
  910. data/vendor/local/share/locale/mr/LC_MESSAGES/glib-networking.mo +0 -0
  911. data/vendor/local/share/locale/mr/LC_MESSAGES/glib20.mo +0 -0
  912. data/vendor/local/share/locale/ms/LC_MESSAGES/glib20.mo +0 -0
  913. data/vendor/local/share/locale/ms/LC_MESSAGES/gnutls.mo +0 -0
  914. data/vendor/local/share/locale/nb/LC_MESSAGES/glib-networking.mo +0 -0
  915. data/vendor/local/share/locale/nb/LC_MESSAGES/glib20.mo +0 -0
  916. data/vendor/local/share/locale/nds/LC_MESSAGES/glib20.mo +0 -0
  917. data/vendor/local/share/locale/ne/LC_MESSAGES/glib20.mo +0 -0
  918. data/vendor/local/share/locale/nl/LC_MESSAGES/glib-networking.mo +0 -0
  919. data/vendor/local/share/locale/nl/LC_MESSAGES/glib20.mo +0 -0
  920. data/vendor/local/share/locale/nl/LC_MESSAGES/gnutls.mo +0 -0
  921. data/vendor/local/share/locale/nn/LC_MESSAGES/glib20.mo +0 -0
  922. data/vendor/local/share/locale/oc/LC_MESSAGES/glib20.mo +0 -0
  923. data/vendor/local/share/locale/or/LC_MESSAGES/glib-networking.mo +0 -0
  924. data/vendor/local/share/locale/or/LC_MESSAGES/glib20.mo +0 -0
  925. data/vendor/local/share/locale/pa/LC_MESSAGES/glib-networking.mo +0 -0
  926. data/vendor/local/share/locale/pa/LC_MESSAGES/glib20.mo +0 -0
  927. data/vendor/local/share/locale/pl/LC_MESSAGES/glib-networking.mo +0 -0
  928. data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
  929. data/vendor/local/share/locale/pl/LC_MESSAGES/gnutls.mo +0 -0
  930. data/vendor/local/share/locale/ps/LC_MESSAGES/glib20.mo +0 -0
  931. data/vendor/local/share/locale/pt/LC_MESSAGES/glib-networking.mo +0 -0
  932. data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
  933. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib-networking.mo +0 -0
  934. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
  935. data/vendor/local/share/locale/ro/LC_MESSAGES/glib20.mo +0 -0
  936. data/vendor/local/share/locale/ru/LC_MESSAGES/glib-networking.mo +0 -0
  937. data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
  938. data/vendor/local/share/locale/rw/LC_MESSAGES/glib20.mo +0 -0
  939. data/vendor/local/share/locale/si/LC_MESSAGES/glib20.mo +0 -0
  940. data/vendor/local/share/locale/sk/LC_MESSAGES/glib-networking.mo +0 -0
  941. data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
  942. data/vendor/local/share/locale/sl/LC_MESSAGES/glib-networking.mo +0 -0
  943. data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
  944. data/vendor/local/share/locale/sq/LC_MESSAGES/glib20.mo +0 -0
  945. data/vendor/local/share/locale/sr/LC_MESSAGES/glib-networking.mo +0 -0
  946. data/vendor/local/share/locale/sr/LC_MESSAGES/glib20.mo +0 -0
  947. data/vendor/local/share/locale/sr@ije/LC_MESSAGES/glib20.mo +0 -0
  948. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib-networking.mo +0 -0
  949. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/glib20.mo +0 -0
  950. data/vendor/local/share/locale/sv/LC_MESSAGES/glib-networking.mo +0 -0
  951. data/vendor/local/share/locale/sv/LC_MESSAGES/glib20.mo +0 -0
  952. data/vendor/local/share/locale/sv/LC_MESSAGES/gnutls.mo +0 -0
  953. data/vendor/local/share/locale/ta/LC_MESSAGES/glib-networking.mo +0 -0
  954. data/vendor/local/share/locale/ta/LC_MESSAGES/glib20.mo +0 -0
  955. data/vendor/local/share/locale/te/LC_MESSAGES/glib-networking.mo +0 -0
  956. data/vendor/local/share/locale/te/LC_MESSAGES/glib20.mo +0 -0
  957. data/vendor/local/share/locale/th/LC_MESSAGES/glib-networking.mo +0 -0
  958. data/vendor/local/share/locale/th/LC_MESSAGES/glib20.mo +0 -0
  959. data/vendor/local/share/locale/tl/LC_MESSAGES/glib20.mo +0 -0
  960. data/vendor/local/share/locale/tr/LC_MESSAGES/glib-networking.mo +0 -0
  961. data/vendor/local/share/locale/tr/LC_MESSAGES/glib20.mo +0 -0
  962. data/vendor/local/share/locale/tt/LC_MESSAGES/glib20.mo +0 -0
  963. data/vendor/local/share/locale/ug/LC_MESSAGES/glib20.mo +0 -0
  964. data/vendor/local/share/locale/uk/LC_MESSAGES/glib-networking.mo +0 -0
  965. data/vendor/local/share/locale/uk/LC_MESSAGES/glib20.mo +0 -0
  966. data/vendor/local/share/locale/uk/LC_MESSAGES/gnutls.mo +0 -0
  967. data/vendor/local/share/locale/vi/LC_MESSAGES/glib-networking.mo +0 -0
  968. data/vendor/local/share/locale/vi/LC_MESSAGES/glib20.mo +0 -0
  969. data/vendor/local/share/locale/vi/LC_MESSAGES/gnutls.mo +0 -0
  970. data/vendor/local/share/locale/wa/LC_MESSAGES/glib20.mo +0 -0
  971. data/vendor/local/share/locale/xh/LC_MESSAGES/glib20.mo +0 -0
  972. data/vendor/local/share/locale/yi/LC_MESSAGES/glib20.mo +0 -0
  973. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib-networking.mo +0 -0
  974. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib20.mo +0 -0
  975. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gnutls.mo +0 -0
  976. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib-networking.mo +0 -0
  977. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/glib20.mo +0 -0
  978. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib-networking.mo +0 -0
  979. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/glib20.mo +0 -0
  980. data/vendor/local/share/man/man1/certtool.1 +644 -130
  981. data/vendor/local/share/man/man1/gdbus-codegen.1 +751 -0
  982. data/vendor/local/share/man/man1/gdbus.1 +93 -15
  983. data/vendor/local/share/man/man1/gio-querymodules.1 +6 -6
  984. data/vendor/local/share/man/man1/glib-compile-resources.1 +167 -0
  985. data/vendor/local/share/man/man1/glib-compile-schemas.1 +20 -15
  986. data/vendor/local/share/man/man1/glib-genmarshal.1 +88 -70
  987. data/vendor/local/share/man/man1/glib-gettextize.1 +7 -7
  988. data/vendor/local/share/man/man1/glib-mkenums.1 +110 -101
  989. data/vendor/local/share/man/man1/gnutls-cli-debug.1 +133 -27
  990. data/vendor/local/share/man/man1/gnutls-cli.1 +308 -154
  991. data/vendor/local/share/man/man1/gnutls-serv.1 +416 -126
  992. data/vendor/local/share/man/man1/gobject-query.1 +13 -13
  993. data/vendor/local/share/man/man1/gresource.1 +95 -0
  994. data/vendor/local/share/man/man1/gsettings.1 +22 -10
  995. data/vendor/local/share/man/man1/gtester-report.1 +53 -0
  996. data/vendor/local/share/man/man1/gtester.1 +142 -0
  997. data/vendor/local/share/man/man1/ocsptool.1 +308 -0
  998. data/vendor/local/share/man/man1/p11tool.1 +230 -0
  999. data/vendor/local/share/man/man1/psktool.1 +96 -26
  1000. data/vendor/local/share/man/man1/srptool.1 +117 -59
  1001. data/vendor/local/share/man/man1/tpmtool.1 +197 -0
  1002. data/vendor/local/share/man/man3/ffi.3 +31 -0
  1003. data/vendor/local/share/man/man3/ffi_call.3 +103 -0
  1004. data/vendor/local/share/man/man3/ffi_prep_cif.3 +66 -0
  1005. data/vendor/local/share/man/man3/gnutls_alert_get.3 +19 -12
  1006. data/vendor/local/share/man/man3/gnutls_alert_get_name.3 +16 -7
  1007. data/vendor/local/share/man/man3/gnutls_alert_get_strname.3 +46 -0
  1008. data/vendor/local/share/man/man3/gnutls_alert_send.3 +15 -6
  1009. data/vendor/local/share/man/man3/gnutls_alert_send_appropriate.3 +15 -6
  1010. data/vendor/local/share/man/man3/gnutls_anon_allocate_client_credentials.3 +18 -9
  1011. data/vendor/local/share/man/man3/gnutls_anon_allocate_server_credentials.3 +18 -9
  1012. data/vendor/local/share/man/man3/gnutls_anon_free_client_credentials.3 +16 -7
  1013. data/vendor/local/share/man/man3/gnutls_anon_free_server_credentials.3 +16 -7
  1014. data/vendor/local/share/man/man3/gnutls_anon_set_params_function.3 +17 -8
  1015. data/vendor/local/share/man/man3/gnutls_anon_set_server_dh_params.3 +18 -9
  1016. data/vendor/local/share/man/man3/gnutls_anon_set_server_params_function.3 +17 -8
  1017. data/vendor/local/share/man/man3/gnutls_auth_client_get_type.3 +16 -7
  1018. data/vendor/local/share/man/man3/gnutls_auth_get_type.3 +19 -10
  1019. data/vendor/local/share/man/man3/gnutls_auth_server_get_type.3 +16 -7
  1020. data/vendor/local/share/man/man3/gnutls_bye.3 +23 -15
  1021. data/vendor/local/share/man/man3/gnutls_certificate_activation_time_peers.3 +17 -6
  1022. data/vendor/local/share/man/man3/gnutls_certificate_allocate_credentials.3 +18 -9
  1023. data/vendor/local/share/man/man3/gnutls_certificate_client_get_request_status.3 +16 -7
  1024. data/vendor/local/share/man/man3/gnutls_certificate_expiration_time_peers.3 +17 -6
  1025. data/vendor/local/share/man/man3/gnutls_certificate_free_ca_names.3 +24 -12
  1026. data/vendor/local/share/man/man3/gnutls_certificate_free_cas.3 +20 -11
  1027. data/vendor/local/share/man/man3/gnutls_certificate_free_credentials.3 +20 -11
  1028. data/vendor/local/share/man/man3/gnutls_certificate_free_crls.3 +16 -7
  1029. data/vendor/local/share/man/man3/gnutls_certificate_free_keys.3 +16 -7
  1030. data/vendor/local/share/man/man3/gnutls_certificate_get_issuer.3 +53 -0
  1031. data/vendor/local/share/man/man3/gnutls_certificate_get_ours.3 +20 -11
  1032. data/vendor/local/share/man/man3/gnutls_certificate_get_peers.3 +18 -9
  1033. data/vendor/local/share/man/man3/gnutls_certificate_get_peers_subkey_id.3 +48 -0
  1034. data/vendor/local/share/man/man3/gnutls_certificate_send_x509_rdn_sequence.3 +17 -8
  1035. data/vendor/local/share/man/man3/gnutls_certificate_server_set_request.3 +21 -13
  1036. data/vendor/local/share/man/man3/gnutls_certificate_set_dh_params.3 +18 -9
  1037. data/vendor/local/share/man/man3/gnutls_certificate_set_key.3 +63 -0
  1038. data/vendor/local/share/man/man3/gnutls_certificate_set_ocsp_status_request_file.3 +54 -0
  1039. data/vendor/local/share/man/man3/gnutls_certificate_set_ocsp_status_request_function.3 +63 -0
  1040. data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key.3 +30 -15
  1041. data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_file.3 +20 -12
  1042. data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_file2.3 +24 -14
  1043. data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_mem.3 +24 -13
  1044. data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_key_mem2.3 +26 -16
  1045. data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_keyring_file.3 +18 -8
  1046. data/vendor/local/share/man/man3/gnutls_certificate_set_openpgp_keyring_mem.3 +21 -11
  1047. data/vendor/local/share/man/man3/gnutls_certificate_set_params_function.3 +17 -8
  1048. data/vendor/local/share/man/man3/gnutls_certificate_set_pin_function.3 +53 -0
  1049. data/vendor/local/share/man/man3/gnutls_certificate_set_retrieve_function.3 +74 -0
  1050. data/vendor/local/share/man/man3/gnutls_certificate_set_retrieve_function2.3 +77 -0
  1051. data/vendor/local/share/man/man3/gnutls_certificate_set_rsa_export_params.3 +18 -9
  1052. data/vendor/local/share/man/man3/gnutls_certificate_set_verify_flags.3 +20 -11
  1053. data/vendor/local/share/man/man3/gnutls_certificate_set_verify_function.3 +60 -0
  1054. data/vendor/local/share/man/man3/gnutls_certificate_set_verify_limits.3 +17 -8
  1055. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_crl.3 +17 -8
  1056. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_crl_file.3 +19 -10
  1057. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_crl_mem.3 +19 -10
  1058. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key.3 +22 -11
  1059. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key_file.3 +28 -16
  1060. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_key_mem.3 +24 -21
  1061. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_simple_pkcs12_file.3 +20 -14
  1062. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_simple_pkcs12_mem.3 +69 -0
  1063. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_system_trust.3 +51 -0
  1064. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_trust.3 +18 -8
  1065. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_trust_file.3 +23 -10
  1066. data/vendor/local/share/man/man3/gnutls_certificate_set_x509_trust_mem.3 +21 -12
  1067. data/vendor/local/share/man/man3/gnutls_certificate_type_get.3 +15 -6
  1068. data/vendor/local/share/man/man3/gnutls_certificate_type_get_id.3 +19 -10
  1069. data/vendor/local/share/man/man3/gnutls_certificate_type_get_name.3 +15 -6
  1070. data/vendor/local/share/man/man3/gnutls_certificate_type_list.3 +17 -10
  1071. data/vendor/local/share/man/man3/gnutls_certificate_type_set_priority.3 +17 -8
  1072. data/vendor/local/share/man/man3/gnutls_certificate_verification_status_print.3 +56 -0
  1073. data/vendor/local/share/man/man3/gnutls_certificate_verify_peers2.3 +28 -22
  1074. data/vendor/local/share/man/man3/gnutls_certificate_verify_peers3.3 +64 -0
  1075. data/vendor/local/share/man/man3/gnutls_check_version.3 +24 -17
  1076. data/vendor/local/share/man/man3/gnutls_cipher_add_auth.3 +53 -0
  1077. data/vendor/local/share/man/man3/gnutls_cipher_decrypt.3 +51 -0
  1078. data/vendor/local/share/man/man3/gnutls_cipher_decrypt2.3 +55 -0
  1079. data/vendor/local/share/man/man3/gnutls_cipher_deinit.3 +45 -0
  1080. data/vendor/local/share/man/man3/gnutls_cipher_encrypt.3 +51 -0
  1081. data/vendor/local/share/man/man3/gnutls_cipher_encrypt2.3 +55 -0
  1082. data/vendor/local/share/man/man3/gnutls_cipher_get.3 +16 -7
  1083. data/vendor/local/share/man/man3/gnutls_cipher_get_block_size.3 +46 -0
  1084. data/vendor/local/share/man/man3/gnutls_cipher_get_id.3 +18 -8
  1085. data/vendor/local/share/man/man3/gnutls_cipher_get_key_size.3 +15 -6
  1086. data/vendor/local/share/man/man3/gnutls_cipher_get_name.3 +15 -6
  1087. data/vendor/local/share/man/man3/gnutls_cipher_init.3 +55 -0
  1088. data/vendor/local/share/man/man3/gnutls_cipher_list.3 +18 -7
  1089. data/vendor/local/share/man/man3/gnutls_cipher_set_iv.3 +49 -0
  1090. data/vendor/local/share/man/man3/gnutls_cipher_set_priority.3 +22 -14
  1091. data/vendor/local/share/man/man3/gnutls_cipher_suite_get_name.3 +15 -6
  1092. data/vendor/local/share/man/man3/gnutls_cipher_suite_info.3 +19 -10
  1093. data/vendor/local/share/man/man3/gnutls_cipher_tag.3 +52 -0
  1094. data/vendor/local/share/man/man3/gnutls_compression_get.3 +15 -6
  1095. data/vendor/local/share/man/man3/gnutls_compression_get_id.3 +18 -8
  1096. data/vendor/local/share/man/man3/gnutls_compression_get_name.3 +15 -6
  1097. data/vendor/local/share/man/man3/gnutls_compression_list.3 +16 -9
  1098. data/vendor/local/share/man/man3/gnutls_compression_set_priority.3 +23 -14
  1099. data/vendor/local/share/man/man3/gnutls_credentials_clear.3 +15 -6
  1100. data/vendor/local/share/man/man3/gnutls_credentials_set.3 +34 -19
  1101. data/vendor/local/share/man/man3/gnutls_db_check_entry.3 +16 -7
  1102. data/vendor/local/share/man/man3/gnutls_db_get_ptr.3 +15 -6
  1103. data/vendor/local/share/man/man3/gnutls_db_remove_session.3 +15 -6
  1104. data/vendor/local/share/man/man3/gnutls_db_set_cache_expiration.3 +16 -7
  1105. data/vendor/local/share/man/man3/gnutls_db_set_ptr.3 +15 -6
  1106. data/vendor/local/share/man/man3/gnutls_db_set_remove_function.3 +16 -7
  1107. data/vendor/local/share/man/man3/gnutls_db_set_retrieve_function.3 +16 -7
  1108. data/vendor/local/share/man/man3/gnutls_db_set_store_function.3 +18 -9
  1109. data/vendor/local/share/man/man3/gnutls_deinit.3 +16 -7
  1110. data/vendor/local/share/man/man3/gnutls_dh_get_group.3 +18 -9
  1111. data/vendor/local/share/man/man3/gnutls_dh_get_peers_public_bits.3 +18 -10
  1112. data/vendor/local/share/man/man3/gnutls_dh_get_prime_bits.3 +22 -10
  1113. data/vendor/local/share/man/man3/gnutls_dh_get_pubkey.3 +18 -9
  1114. data/vendor/local/share/man/man3/gnutls_dh_get_secret_bits.3 +18 -9
  1115. data/vendor/local/share/man/man3/gnutls_dh_params_cpy.3 +18 -6
  1116. data/vendor/local/share/man/man3/gnutls_dh_params_deinit.3 +15 -6
  1117. data/vendor/local/share/man/man3/gnutls_dh_params_export2_pkcs3.3 +54 -0
  1118. data/vendor/local/share/man/man3/gnutls_dh_params_export_pkcs3.3 +18 -9
  1119. data/vendor/local/share/man/man3/gnutls_dh_params_export_raw.3 +23 -10
  1120. data/vendor/local/share/man/man3/gnutls_dh_params_generate2.3 +22 -9
  1121. data/vendor/local/share/man/man3/gnutls_dh_params_import_pkcs3.3 +18 -9
  1122. data/vendor/local/share/man/man3/gnutls_dh_params_import_raw.3 +21 -9
  1123. data/vendor/local/share/man/man3/gnutls_dh_params_init.3 +18 -6
  1124. data/vendor/local/share/man/man3/gnutls_dh_set_prime_bits.3 +21 -7
  1125. data/vendor/local/share/man/man3/gnutls_dtls_cookie_send.3 +61 -0
  1126. data/vendor/local/share/man/man3/gnutls_dtls_cookie_verify.3 +59 -0
  1127. data/vendor/local/share/man/man3/gnutls_dtls_get_data_mtu.3 +48 -0
  1128. data/vendor/local/share/man/man3/gnutls_dtls_get_mtu.3 +49 -0
  1129. data/vendor/local/share/man/man3/gnutls_dtls_get_timeout.3 +50 -0
  1130. data/vendor/local/share/man/man3/gnutls_dtls_prestate_set.3 +48 -0
  1131. data/vendor/local/share/man/man3/gnutls_dtls_set_data_mtu.3 +54 -0
  1132. data/vendor/local/share/man/man3/gnutls_dtls_set_mtu.3 +50 -0
  1133. data/vendor/local/share/man/man3/gnutls_dtls_set_timeouts.3 +58 -0
  1134. data/vendor/local/share/man/man3/gnutls_ecc_curve_get.3 +48 -0
  1135. data/vendor/local/share/man/man3/gnutls_ecc_curve_get_name.3 +47 -0
  1136. data/vendor/local/share/man/man3/gnutls_ecc_curve_get_size.3 +46 -0
  1137. data/vendor/local/share/man/man3/gnutls_ecc_curve_list.3 +47 -0
  1138. data/vendor/local/share/man/man3/gnutls_error_is_fatal.3 +26 -16
  1139. data/vendor/local/share/man/man3/gnutls_error_to_alert.3 +16 -7
  1140. data/vendor/local/share/man/man3/gnutls_fingerprint.3 +15 -6
  1141. data/vendor/local/share/man/man3/gnutls_global_deinit.3 +15 -6
  1142. data/vendor/local/share/man/man3/gnutls_global_init.3 +23 -18
  1143. data/vendor/local/share/man/man3/gnutls_global_set_audit_log_function.3 +50 -0
  1144. data/vendor/local/share/man/man3/gnutls_global_set_log_function.3 +20 -11
  1145. data/vendor/local/share/man/man3/gnutls_global_set_log_level.3 +20 -11
  1146. data/vendor/local/share/man/man3/gnutls_global_set_mem_functions.3 +24 -14
  1147. data/vendor/local/share/man/man3/gnutls_global_set_mutex.3 +56 -0
  1148. data/vendor/local/share/man/man3/gnutls_global_set_time_function.3 +46 -0
  1149. data/vendor/local/share/man/man3/gnutls_handshake.3 +20 -9
  1150. data/vendor/local/share/man/man3/gnutls_handshake_get_last_in.3 +15 -6
  1151. data/vendor/local/share/man/man3/gnutls_handshake_get_last_out.3 +15 -6
  1152. data/vendor/local/share/man/man3/gnutls_handshake_set_max_packet_length.3 +15 -6
  1153. data/vendor/local/share/man/man3/gnutls_handshake_set_post_client_hello_function.3 +18 -8
  1154. data/vendor/local/share/man/man3/gnutls_handshake_set_private_extensions.3 +18 -11
  1155. data/vendor/local/share/man/man3/gnutls_handshake_set_timeout.3 +49 -0
  1156. data/vendor/local/share/man/man3/gnutls_hash.3 +51 -0
  1157. data/vendor/local/share/man/man3/gnutls_hash_deinit.3 +47 -0
  1158. data/vendor/local/share/man/man3/gnutls_hash_fast.3 +53 -0
  1159. data/vendor/local/share/man/man3/gnutls_hash_get_len.3 +47 -0
  1160. data/vendor/local/share/man/man3/gnutls_hash_init.3 +51 -0
  1161. data/vendor/local/share/man/man3/gnutls_hash_output.3 +46 -0
  1162. data/vendor/local/share/man/man3/gnutls_heartbeat_allowed.3 +49 -0
  1163. data/vendor/local/share/man/man3/gnutls_heartbeat_enable.3 +47 -0
  1164. data/vendor/local/share/man/man3/gnutls_heartbeat_get_timeout.3 +50 -0
  1165. data/vendor/local/share/man/man3/gnutls_heartbeat_ping.3 +57 -0
  1166. data/vendor/local/share/man/man3/gnutls_heartbeat_pong.3 +48 -0
  1167. data/vendor/local/share/man/man3/gnutls_heartbeat_set_timeouts.3 +58 -0
  1168. data/vendor/local/share/man/man3/gnutls_hex2bin.3 +20 -11
  1169. data/vendor/local/share/man/man3/gnutls_hex_decode.3 +19 -10
  1170. data/vendor/local/share/man/man3/gnutls_hex_encode.3 +15 -6
  1171. data/vendor/local/share/man/man3/gnutls_hmac.3 +51 -0
  1172. data/vendor/local/share/man/man3/gnutls_hmac_deinit.3 +47 -0
  1173. data/vendor/local/share/man/man3/gnutls_hmac_fast.3 +57 -0
  1174. data/vendor/local/share/man/man3/gnutls_hmac_get_len.3 +47 -0
  1175. data/vendor/local/share/man/man3/gnutls_hmac_init.3 +55 -0
  1176. data/vendor/local/share/man/man3/gnutls_hmac_output.3 +46 -0
  1177. data/vendor/local/share/man/man3/gnutls_init.3 +27 -10
  1178. data/vendor/local/share/man/man3/gnutls_key_generate.3 +50 -0
  1179. data/vendor/local/share/man/man3/gnutls_kx_get.3 +15 -6
  1180. data/vendor/local/share/man/man3/gnutls_kx_get_id.3 +18 -8
  1181. data/vendor/local/share/man/man3/gnutls_kx_get_name.3 +15 -6
  1182. data/vendor/local/share/man/man3/gnutls_kx_list.3 +18 -7
  1183. data/vendor/local/share/man/man3/gnutls_kx_set_priority.3 +21 -12
  1184. data/vendor/local/share/man/man3/gnutls_load_file.3 +51 -0
  1185. data/vendor/local/share/man/man3/gnutls_mac_get.3 +15 -6
  1186. data/vendor/local/share/man/man3/gnutls_mac_get_id.3 +20 -10
  1187. data/vendor/local/share/man/man3/gnutls_mac_get_key_size.3 +15 -6
  1188. data/vendor/local/share/man/man3/gnutls_mac_get_name.3 +15 -6
  1189. data/vendor/local/share/man/man3/gnutls_mac_list.3 +18 -7
  1190. data/vendor/local/share/man/man3/gnutls_mac_set_priority.3 +21 -12
  1191. data/vendor/local/share/man/man3/gnutls_ocsp_req_add_cert.3 +55 -0
  1192. data/vendor/local/share/man/man3/gnutls_ocsp_req_add_cert_id.3 +66 -0
  1193. data/vendor/local/share/man/man3/gnutls_ocsp_req_deinit.3 +42 -0
  1194. data/vendor/local/share/man/man3/gnutls_ocsp_req_export.3 +47 -0
  1195. data/vendor/local/share/man/man3/gnutls_ocsp_req_get_cert_id.3 +70 -0
  1196. data/vendor/local/share/man/man3/gnutls_ocsp_req_get_extension.3 +63 -0
  1197. data/vendor/local/share/man/man3/gnutls_ocsp_req_get_nonce.3 +52 -0
  1198. data/vendor/local/share/man/man3/gnutls_ocsp_req_get_version.3 +45 -0
  1199. data/vendor/local/share/man/man3/gnutls_ocsp_req_import.3 +49 -0
  1200. data/vendor/local/share/man/man3/gnutls_ocsp_req_init.3 +45 -0
  1201. data/vendor/local/share/man/man3/gnutls_ocsp_req_print.3 +55 -0
  1202. data/vendor/local/share/man/man3/gnutls_ocsp_req_randomize_nonce.3 +46 -0
  1203. data/vendor/local/share/man/man3/gnutls_ocsp_req_set_extension.3 +53 -0
  1204. data/vendor/local/share/man/man3/gnutls_ocsp_req_set_nonce.3 +51 -0
  1205. data/vendor/local/share/man/man3/gnutls_ocsp_resp_check_crt.3 +50 -0
  1206. data/vendor/local/share/man/man3/gnutls_ocsp_resp_deinit.3 +42 -0
  1207. data/vendor/local/share/man/man3/gnutls_ocsp_resp_export.3 +47 -0
  1208. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_certs.3 +60 -0
  1209. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_extension.3 +63 -0
  1210. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_nonce.3 +53 -0
  1211. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_produced.3 +45 -0
  1212. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_responder.3 +53 -0
  1213. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_response.3 +58 -0
  1214. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_signature.3 +47 -0
  1215. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_signature_algorithm.3 +47 -0
  1216. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_single.3 +73 -0
  1217. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_status.3 +46 -0
  1218. data/vendor/local/share/man/man3/gnutls_ocsp_resp_get_version.3 +46 -0
  1219. data/vendor/local/share/man/man3/gnutls_ocsp_resp_import.3 +49 -0
  1220. data/vendor/local/share/man/man3/gnutls_ocsp_resp_init.3 +45 -0
  1221. data/vendor/local/share/man/man3/gnutls_ocsp_resp_print.3 +55 -0
  1222. data/vendor/local/share/man/man3/gnutls_ocsp_resp_verify.3 +68 -0
  1223. data/vendor/local/share/man/man3/gnutls_ocsp_resp_verify_direct.3 +62 -0
  1224. data/vendor/local/share/man/man3/gnutls_ocsp_status_request_enable_client.3 +54 -0
  1225. data/vendor/local/share/man/man3/gnutls_ocsp_status_request_get.3 +50 -0
  1226. data/vendor/local/share/man/man3/gnutls_ocsp_status_request_is_checked.3 +51 -0
  1227. data/vendor/local/share/man/man3/gnutls_openpgp_crt_check_hostname.3 +17 -8
  1228. data/vendor/local/share/man/man3/gnutls_openpgp_crt_deinit.3 +15 -6
  1229. data/vendor/local/share/man/man3/gnutls_openpgp_crt_export.3 +16 -7
  1230. data/vendor/local/share/man/man3/gnutls_openpgp_crt_export2.3 +49 -0
  1231. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_auth_subkey.3 +18 -8
  1232. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_creation_time.3 +15 -6
  1233. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_expiration_time.3 +15 -6
  1234. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_fingerprint.3 +15 -6
  1235. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_key_id.3 +15 -6
  1236. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_key_usage.3 +15 -6
  1237. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_name.3 +19 -9
  1238. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_pk_algorithm.3 +16 -7
  1239. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_pk_dsa_raw.3 +16 -7
  1240. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_pk_rsa_raw.3 +16 -7
  1241. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_preferred_key_id.3 +15 -6
  1242. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_revoked_status.3 +15 -6
  1243. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_count.3 +16 -7
  1244. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_creation_time.3 +15 -6
  1245. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_expiration_time.3 +15 -6
  1246. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_fingerprint.3 +15 -6
  1247. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_id.3 +15 -6
  1248. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_idx.3 +15 -6
  1249. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_pk_algorithm.3 +16 -7
  1250. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_pk_dsa_raw.3 +16 -7
  1251. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_pk_rsa_raw.3 +16 -7
  1252. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_revoked_status.3 +16 -7
  1253. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_subkey_usage.3 +16 -7
  1254. data/vendor/local/share/man/man3/gnutls_openpgp_crt_get_version.3 +16 -7
  1255. data/vendor/local/share/man/man3/gnutls_openpgp_crt_import.3 +15 -6
  1256. data/vendor/local/share/man/man3/gnutls_openpgp_crt_init.3 +15 -6
  1257. data/vendor/local/share/man/man3/gnutls_openpgp_crt_print.3 +18 -9
  1258. data/vendor/local/share/man/man3/gnutls_openpgp_crt_set_preferred_key_id.3 +21 -6
  1259. data/vendor/local/share/man/man3/gnutls_openpgp_crt_verify_ring.3 +20 -7
  1260. data/vendor/local/share/man/man3/gnutls_openpgp_crt_verify_self.3 +16 -7
  1261. data/vendor/local/share/man/man3/gnutls_openpgp_keyring_check_id.3 +15 -6
  1262. data/vendor/local/share/man/man3/gnutls_openpgp_keyring_deinit.3 +15 -6
  1263. data/vendor/local/share/man/man3/gnutls_openpgp_keyring_get_crt.3 +17 -6
  1264. data/vendor/local/share/man/man3/gnutls_openpgp_keyring_get_crt_count.3 +16 -7
  1265. data/vendor/local/share/man/man3/gnutls_openpgp_keyring_import.3 +15 -6
  1266. data/vendor/local/share/man/man3/gnutls_openpgp_keyring_init.3 +15 -6
  1267. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_deinit.3 +15 -6
  1268. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export.3 +19 -10
  1269. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export2.3 +55 -0
  1270. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_dsa_raw.3 +16 -7
  1271. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_rsa_raw.3 +16 -7
  1272. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_subkey_dsa_raw.3 +16 -7
  1273. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_export_subkey_rsa_raw.3 +16 -7
  1274. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_fingerprint.3 +15 -6
  1275. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_key_id.3 +15 -6
  1276. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_pk_algorithm.3 +16 -7
  1277. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_preferred_key_id.3 +15 -6
  1278. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_revoked_status.3 +16 -7
  1279. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_count.3 +16 -7
  1280. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_creation_time.3 +15 -6
  1281. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_fingerprint.3 +15 -6
  1282. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_id.3 +15 -6
  1283. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_idx.3 +15 -6
  1284. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_pk_algorithm.3 +16 -7
  1285. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_get_subkey_revoked_status.3 +18 -9
  1286. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_import.3 +20 -11
  1287. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_init.3 +15 -6
  1288. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_sec_param.3 +48 -0
  1289. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_set_preferred_key_id.3 +22 -9
  1290. data/vendor/local/share/man/man3/gnutls_openpgp_privkey_sign_hash.3 +21 -10
  1291. data/vendor/local/share/man/man3/gnutls_openpgp_send_cert.3 +15 -6
  1292. data/vendor/local/share/man/man3/gnutls_openpgp_set_recv_key_function.3 +16 -7
  1293. data/vendor/local/share/man/man3/gnutls_pcert_deinit.3 +44 -0
  1294. data/vendor/local/share/man/man3/gnutls_pcert_import_openpgp.3 +53 -0
  1295. data/vendor/local/share/man/man3/gnutls_pcert_import_openpgp_raw.3 +57 -0
  1296. data/vendor/local/share/man/man3/gnutls_pcert_import_x509.3 +53 -0
  1297. data/vendor/local/share/man/man3/gnutls_pcert_import_x509_raw.3 +55 -0
  1298. data/vendor/local/share/man/man3/gnutls_pcert_list_import_x509_raw.3 +59 -0
  1299. data/vendor/local/share/man/man3/gnutls_pem_base64_decode.3 +15 -6
  1300. data/vendor/local/share/man/man3/gnutls_pem_base64_decode_alloc.3 +15 -6
  1301. data/vendor/local/share/man/man3/gnutls_pem_base64_encode.3 +15 -6
  1302. data/vendor/local/share/man/man3/gnutls_pem_base64_encode_alloc.3 +15 -6
  1303. data/vendor/local/share/man/man3/gnutls_perror.3 +18 -9
  1304. data/vendor/local/share/man/man3/gnutls_pk_algorithm_get_name.3 +15 -6
  1305. data/vendor/local/share/man/man3/gnutls_pk_bits_to_sec_param.3 +50 -0
  1306. data/vendor/local/share/man/man3/gnutls_pk_get_id.3 +49 -0
  1307. data/vendor/local/share/man/man3/gnutls_pk_get_name.3 +47 -0
  1308. data/vendor/local/share/man/man3/gnutls_pk_list.3 +49 -0
  1309. data/vendor/local/share/man/man3/gnutls_pk_to_sign.3 +47 -0
  1310. data/vendor/local/share/man/man3/gnutls_pkcs11_add_provider.3 +51 -0
  1311. data/vendor/local/share/man/man3/gnutls_pkcs11_copy_secret_key.3 +56 -0
  1312. data/vendor/local/share/man/man3/gnutls_pkcs11_copy_x509_crt.3 +54 -0
  1313. data/vendor/local/share/man/man3/gnutls_pkcs11_copy_x509_privkey.3 +57 -0
  1314. data/vendor/local/share/man/man3/gnutls_pkcs11_deinit.3 +44 -0
  1315. data/vendor/local/share/man/man3/gnutls_pkcs11_delete_url.3 +50 -0
  1316. data/vendor/local/share/man/man3/gnutls_pkcs11_get_pin_function.3 +47 -0
  1317. data/vendor/local/share/man/man3/gnutls_pkcs11_init.3 +57 -0
  1318. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_deinit.3 +44 -0
  1319. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_export.3 +61 -0
  1320. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_export2.3 +56 -0
  1321. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_export_url.3 +51 -0
  1322. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_get_info.3 +55 -0
  1323. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_get_type.3 +47 -0
  1324. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_import_url.3 +54 -0
  1325. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_init.3 +47 -0
  1326. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_list_import_url.3 +56 -0
  1327. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_list_import_url2.3 +57 -0
  1328. data/vendor/local/share/man/man3/gnutls_pkcs11_obj_set_pin_function.3 +50 -0
  1329. data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_deinit.3 +42 -0
  1330. data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_export_url.3 +49 -0
  1331. data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_generate.3 +57 -0
  1332. data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_generate2.3 +63 -0
  1333. data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_get_info.3 +53 -0
  1334. data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_get_pk_algorithm.3 +48 -0
  1335. data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_import_url.3 +52 -0
  1336. data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_init.3 +45 -0
  1337. data/vendor/local/share/man/man3/gnutls_pkcs11_privkey_set_pin_function.3 +50 -0
  1338. data/vendor/local/share/man/man3/gnutls_pkcs11_reinit.3 +49 -0
  1339. data/vendor/local/share/man/man3/gnutls_pkcs11_set_pin_function.3 +48 -0
  1340. data/vendor/local/share/man/man3/gnutls_pkcs11_set_token_function.3 +47 -0
  1341. data/vendor/local/share/man/man3/gnutls_pkcs11_token_get_flags.3 +49 -0
  1342. data/vendor/local/share/man/man3/gnutls_pkcs11_token_get_info.3 +54 -0
  1343. data/vendor/local/share/man/man3/gnutls_pkcs11_token_get_mechanism.3 +52 -0
  1344. data/vendor/local/share/man/man3/gnutls_pkcs11_token_get_url.3 +53 -0
  1345. data/vendor/local/share/man/man3/gnutls_pkcs11_token_init.3 +51 -0
  1346. data/vendor/local/share/man/man3/gnutls_pkcs11_token_set_pin.3 +53 -0
  1347. data/vendor/local/share/man/man3/gnutls_pkcs11_type_get_name.3 +49 -0
  1348. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_decrypt.3 +21 -8
  1349. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_deinit.3 +16 -7
  1350. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_encrypt.3 +21 -9
  1351. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_count.3 +19 -7
  1352. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_data.3 +18 -9
  1353. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_friendly_name.3 +20 -10
  1354. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_key_id.3 +19 -9
  1355. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_get_type.3 +18 -8
  1356. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_init.3 +18 -9
  1357. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_crl.3 +16 -7
  1358. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_crt.3 +15 -6
  1359. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_data.3 +15 -6
  1360. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_friendly_name.3 +21 -11
  1361. data/vendor/local/share/man/man3/gnutls_pkcs12_bag_set_key_id.3 +21 -11
  1362. data/vendor/local/share/man/man3/gnutls_pkcs12_deinit.3 +16 -7
  1363. data/vendor/local/share/man/man3/gnutls_pkcs12_export.3 +17 -8
  1364. data/vendor/local/share/man/man3/gnutls_pkcs12_export2.3 +56 -0
  1365. data/vendor/local/share/man/man3/gnutls_pkcs12_generate_mac.3 +16 -7
  1366. data/vendor/local/share/man/man3/gnutls_pkcs12_get_bag.3 +19 -10
  1367. data/vendor/local/share/man/man3/gnutls_pkcs12_import.3 +16 -7
  1368. data/vendor/local/share/man/man3/gnutls_pkcs12_init.3 +16 -7
  1369. data/vendor/local/share/man/man3/gnutls_pkcs12_set_bag.3 +16 -7
  1370. data/vendor/local/share/man/man3/gnutls_pkcs12_simple_parse.3 +93 -0
  1371. data/vendor/local/share/man/man3/gnutls_pkcs12_verify_mac.3 +16 -7
  1372. data/vendor/local/share/man/man3/gnutls_pkcs7_deinit.3 +15 -6
  1373. data/vendor/local/share/man/man3/gnutls_pkcs7_delete_crl.3 +17 -7
  1374. data/vendor/local/share/man/man3/gnutls_pkcs7_delete_crt.3 +17 -7
  1375. data/vendor/local/share/man/man3/gnutls_pkcs7_export.3 +19 -10
  1376. data/vendor/local/share/man/man3/gnutls_pkcs7_export2.3 +54 -0
  1377. data/vendor/local/share/man/man3/gnutls_pkcs7_get_crl_count.3 +17 -7
  1378. data/vendor/local/share/man/man3/gnutls_pkcs7_get_crl_raw.3 +18 -8
  1379. data/vendor/local/share/man/man3/gnutls_pkcs7_get_crt_count.3 +17 -7
  1380. data/vendor/local/share/man/man3/gnutls_pkcs7_get_crt_raw.3 +18 -8
  1381. data/vendor/local/share/man/man3/gnutls_pkcs7_import.3 +17 -8
  1382. data/vendor/local/share/man/man3/gnutls_pkcs7_init.3 +16 -7
  1383. data/vendor/local/share/man/man3/gnutls_pkcs7_set_crl.3 +17 -7
  1384. data/vendor/local/share/man/man3/gnutls_pkcs7_set_crl_raw.3 +17 -7
  1385. data/vendor/local/share/man/man3/gnutls_pkcs7_set_crt.3 +17 -7
  1386. data/vendor/local/share/man/man3/gnutls_pkcs7_set_crt_raw.3 +17 -7
  1387. data/vendor/local/share/man/man3/gnutls_prf.3 +28 -19
  1388. data/vendor/local/share/man/man3/gnutls_prf_raw.3 +25 -16
  1389. data/vendor/local/share/man/man3/gnutls_priority_certificate_type_list.3 +49 -0
  1390. data/vendor/local/share/man/man3/gnutls_priority_compression_list.3 +49 -0
  1391. data/vendor/local/share/man/man3/gnutls_priority_deinit.3 +15 -6
  1392. data/vendor/local/share/man/man3/gnutls_priority_ecc_curve_list.3 +49 -0
  1393. data/vendor/local/share/man/man3/gnutls_priority_get_cipher_suite_index.3 +54 -0
  1394. data/vendor/local/share/man/man3/gnutls_priority_init.3 +58 -53
  1395. data/vendor/local/share/man/man3/gnutls_priority_protocol_list.3 +49 -0
  1396. data/vendor/local/share/man/man3/gnutls_priority_set.3 +16 -7
  1397. data/vendor/local/share/man/man3/gnutls_priority_set_direct.3 +16 -7
  1398. data/vendor/local/share/man/man3/gnutls_priority_sign_list.3 +49 -0
  1399. data/vendor/local/share/man/man3/gnutls_privkey_decrypt_data.3 +54 -0
  1400. data/vendor/local/share/man/man3/gnutls_privkey_deinit.3 +44 -0
  1401. data/vendor/local/share/man/man3/gnutls_privkey_get_pk_algorithm.3 +51 -0
  1402. data/vendor/local/share/man/man3/gnutls_privkey_get_type.3 +48 -0
  1403. data/vendor/local/share/man/man3/gnutls_privkey_import_ext.3 +59 -0
  1404. data/vendor/local/share/man/man3/gnutls_privkey_import_ext2.3 +62 -0
  1405. data/vendor/local/share/man/man3/gnutls_privkey_import_openpgp.3 +59 -0
  1406. data/vendor/local/share/man/man3/gnutls_privkey_import_openpgp_raw.3 +56 -0
  1407. data/vendor/local/share/man/man3/gnutls_privkey_import_pkcs11.3 +58 -0
  1408. data/vendor/local/share/man/man3/gnutls_privkey_import_pkcs11_url.3 +50 -0
  1409. data/vendor/local/share/man/man3/gnutls_privkey_import_tpm_raw.3 +60 -0
  1410. data/vendor/local/share/man/man3/gnutls_privkey_import_tpm_url.3 +64 -0
  1411. data/vendor/local/share/man/man3/gnutls_privkey_import_url.3 +53 -0
  1412. data/vendor/local/share/man/man3/gnutls_privkey_import_x509.3 +58 -0
  1413. data/vendor/local/share/man/man3/gnutls_privkey_import_x509_raw.3 +59 -0
  1414. data/vendor/local/share/man/man3/gnutls_privkey_init.3 +47 -0
  1415. data/vendor/local/share/man/man3/gnutls_privkey_set_pin_function.3 +53 -0
  1416. data/vendor/local/share/man/man3/gnutls_privkey_sign_data.3 +61 -0
  1417. data/vendor/local/share/man/man3/gnutls_privkey_sign_hash.3 +61 -0
  1418. data/vendor/local/share/man/man3/gnutls_protocol_get_id.3 +18 -8
  1419. data/vendor/local/share/man/man3/gnutls_protocol_get_name.3 +15 -6
  1420. data/vendor/local/share/man/man3/gnutls_protocol_get_version.3 +16 -7
  1421. data/vendor/local/share/man/man3/gnutls_protocol_list.3 +18 -7
  1422. data/vendor/local/share/man/man3/gnutls_protocol_set_priority.3 +16 -7
  1423. data/vendor/local/share/man/man3/gnutls_psk_allocate_client_credentials.3 +18 -8
  1424. data/vendor/local/share/man/man3/gnutls_psk_allocate_server_credentials.3 +18 -8
  1425. data/vendor/local/share/man/man3/gnutls_psk_client_get_hint.3 +15 -6
  1426. data/vendor/local/share/man/man3/gnutls_psk_free_client_credentials.3 +16 -7
  1427. data/vendor/local/share/man/man3/gnutls_psk_free_server_credentials.3 +16 -7
  1428. data/vendor/local/share/man/man3/gnutls_psk_server_get_username.3 +15 -6
  1429. data/vendor/local/share/man/man3/gnutls_psk_set_client_credentials.3 +25 -13
  1430. data/vendor/local/share/man/man3/gnutls_psk_set_client_credentials_function.3 +20 -11
  1431. data/vendor/local/share/man/man3/gnutls_psk_set_params_function.3 +17 -8
  1432. data/vendor/local/share/man/man3/gnutls_psk_set_server_credentials_file.3 +20 -10
  1433. data/vendor/local/share/man/man3/gnutls_psk_set_server_credentials_function.3 +20 -11
  1434. data/vendor/local/share/man/man3/gnutls_psk_set_server_credentials_hint.3 +18 -8
  1435. data/vendor/local/share/man/man3/gnutls_psk_set_server_dh_params.3 +19 -10
  1436. data/vendor/local/share/man/man3/gnutls_psk_set_server_params_function.3 +18 -9
  1437. data/vendor/local/share/man/man3/gnutls_pubkey_deinit.3 +44 -0
  1438. data/vendor/local/share/man/man3/gnutls_pubkey_encrypt_data.3 +54 -0
  1439. data/vendor/local/share/man/man3/gnutls_pubkey_export.3 +63 -0
  1440. data/vendor/local/share/man/man3/gnutls_pubkey_export2.3 +58 -0
  1441. data/vendor/local/share/man/man3/gnutls_pubkey_get_key_id.3 +61 -0
  1442. data/vendor/local/share/man/man3/gnutls_pubkey_get_key_usage.3 +49 -0
  1443. data/vendor/local/share/man/man3/gnutls_pubkey_get_openpgp_key_id.3 +62 -0
  1444. data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_algorithm.3 +51 -0
  1445. data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_dsa_raw.3 +56 -0
  1446. data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_ecc_raw.3 +54 -0
  1447. data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_ecc_x962.3 +52 -0
  1448. data/vendor/local/share/man/man3/gnutls_pubkey_get_pk_rsa_raw.3 +52 -0
  1449. data/vendor/local/share/man/man3/gnutls_pubkey_get_preferred_hash_algorithm.3 +53 -0
  1450. data/vendor/local/share/man/man3/gnutls_pubkey_get_verify_algorithm.3 +52 -0
  1451. data/vendor/local/share/man/man3/gnutls_pubkey_import.3 +55 -0
  1452. data/vendor/local/share/man/man3/gnutls_pubkey_import_dsa_raw.3 +57 -0
  1453. data/vendor/local/share/man/man3/gnutls_pubkey_import_ecc_raw.3 +54 -0
  1454. data/vendor/local/share/man/man3/gnutls_pubkey_import_ecc_x962.3 +52 -0
  1455. data/vendor/local/share/man/man3/gnutls_pubkey_import_openpgp.3 +54 -0
  1456. data/vendor/local/share/man/man3/gnutls_pubkey_import_openpgp_raw.3 +56 -0
  1457. data/vendor/local/share/man/man3/gnutls_pubkey_import_pkcs11.3 +52 -0
  1458. data/vendor/local/share/man/man3/gnutls_pubkey_import_pkcs11_url.3 +52 -0
  1459. data/vendor/local/share/man/man3/gnutls_pubkey_import_privkey.3 +54 -0
  1460. data/vendor/local/share/man/man3/gnutls_pubkey_import_rsa_raw.3 +52 -0
  1461. data/vendor/local/share/man/man3/gnutls_pubkey_import_tpm_raw.3 +59 -0
  1462. data/vendor/local/share/man/man3/gnutls_pubkey_import_tpm_url.3 +60 -0
  1463. data/vendor/local/share/man/man3/gnutls_pubkey_import_url.3 +52 -0
  1464. data/vendor/local/share/man/man3/gnutls_pubkey_import_x509.3 +52 -0
  1465. data/vendor/local/share/man/man3/gnutls_pubkey_import_x509_crq.3 +52 -0
  1466. data/vendor/local/share/man/man3/gnutls_pubkey_import_x509_raw.3 +54 -0
  1467. data/vendor/local/share/man/man3/gnutls_pubkey_init.3 +47 -0
  1468. data/vendor/local/share/man/man3/gnutls_pubkey_print.3 +57 -0
  1469. data/vendor/local/share/man/man3/gnutls_pubkey_set_key_usage.3 +51 -0
  1470. data/vendor/local/share/man/man3/gnutls_pubkey_set_pin_function.3 +53 -0
  1471. data/vendor/local/share/man/man3/gnutls_pubkey_verify_data.3 +56 -0
  1472. data/vendor/local/share/man/man3/gnutls_pubkey_verify_data2.3 +56 -0
  1473. data/vendor/local/share/man/man3/gnutls_pubkey_verify_hash.3 +56 -0
  1474. data/vendor/local/share/man/man3/gnutls_pubkey_verify_hash2.3 +56 -0
  1475. data/vendor/local/share/man/man3/gnutls_random_art.3 +56 -0
  1476. data/vendor/local/share/man/man3/gnutls_record_check_pending.3 +21 -12
  1477. data/vendor/local/share/man/man3/gnutls_record_disable_padding.3 +17 -8
  1478. data/vendor/local/share/man/man3/gnutls_record_get_direction.3 +15 -6
  1479. data/vendor/local/share/man/man3/gnutls_record_get_discarded.3 +47 -0
  1480. data/vendor/local/share/man/man3/gnutls_record_get_max_size.3 +19 -9
  1481. data/vendor/local/share/man/man3/gnutls_record_recv.3 +25 -19
  1482. data/vendor/local/share/man/man3/gnutls_record_recv_seq.3 +59 -0
  1483. data/vendor/local/share/man/man3/gnutls_record_send.3 +26 -18
  1484. data/vendor/local/share/man/man3/gnutls_record_set_max_size.3 +21 -9
  1485. data/vendor/local/share/man/man3/gnutls_rehandshake.3 +23 -7
  1486. data/vendor/local/share/man/man3/gnutls_rnd.3 +51 -0
  1487. data/vendor/local/share/man/man3/gnutls_rsa_export_get_modulus_bits.3 +18 -9
  1488. data/vendor/local/share/man/man3/gnutls_rsa_export_get_pubkey.3 +16 -7
  1489. data/vendor/local/share/man/man3/gnutls_rsa_params_cpy.3 +18 -7
  1490. data/vendor/local/share/man/man3/gnutls_rsa_params_deinit.3 +16 -7
  1491. data/vendor/local/share/man/man3/gnutls_rsa_params_export_pkcs1.3 +20 -12
  1492. data/vendor/local/share/man/man3/gnutls_rsa_params_export_raw.3 +20 -9
  1493. data/vendor/local/share/man/man3/gnutls_rsa_params_generate2.3 +21 -10
  1494. data/vendor/local/share/man/man3/gnutls_rsa_params_import_pkcs1.3 +21 -13
  1495. data/vendor/local/share/man/man3/gnutls_rsa_params_import_raw.3 +20 -8
  1496. data/vendor/local/share/man/man3/gnutls_rsa_params_init.3 +18 -7
  1497. data/vendor/local/share/man/man3/gnutls_safe_renegotiation_status.3 +48 -0
  1498. data/vendor/local/share/man/man3/gnutls_sec_param_get_name.3 +47 -0
  1499. data/vendor/local/share/man/man3/gnutls_sec_param_to_pk_bits.3 +52 -0
  1500. data/vendor/local/share/man/man3/gnutls_server_name_get.3 +30 -15
  1501. data/vendor/local/share/man/man3/gnutls_server_name_set.3 +26 -13
  1502. data/vendor/local/share/man/man3/gnutls_session_channel_binding.3 +54 -0
  1503. data/vendor/local/share/man/man3/gnutls_session_enable_compatibility_mode.3 +17 -8
  1504. data/vendor/local/share/man/man3/gnutls_session_get_data.3 +19 -14
  1505. data/vendor/local/share/man/man3/gnutls_session_get_data2.3 +21 -14
  1506. data/vendor/local/share/man/man3/gnutls_session_get_id.3 +19 -10
  1507. data/vendor/local/share/man/man3/gnutls_session_get_id2.3 +50 -0
  1508. data/vendor/local/share/man/man3/gnutls_session_get_ptr.3 +15 -6
  1509. data/vendor/local/share/man/man3/gnutls_session_get_random.3 +53 -0
  1510. data/vendor/local/share/man/man3/gnutls_session_is_resumed.3 +15 -6
  1511. data/vendor/local/share/man/man3/gnutls_session_resumption_requested.3 +45 -0
  1512. data/vendor/local/share/man/man3/gnutls_session_set_data.3 +15 -6
  1513. data/vendor/local/share/man/man3/gnutls_session_set_premaster.3 +64 -0
  1514. data/vendor/local/share/man/man3/gnutls_session_set_ptr.3 +17 -8
  1515. data/vendor/local/share/man/man3/gnutls_session_ticket_enable_client.3 +48 -0
  1516. data/vendor/local/share/man/man3/gnutls_session_ticket_enable_server.3 +51 -0
  1517. data/vendor/local/share/man/man3/gnutls_session_ticket_key_generate.3 +49 -0
  1518. data/vendor/local/share/man/man3/gnutls_set_default_export_priority.3 +18 -8
  1519. data/vendor/local/share/man/man3/gnutls_set_default_priority.3 +17 -7
  1520. data/vendor/local/share/man/man3/gnutls_sign_algorithm_get.3 +47 -0
  1521. data/vendor/local/share/man/man3/gnutls_sign_algorithm_get_requested.3 +59 -0
  1522. data/vendor/local/share/man/man3/gnutls_sign_callback_get.3 +18 -7
  1523. data/vendor/local/share/man/man3/gnutls_sign_callback_set.3 +18 -7
  1524. data/vendor/local/share/man/man3/gnutls_sign_get_hash_algorithm.3 +47 -0
  1525. data/vendor/local/share/man/man3/gnutls_sign_get_id.3 +45 -0
  1526. data/vendor/local/share/man/man3/gnutls_sign_get_name.3 +45 -0
  1527. data/vendor/local/share/man/man3/gnutls_sign_get_pk_algorithm.3 +47 -0
  1528. data/vendor/local/share/man/man3/gnutls_sign_is_secure.3 +42 -0
  1529. data/vendor/local/share/man/man3/gnutls_sign_list.3 +45 -0
  1530. data/vendor/local/share/man/man3/gnutls_srp_allocate_client_credentials.3 +16 -7
  1531. data/vendor/local/share/man/man3/gnutls_srp_allocate_server_credentials.3 +16 -7
  1532. data/vendor/local/share/man/man3/gnutls_srp_base64_decode.3 +16 -7
  1533. data/vendor/local/share/man/man3/gnutls_srp_base64_decode_alloc.3 +15 -6
  1534. data/vendor/local/share/man/man3/gnutls_srp_base64_encode.3 +15 -6
  1535. data/vendor/local/share/man/man3/gnutls_srp_base64_encode_alloc.3 +15 -6
  1536. data/vendor/local/share/man/man3/gnutls_srp_free_client_credentials.3 +16 -7
  1537. data/vendor/local/share/man/man3/gnutls_srp_free_server_credentials.3 +16 -7
  1538. data/vendor/local/share/man/man3/gnutls_srp_server_get_username.3 +15 -6
  1539. data/vendor/local/share/man/man3/gnutls_srp_set_client_credentials.3 +17 -8
  1540. data/vendor/local/share/man/man3/gnutls_srp_set_client_credentials_function.3 +23 -15
  1541. data/vendor/local/share/man/man3/gnutls_srp_set_prime_bits.3 +54 -0
  1542. data/vendor/local/share/man/man3/gnutls_srp_set_server_credentials_file.3 +18 -9
  1543. data/vendor/local/share/man/man3/gnutls_srp_set_server_credentials_function.3 +24 -15
  1544. data/vendor/local/share/man/man3/gnutls_srp_verifier.3 +19 -12
  1545. data/vendor/local/share/man/man3/gnutls_srtp_get_keys.3 +63 -0
  1546. data/vendor/local/share/man/man3/gnutls_srtp_get_mki.3 +51 -0
  1547. data/vendor/local/share/man/man3/gnutls_srtp_get_profile_id.3 +49 -0
  1548. data/vendor/local/share/man/man3/gnutls_srtp_get_profile_name.3 +48 -0
  1549. data/vendor/local/share/man/man3/gnutls_srtp_get_selected_profile.3 +49 -0
  1550. data/vendor/local/share/man/man3/gnutls_srtp_set_mki.3 +50 -0
  1551. data/vendor/local/share/man/man3/gnutls_srtp_set_profile.3 +50 -0
  1552. data/vendor/local/share/man/man3/gnutls_srtp_set_profile_direct.3 +53 -0
  1553. data/vendor/local/share/man/man3/gnutls_store_commitment.3 +69 -0
  1554. data/vendor/local/share/man/man3/gnutls_store_pubkey.3 +67 -0
  1555. data/vendor/local/share/man/man3/gnutls_strerror.3 +23 -10
  1556. data/vendor/local/share/man/man3/gnutls_strerror_name.3 +49 -0
  1557. data/vendor/local/share/man/man3/gnutls_supplemental_get_name.3 +46 -0
  1558. data/vendor/local/share/man/man3/gnutls_tdb_deinit.3 +42 -0
  1559. data/vendor/local/share/man/man3/gnutls_tdb_init.3 +45 -0
  1560. data/vendor/local/share/man/man3/gnutls_tdb_set_store_commitment_func.3 +49 -0
  1561. data/vendor/local/share/man/man3/gnutls_tdb_set_store_func.3 +49 -0
  1562. data/vendor/local/share/man/man3/gnutls_tdb_set_verify_func.3 +48 -0
  1563. data/vendor/local/share/man/man3/gnutls_tpm_get_registered.3 +48 -0
  1564. data/vendor/local/share/man/man3/gnutls_tpm_key_list_deinit.3 +44 -0
  1565. data/vendor/local/share/man/man3/gnutls_tpm_key_list_get_url.3 +56 -0
  1566. data/vendor/local/share/man/man3/gnutls_tpm_privkey_delete.3 +50 -0
  1567. data/vendor/local/share/man/man3/gnutls_tpm_privkey_generate.3 +73 -0
  1568. data/vendor/local/share/man/man3/gnutls_transport_get_ptr.3 +16 -7
  1569. data/vendor/local/share/man/man3/gnutls_transport_get_ptr2.3 +15 -6
  1570. data/vendor/local/share/man/man3/gnutls_transport_set_errno.3 +21 -17
  1571. data/vendor/local/share/man/man3/gnutls_transport_set_errno_function.3 +51 -0
  1572. data/vendor/local/share/man/man3/gnutls_transport_set_ptr.3 +18 -9
  1573. data/vendor/local/share/man/man3/gnutls_transport_set_ptr2.3 +19 -10
  1574. data/vendor/local/share/man/man3/gnutls_transport_set_pull_function.3 +22 -12
  1575. data/vendor/local/share/man/man3/gnutls_transport_set_pull_timeout_function.3 +55 -0
  1576. data/vendor/local/share/man/man3/gnutls_transport_set_push_function.3 +24 -13
  1577. data/vendor/local/share/man/man3/gnutls_transport_set_vec_push_function.3 +52 -0
  1578. data/vendor/local/share/man/man3/gnutls_url_is_supported.3 +48 -0
  1579. data/vendor/local/share/man/man3/gnutls_verify_stored_pubkey.3 +76 -0
  1580. data/vendor/local/share/man/man3/gnutls_x509_crl_check_issuer.3 +24 -13
  1581. data/vendor/local/share/man/man3/gnutls_x509_crl_deinit.3 +15 -6
  1582. data/vendor/local/share/man/man3/gnutls_x509_crl_export.3 +18 -9
  1583. data/vendor/local/share/man/man3/gnutls_x509_crl_export2.3 +56 -0
  1584. data/vendor/local/share/man/man3/gnutls_x509_crl_get_authority_key_gn_serial.3 +66 -0
  1585. data/vendor/local/share/man/man3/gnutls_x509_crl_get_authority_key_id.3 +60 -0
  1586. data/vendor/local/share/man/man3/gnutls_x509_crl_get_crt_count.3 +16 -7
  1587. data/vendor/local/share/man/man3/gnutls_x509_crl_get_crt_serial.3 +17 -8
  1588. data/vendor/local/share/man/man3/gnutls_x509_crl_get_dn_oid.3 +16 -7
  1589. data/vendor/local/share/man/man3/gnutls_x509_crl_get_extension_data.3 +62 -0
  1590. data/vendor/local/share/man/man3/gnutls_x509_crl_get_extension_info.3 +65 -0
  1591. data/vendor/local/share/man/man3/gnutls_x509_crl_get_extension_oid.3 +57 -0
  1592. data/vendor/local/share/man/man3/gnutls_x509_crl_get_issuer_dn.3 +17 -8
  1593. data/vendor/local/share/man/man3/gnutls_x509_crl_get_issuer_dn_by_oid.3 +22 -13
  1594. data/vendor/local/share/man/man3/gnutls_x509_crl_get_next_update.3 +15 -6
  1595. data/vendor/local/share/man/man3/gnutls_x509_crl_get_number.3 +55 -0
  1596. data/vendor/local/share/man/man3/gnutls_x509_crl_get_raw_issuer_dn.3 +49 -0
  1597. data/vendor/local/share/man/man3/gnutls_x509_crl_get_signature.3 +18 -9
  1598. data/vendor/local/share/man/man3/gnutls_x509_crl_get_signature_algorithm.3 +16 -7
  1599. data/vendor/local/share/man/man3/gnutls_x509_crl_get_this_update.3 +15 -6
  1600. data/vendor/local/share/man/man3/gnutls_x509_crl_get_version.3 +16 -7
  1601. data/vendor/local/share/man/man3/gnutls_x509_crl_import.3 +16 -7
  1602. data/vendor/local/share/man/man3/gnutls_x509_crl_init.3 +16 -7
  1603. data/vendor/local/share/man/man3/gnutls_x509_crl_list_import.3 +58 -0
  1604. data/vendor/local/share/man/man3/gnutls_x509_crl_list_import2.3 +59 -0
  1605. data/vendor/local/share/man/man3/gnutls_x509_crl_print.3 +18 -9
  1606. data/vendor/local/share/man/man3/gnutls_x509_crl_privkey_sign.3 +59 -0
  1607. data/vendor/local/share/man/man3/gnutls_x509_crl_set_authority_key_id.3 +54 -0
  1608. data/vendor/local/share/man/man3/gnutls_x509_crl_set_crt.3 +18 -9
  1609. data/vendor/local/share/man/man3/gnutls_x509_crl_set_crt_serial.3 +17 -8
  1610. data/vendor/local/share/man/man3/gnutls_x509_crl_set_next_update.3 +16 -7
  1611. data/vendor/local/share/man/man3/gnutls_x509_crl_set_number.3 +53 -0
  1612. data/vendor/local/share/man/man3/gnutls_x509_crl_set_this_update.3 +16 -7
  1613. data/vendor/local/share/man/man3/gnutls_x509_crl_set_version.3 +16 -7
  1614. data/vendor/local/share/man/man3/gnutls_x509_crl_sign.3 +19 -8
  1615. data/vendor/local/share/man/man3/gnutls_x509_crl_sign2.3 +16 -7
  1616. data/vendor/local/share/man/man3/gnutls_x509_crl_verify.3 +19 -9
  1617. data/vendor/local/share/man/man3/gnutls_x509_crq_deinit.3 +17 -7
  1618. data/vendor/local/share/man/man3/gnutls_x509_crq_export.3 +23 -13
  1619. data/vendor/local/share/man/man3/gnutls_x509_crq_export2.3 +57 -0
  1620. data/vendor/local/share/man/man3/gnutls_x509_crq_get_attribute_by_oid.3 +25 -15
  1621. data/vendor/local/share/man/man3/gnutls_x509_crq_get_attribute_data.3 +62 -0
  1622. data/vendor/local/share/man/man3/gnutls_x509_crq_get_attribute_info.3 +63 -0
  1623. data/vendor/local/share/man/man3/gnutls_x509_crq_get_basic_constraints.3 +61 -0
  1624. data/vendor/local/share/man/man3/gnutls_x509_crq_get_challenge_password.3 +22 -12
  1625. data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn.3 +25 -17
  1626. data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn_by_oid.3 +23 -16
  1627. data/vendor/local/share/man/man3/gnutls_x509_crq_get_dn_oid.3 +22 -15
  1628. data/vendor/local/share/man/man3/gnutls_x509_crq_get_extension_by_oid.3 +62 -0
  1629. data/vendor/local/share/man/man3/gnutls_x509_crq_get_extension_data.3 +62 -0
  1630. data/vendor/local/share/man/man3/gnutls_x509_crq_get_extension_info.3 +65 -0
  1631. data/vendor/local/share/man/man3/gnutls_x509_crq_get_key_id.3 +61 -0
  1632. data/vendor/local/share/man/man3/gnutls_x509_crq_get_key_purpose_oid.3 +59 -0
  1633. data/vendor/local/share/man/man3/gnutls_x509_crq_get_key_rsa_raw.3 +53 -0
  1634. data/vendor/local/share/man/man3/gnutls_x509_crq_get_key_usage.3 +59 -0
  1635. data/vendor/local/share/man/man3/gnutls_x509_crq_get_pk_algorithm.3 +22 -14
  1636. data/vendor/local/share/man/man3/gnutls_x509_crq_get_private_key_usage_period.3 +52 -0
  1637. data/vendor/local/share/man/man3/gnutls_x509_crq_get_subject_alt_name.3 +69 -0
  1638. data/vendor/local/share/man/man3/gnutls_x509_crq_get_subject_alt_othername_oid.3 +67 -0
  1639. data/vendor/local/share/man/man3/gnutls_x509_crq_get_version.3 +19 -9
  1640. data/vendor/local/share/man/man3/gnutls_x509_crq_import.3 +21 -10
  1641. data/vendor/local/share/man/man3/gnutls_x509_crq_init.3 +18 -8
  1642. data/vendor/local/share/man/man3/gnutls_x509_crq_print.3 +54 -0
  1643. data/vendor/local/share/man/man3/gnutls_x509_crq_privkey_sign.3 +61 -0
  1644. data/vendor/local/share/man/man3/gnutls_x509_crq_set_attribute_by_oid.3 +22 -12
  1645. data/vendor/local/share/man/man3/gnutls_x509_crq_set_basic_constraints.3 +53 -0
  1646. data/vendor/local/share/man/man3/gnutls_x509_crq_set_challenge_password.3 +20 -10
  1647. data/vendor/local/share/man/man3/gnutls_x509_crq_set_dn_by_oid.3 +24 -14
  1648. data/vendor/local/share/man/man3/gnutls_x509_crq_set_key.3 +19 -10
  1649. data/vendor/local/share/man/man3/gnutls_x509_crq_set_key_purpose_oid.3 +55 -0
  1650. data/vendor/local/share/man/man3/gnutls_x509_crq_set_key_rsa_raw.3 +52 -0
  1651. data/vendor/local/share/man/man3/gnutls_x509_crq_set_key_usage.3 +49 -0
  1652. data/vendor/local/share/man/man3/gnutls_x509_crq_set_private_key_usage_period.3 +49 -0
  1653. data/vendor/local/share/man/man3/gnutls_x509_crq_set_pubkey.3 +50 -0
  1654. data/vendor/local/share/man/man3/gnutls_x509_crq_set_subject_alt_name.3 +57 -0
  1655. data/vendor/local/share/man/man3/gnutls_x509_crq_set_version.3 +19 -10
  1656. data/vendor/local/share/man/man3/gnutls_x509_crq_sign.3 +22 -11
  1657. data/vendor/local/share/man/man3/gnutls_x509_crq_sign2.3 +17 -8
  1658. data/vendor/local/share/man/man3/gnutls_x509_crq_verify.3 +50 -0
  1659. data/vendor/local/share/man/man3/gnutls_x509_crt_check_hostname.3 +16 -7
  1660. data/vendor/local/share/man/man3/gnutls_x509_crt_check_issuer.3 +21 -10
  1661. data/vendor/local/share/man/man3/gnutls_x509_crt_check_revocation.3 +16 -7
  1662. data/vendor/local/share/man/man3/gnutls_x509_crt_cpy_crl_dist_points.3 +17 -8
  1663. data/vendor/local/share/man/man3/gnutls_x509_crt_deinit.3 +17 -8
  1664. data/vendor/local/share/man/man3/gnutls_x509_crt_export.3 +17 -8
  1665. data/vendor/local/share/man/man3/gnutls_x509_crt_export2.3 +55 -0
  1666. data/vendor/local/share/man/man3/gnutls_x509_crt_get_activation_time.3 +15 -6
  1667. data/vendor/local/share/man/man3/gnutls_x509_crt_get_authority_info_access.3 +109 -0
  1668. data/vendor/local/share/man/man3/gnutls_x509_crt_get_authority_key_gn_serial.3 +67 -0
  1669. data/vendor/local/share/man/man3/gnutls_x509_crt_get_authority_key_id.3 +30 -16
  1670. data/vendor/local/share/man/man3/gnutls_x509_crt_get_basic_constraints.3 +23 -14
  1671. data/vendor/local/share/man/man3/gnutls_x509_crt_get_ca_status.3 +20 -11
  1672. data/vendor/local/share/man/man3/gnutls_x509_crt_get_crl_dist_points.3 +22 -26
  1673. data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn.3 +26 -17
  1674. data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn_by_oid.3 +32 -21
  1675. data/vendor/local/share/man/man3/gnutls_x509_crt_get_dn_oid.3 +25 -14
  1676. data/vendor/local/share/man/man3/gnutls_x509_crt_get_expiration_time.3 +15 -6
  1677. data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_by_oid.3 +27 -17
  1678. data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_data.3 +22 -12
  1679. data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_info.3 +29 -18
  1680. data/vendor/local/share/man/man3/gnutls_x509_crt_get_extension_oid.3 +26 -13
  1681. data/vendor/local/share/man/man3/gnutls_x509_crt_get_fingerprint.3 +19 -10
  1682. data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer.3 +20 -11
  1683. data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_alt_name.3 +73 -0
  1684. data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_alt_name2.3 +67 -0
  1685. data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_alt_othername_oid.3 +70 -0
  1686. data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn.3 +21 -12
  1687. data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn_by_oid.3 +30 -19
  1688. data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_dn_oid.3 +25 -14
  1689. data/vendor/local/share/man/man3/gnutls_x509_crt_get_issuer_unique_id.3 +56 -0
  1690. data/vendor/local/share/man/man3/gnutls_x509_crt_get_key_id.3 +18 -9
  1691. data/vendor/local/share/man/man3/gnutls_x509_crt_get_key_purpose_oid.3 +24 -13
  1692. data/vendor/local/share/man/man3/gnutls_x509_crt_get_key_usage.3 +21 -12
  1693. data/vendor/local/share/man/man3/gnutls_x509_crt_get_pk_algorithm.3 +18 -9
  1694. data/vendor/local/share/man/man3/gnutls_x509_crt_get_pk_dsa_raw.3 +16 -7
  1695. data/vendor/local/share/man/man3/gnutls_x509_crt_get_pk_rsa_raw.3 +16 -7
  1696. data/vendor/local/share/man/man3/gnutls_x509_crt_get_policy.3 +57 -0
  1697. data/vendor/local/share/man/man3/gnutls_x509_crt_get_preferred_hash_algorithm.3 +55 -0
  1698. data/vendor/local/share/man/man3/gnutls_x509_crt_get_private_key_usage_period.3 +53 -0
  1699. data/vendor/local/share/man/man3/gnutls_x509_crt_get_proxy.3 +26 -18
  1700. data/vendor/local/share/man/man3/gnutls_x509_crt_get_raw_dn.3 +18 -9
  1701. data/vendor/local/share/man/man3/gnutls_x509_crt_get_raw_issuer_dn.3 +18 -9
  1702. data/vendor/local/share/man/man3/gnutls_x509_crt_get_serial.3 +21 -13
  1703. data/vendor/local/share/man/man3/gnutls_x509_crt_get_signature.3 +18 -9
  1704. data/vendor/local/share/man/man3/gnutls_x509_crt_get_signature_algorithm.3 +18 -8
  1705. data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject.3 +20 -11
  1706. data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_alt_name.3 +24 -18
  1707. data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_alt_name2.3 +33 -17
  1708. data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_alt_othername_oid.3 +23 -11
  1709. data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_key_id.3 +21 -12
  1710. data/vendor/local/share/man/man3/gnutls_x509_crt_get_subject_unique_id.3 +54 -0
  1711. data/vendor/local/share/man/man3/gnutls_x509_crt_get_verify_algorithm.3 +54 -0
  1712. data/vendor/local/share/man/man3/gnutls_x509_crt_get_version.3 +16 -7
  1713. data/vendor/local/share/man/man3/gnutls_x509_crt_import.3 +20 -10
  1714. data/vendor/local/share/man/man3/gnutls_x509_crt_import_pkcs11.3 +50 -0
  1715. data/vendor/local/share/man/man3/gnutls_x509_crt_import_pkcs11_url.3 +53 -0
  1716. data/vendor/local/share/man/man3/gnutls_x509_crt_init.3 +16 -7
  1717. data/vendor/local/share/man/man3/gnutls_x509_crt_list_import.3 +23 -8
  1718. data/vendor/local/share/man/man3/gnutls_x509_crt_list_import2.3 +59 -0
  1719. data/vendor/local/share/man/man3/gnutls_x509_crt_list_import_pkcs11.3 +54 -0
  1720. data/vendor/local/share/man/man3/gnutls_x509_crt_list_verify.3 +28 -25
  1721. data/vendor/local/share/man/man3/gnutls_x509_crt_print.3 +18 -9
  1722. data/vendor/local/share/man/man3/gnutls_x509_crt_privkey_sign.3 +57 -0
  1723. data/vendor/local/share/man/man3/gnutls_x509_crt_set_activation_time.3 +17 -8
  1724. data/vendor/local/share/man/man3/gnutls_x509_crt_set_authority_info_access.3 +59 -0
  1725. data/vendor/local/share/man/man3/gnutls_x509_crt_set_authority_key_id.3 +17 -8
  1726. data/vendor/local/share/man/man3/gnutls_x509_crt_set_basic_constraints.3 +19 -10
  1727. data/vendor/local/share/man/man3/gnutls_x509_crt_set_ca_status.3 +17 -8
  1728. data/vendor/local/share/man/man3/gnutls_x509_crt_set_crl_dist_points.3 +19 -10
  1729. data/vendor/local/share/man/man3/gnutls_x509_crt_set_crl_dist_points2.3 +55 -0
  1730. data/vendor/local/share/man/man3/gnutls_x509_crt_set_crq.3 +20 -11
  1731. data/vendor/local/share/man/man3/gnutls_x509_crt_set_crq_extensions.3 +50 -0
  1732. data/vendor/local/share/man/man3/gnutls_x509_crt_set_dn_by_oid.3 +19 -10
  1733. data/vendor/local/share/man/man3/gnutls_x509_crt_set_expiration_time.3 +17 -8
  1734. data/vendor/local/share/man/man3/gnutls_x509_crt_set_extension_by_oid.3 +20 -11
  1735. data/vendor/local/share/man/man3/gnutls_x509_crt_set_issuer_dn_by_oid.3 +19 -10
  1736. data/vendor/local/share/man/man3/gnutls_x509_crt_set_key.3 +17 -8
  1737. data/vendor/local/share/man/man3/gnutls_x509_crt_set_key_purpose_oid.3 +19 -9
  1738. data/vendor/local/share/man/man3/gnutls_x509_crt_set_key_usage.3 +17 -8
  1739. data/vendor/local/share/man/man3/gnutls_x509_crt_set_pin_function.3 +53 -0
  1740. data/vendor/local/share/man/man3/gnutls_x509_crt_set_policy.3 +56 -0
  1741. data/vendor/local/share/man/man3/gnutls_x509_crt_set_private_key_usage_period.3 +49 -0
  1742. data/vendor/local/share/man/man3/gnutls_x509_crt_set_proxy.3 +22 -13
  1743. data/vendor/local/share/man/man3/gnutls_x509_crt_set_proxy_dn.3 +20 -12
  1744. data/vendor/local/share/man/man3/gnutls_x509_crt_set_pubkey.3 +50 -0
  1745. data/vendor/local/share/man/man3/gnutls_x509_crt_set_serial.3 +18 -9
  1746. data/vendor/local/share/man/man3/gnutls_x509_crt_set_subject_alt_name.3 +56 -0
  1747. data/vendor/local/share/man/man3/gnutls_x509_crt_set_subject_alternative_name.3 +25 -12
  1748. data/vendor/local/share/man/man3/gnutls_x509_crt_set_subject_key_id.3 +17 -8
  1749. data/vendor/local/share/man/man3/gnutls_x509_crt_set_version.3 +18 -9
  1750. data/vendor/local/share/man/man3/gnutls_x509_crt_sign.3 +17 -8
  1751. data/vendor/local/share/man/man3/gnutls_x509_crt_sign2.3 +18 -9
  1752. data/vendor/local/share/man/man3/gnutls_x509_crt_verify.3 +19 -10
  1753. data/vendor/local/share/man/man3/gnutls_x509_crt_verify_data.3 +20 -9
  1754. data/vendor/local/share/man/man3/gnutls_x509_crt_verify_hash.3 +54 -0
  1755. data/vendor/local/share/man/man3/gnutls_x509_dn_deinit.3 +17 -8
  1756. data/vendor/local/share/man/man3/gnutls_x509_dn_export.3 +18 -9
  1757. data/vendor/local/share/man/man3/gnutls_x509_dn_export2.3 +54 -0
  1758. data/vendor/local/share/man/man3/gnutls_x509_dn_get_rdn_ava.3 +28 -9
  1759. data/vendor/local/share/man/man3/gnutls_x509_dn_import.3 +17 -13
  1760. data/vendor/local/share/man/man3/gnutls_x509_dn_init.3 +17 -8
  1761. data/vendor/local/share/man/man3/gnutls_x509_dn_oid_known.3 +15 -6
  1762. data/vendor/local/share/man/man3/gnutls_x509_dn_oid_name.3 +51 -0
  1763. data/vendor/local/share/man/man3/gnutls_x509_policy_release.3 +45 -0
  1764. data/vendor/local/share/man/man3/gnutls_x509_privkey_cpy.3 +17 -8
  1765. data/vendor/local/share/man/man3/gnutls_x509_privkey_deinit.3 +16 -7
  1766. data/vendor/local/share/man/man3/gnutls_x509_privkey_export.3 +17 -8
  1767. data/vendor/local/share/man/man3/gnutls_x509_privkey_export2.3 +58 -0
  1768. data/vendor/local/share/man/man3/gnutls_x509_privkey_export2_pkcs8.3 +67 -0
  1769. data/vendor/local/share/man/man3/gnutls_x509_privkey_export_dsa_raw.3 +17 -7
  1770. data/vendor/local/share/man/man3/gnutls_x509_privkey_export_ecc_raw.3 +57 -0
  1771. data/vendor/local/share/man/man3/gnutls_x509_privkey_export_pkcs8.3 +20 -11
  1772. data/vendor/local/share/man/man3/gnutls_x509_privkey_export_rsa_raw.3 +16 -7
  1773. data/vendor/local/share/man/man3/gnutls_x509_privkey_export_rsa_raw2.3 +65 -0
  1774. data/vendor/local/share/man/man3/gnutls_x509_privkey_fix.3 +16 -7
  1775. data/vendor/local/share/man/man3/gnutls_x509_privkey_generate.3 +19 -8
  1776. data/vendor/local/share/man/man3/gnutls_x509_privkey_get_key_id.3 +18 -9
  1777. data/vendor/local/share/man/man3/gnutls_x509_privkey_get_pk_algorithm.3 +16 -7
  1778. data/vendor/local/share/man/man3/gnutls_x509_privkey_get_pk_algorithm2.3 +48 -0
  1779. data/vendor/local/share/man/man3/gnutls_x509_privkey_import.3 +20 -10
  1780. data/vendor/local/share/man/man3/gnutls_x509_privkey_import2.3 +61 -0
  1781. data/vendor/local/share/man/man3/gnutls_x509_privkey_import_dsa_raw.3 +17 -8
  1782. data/vendor/local/share/man/man3/gnutls_x509_privkey_import_ecc_raw.3 +57 -0
  1783. data/vendor/local/share/man/man3/gnutls_x509_privkey_import_openssl.3 +57 -0
  1784. data/vendor/local/share/man/man3/gnutls_x509_privkey_import_pkcs8.3 +29 -15
  1785. data/vendor/local/share/man/man3/gnutls_x509_privkey_import_rsa_raw.3 +17 -8
  1786. data/vendor/local/share/man/man3/gnutls_x509_privkey_import_rsa_raw2.3 +63 -0
  1787. data/vendor/local/share/man/man3/gnutls_x509_privkey_init.3 +16 -7
  1788. data/vendor/local/share/man/man3/gnutls_x509_privkey_sec_param.3 +48 -0
  1789. data/vendor/local/share/man/man3/gnutls_x509_privkey_sign_data.3 +23 -9
  1790. data/vendor/local/share/man/man3/gnutls_x509_privkey_sign_hash.3 +23 -9
  1791. data/vendor/local/share/man/man3/gnutls_x509_privkey_verify_params.3 +45 -0
  1792. data/vendor/local/share/man/man3/gnutls_x509_rdn_get.3 +19 -10
  1793. data/vendor/local/share/man/man3/gnutls_x509_rdn_get_by_oid.3 +20 -11
  1794. data/vendor/local/share/man/man3/gnutls_x509_rdn_get_oid.3 +19 -8
  1795. data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_cas.3 +54 -0
  1796. data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_crls.3 +59 -0
  1797. data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_named_crt.3 +65 -0
  1798. data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_system_trust.3 +52 -0
  1799. data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_trust_file.3 +58 -0
  1800. data/vendor/local/share/man/man3/gnutls_x509_trust_list_add_trust_mem.3 +57 -0
  1801. data/vendor/local/share/man/man3/gnutls_x509_trust_list_deinit.3 +46 -0
  1802. data/vendor/local/share/man/man3/gnutls_x509_trust_list_get_issuer.3 +54 -0
  1803. data/vendor/local/share/man/man3/gnutls_x509_trust_list_init.3 +49 -0
  1804. data/vendor/local/share/man/man3/gnutls_x509_trust_list_verify_crt.3 +61 -0
  1805. data/vendor/local/share/man/man3/gnutls_x509_trust_list_verify_named_crt.3 +62 -0
  1806. data/vendor/local/src/tml/make/libffi_3.0.6-1_win32.log +265 -0
  1807. data/vendor/local/src/tml/make/libffi_3.0.6-1_win32.sh +76 -0
  1808. data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.log +42 -0
  1809. data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.sh +189 -0
  1810. metadata +668 -4
@@ -0,0 +1,10 @@
1
+ import sys
2
+ import gdb
3
+
4
+ # Update module path.
5
+ dir_ = '/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/glib-2.0/gdb'
6
+ if not dir_ in sys.path:
7
+ sys.path.insert(0, dir_)
8
+
9
+ from glib import register
10
+ register (gdb.current_objfile ())
@@ -0,0 +1,10 @@
1
+ import sys
2
+ import gdb
3
+
4
+ # Update module path.
5
+ dir_ = '/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/glib-2.0/gdb'
6
+ if not dir_ in sys.path:
7
+ sys.path.insert(0, dir_)
8
+
9
+ from gobject import register
10
+ register (gdb.current_objfile ())
@@ -0,0 +1,29 @@
1
+ # -*- Mode: Python -*-
2
+
3
+ # GDBus - GLib D-Bus Library
4
+ #
5
+ # Copyright (C) 2008-2011 Red Hat, Inc.
6
+ #
7
+ # This library is free software; you can redistribute it and/or
8
+ # modify it under the terms of the GNU Lesser General Public
9
+ # License as published by the Free Software Foundation; either
10
+ # version 2 of the License, or (at your option) any later version.
11
+ #
12
+ # This library is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ # Lesser General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU Lesser General
18
+ # Public License along with this library; if not, write to the
19
+ # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20
+ # Boston, MA 02111-1307, USA.
21
+ #
22
+ # Author: David Zeuthen <davidz@redhat.com>
23
+
24
+ import os
25
+
26
+ builddir = os.environ.get('UNINSTALLED_GLIB_BUILDDIR')
27
+
28
+ if builddir is not None:
29
+ __path__.append(os.path.abspath(os.path.join(builddir, 'gio', 'gdbus-2.0', 'codegen')))
@@ -0,0 +1,3375 @@
1
+ # -*- Mode: Python -*-
2
+
3
+ # GDBus - GLib D-Bus Library
4
+ #
5
+ # Copyright (C) 2008-2011 Red Hat, Inc.
6
+ #
7
+ # This library is free software; you can redistribute it and/or
8
+ # modify it under the terms of the GNU Lesser General Public
9
+ # License as published by the Free Software Foundation; either
10
+ # version 2 of the License, or (at your option) any later version.
11
+ #
12
+ # This library is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ # Lesser General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU Lesser General
18
+ # Public License along with this library; if not, write to the
19
+ # Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20
+ # Boston, MA 02111-1307, USA.
21
+ #
22
+ # Author: David Zeuthen <davidz@redhat.com>
23
+
24
+ import sys
25
+
26
+ from . import config
27
+ from . import utils
28
+ from . import dbustypes
29
+
30
+ # ----------------------------------------------------------------------------------------------------
31
+
32
+ class CodeGenerator:
33
+ def __init__(self, ifaces, namespace, interface_prefix, generate_objmanager, docbook_gen, h, c):
34
+ self.docbook_gen = docbook_gen
35
+ self.generate_objmanager = generate_objmanager
36
+ self.ifaces = ifaces
37
+ self.h = h
38
+ self.c = c
39
+ self.namespace = namespace
40
+ if len(namespace) > 0:
41
+ if utils.is_ugly_case(namespace):
42
+ self.namespace = namespace.replace('_', '')
43
+ self.ns_upper = namespace.upper() + '_'
44
+ self.ns_lower = namespace.lower() + '_'
45
+ else:
46
+ self.ns_upper = utils.camel_case_to_uscore(namespace).upper() + '_'
47
+ self.ns_lower = utils.camel_case_to_uscore(namespace).lower() + '_'
48
+ else:
49
+ self.ns_upper = ''
50
+ self.ns_lower = ''
51
+ self.interface_prefix = interface_prefix
52
+ self.header_guard = self.h.name.upper().replace('.', '_').replace('-', '_').replace('/', '_')
53
+
54
+ # ----------------------------------------------------------------------------------------------------
55
+
56
+ def generate_intro(self):
57
+ self.c.write('/*\n'
58
+ ' * Generated by gdbus-codegen %s. DO NOT EDIT.\n'
59
+ ' *\n'
60
+ ' * The license of this code is the same as for the source it was derived from.\n'
61
+ ' */\n'
62
+ '\n'
63
+ %(config.VERSION))
64
+ self.c.write('#ifdef HAVE_CONFIG_H\n'
65
+ '# include "config.h"\n'
66
+ '#endif\n'
67
+ '\n'
68
+ '#include "%s"\n'
69
+ '\n'
70
+ '#include <string.h>\n'
71
+ %(self.h.name))
72
+
73
+ self.c.write('#ifdef G_OS_UNIX\n'
74
+ '# include <gio/gunixfdlist.h>\n'
75
+ '#endif\n'
76
+ '\n')
77
+
78
+ self.c.write('typedef struct\n'
79
+ '{\n'
80
+ ' GDBusArgInfo parent_struct;\n'
81
+ ' gboolean use_gvariant;\n'
82
+ '} _ExtendedGDBusArgInfo;\n'
83
+ '\n')
84
+
85
+ self.c.write('typedef struct\n'
86
+ '{\n'
87
+ ' GDBusMethodInfo parent_struct;\n'
88
+ ' const gchar *signal_name;\n'
89
+ ' gboolean pass_fdlist;\n'
90
+ '} _ExtendedGDBusMethodInfo;\n'
91
+ '\n')
92
+
93
+ self.c.write('typedef struct\n'
94
+ '{\n'
95
+ ' GDBusSignalInfo parent_struct;\n'
96
+ ' const gchar *signal_name;\n'
97
+ '} _ExtendedGDBusSignalInfo;\n'
98
+ '\n')
99
+
100
+ self.c.write('typedef struct\n'
101
+ '{\n'
102
+ ' GDBusPropertyInfo parent_struct;\n'
103
+ ' const gchar *hyphen_name;\n'
104
+ ' gboolean use_gvariant;\n'
105
+ '} _ExtendedGDBusPropertyInfo;\n'
106
+ '\n')
107
+
108
+ self.c.write('typedef struct\n'
109
+ '{\n'
110
+ ' GDBusInterfaceInfo parent_struct;\n'
111
+ ' const gchar *hyphen_name;\n'
112
+ '} _ExtendedGDBusInterfaceInfo;\n'
113
+ '\n')
114
+
115
+ self.c.write('typedef struct\n'
116
+ '{\n'
117
+ ' const _ExtendedGDBusPropertyInfo *info;\n'
118
+ ' guint prop_id;\n'
119
+ ' GValue orig_value; /* the value before the change */\n'
120
+ '} ChangedProperty;\n'
121
+ '\n'
122
+ 'static void\n'
123
+ '_changed_property_free (ChangedProperty *data)\n'
124
+ '{\n'
125
+ ' g_value_unset (&data->orig_value);\n'
126
+ ' g_free (data);\n'
127
+ '}\n'
128
+ '\n')
129
+
130
+ self.c.write('static gboolean\n'
131
+ '_g_strv_equal0 (gchar **a, gchar **b)\n'
132
+ '{\n'
133
+ ' gboolean ret = FALSE;\n'
134
+ ' guint n;\n'
135
+ ' if (a == NULL && b == NULL)\n'
136
+ ' {\n'
137
+ ' ret = TRUE;\n'
138
+ ' goto out;\n'
139
+ ' }\n'
140
+ ' if (a == NULL || b == NULL)\n'
141
+ ' goto out;\n'
142
+ ' if (g_strv_length (a) != g_strv_length (b))\n'
143
+ ' goto out;\n'
144
+ ' for (n = 0; a[n] != NULL; n++)\n'
145
+ ' if (g_strcmp0 (a[n], b[n]) != 0)\n'
146
+ ' goto out;\n'
147
+ ' ret = TRUE;\n'
148
+ 'out:\n'
149
+ ' return ret;\n'
150
+ '}\n'
151
+ '\n')
152
+
153
+ self.c.write('static gboolean\n'
154
+ '_g_variant_equal0 (GVariant *a, GVariant *b)\n'
155
+ '{\n'
156
+ ' gboolean ret = FALSE;\n'
157
+ ' if (a == NULL && b == NULL)\n'
158
+ ' {\n'
159
+ ' ret = TRUE;\n'
160
+ ' goto out;\n'
161
+ ' }\n'
162
+ ' if (a == NULL || b == NULL)\n'
163
+ ' goto out;\n'
164
+ ' ret = g_variant_equal (a, b);\n'
165
+ 'out:\n'
166
+ ' return ret;\n'
167
+ '}\n'
168
+ '\n')
169
+
170
+ # simplified - only supports the types we use
171
+ self.c.write('G_GNUC_UNUSED static gboolean\n'
172
+ '_g_value_equal (const GValue *a, const GValue *b)\n'
173
+ '{\n'
174
+ ' gboolean ret = FALSE;\n'
175
+ ' g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));\n'
176
+ ' switch (G_VALUE_TYPE (a))\n'
177
+ ' {\n'
178
+ ' case G_TYPE_BOOLEAN:\n'
179
+ ' ret = (g_value_get_boolean (a) == g_value_get_boolean (b));\n'
180
+ ' break;\n'
181
+ ' case G_TYPE_UCHAR:\n'
182
+ ' ret = (g_value_get_uchar (a) == g_value_get_uchar (b));\n'
183
+ ' break;\n'
184
+ ' case G_TYPE_INT:\n'
185
+ ' ret = (g_value_get_int (a) == g_value_get_int (b));\n'
186
+ ' break;\n'
187
+ ' case G_TYPE_UINT:\n'
188
+ ' ret = (g_value_get_uint (a) == g_value_get_uint (b));\n'
189
+ ' break;\n'
190
+ ' case G_TYPE_INT64:\n'
191
+ ' ret = (g_value_get_int64 (a) == g_value_get_int64 (b));\n'
192
+ ' break;\n'
193
+ ' case G_TYPE_UINT64:\n'
194
+ ' ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));\n'
195
+ ' break;\n'
196
+ ' case G_TYPE_DOUBLE:\n'
197
+ ' {\n'
198
+ ' /* Avoid -Wfloat-equal warnings by doing a direct bit compare */\n'
199
+ ' gdouble da = g_value_get_double (a);\n'
200
+ ' gdouble db = g_value_get_double (b);\n'
201
+ ' ret = memcmp (&da, &db, sizeof (gdouble)) == 0;\n'
202
+ ' }\n'
203
+ ' break;\n'
204
+ ' case G_TYPE_STRING:\n'
205
+ ' ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);\n'
206
+ ' break;\n'
207
+ ' case G_TYPE_VARIANT:\n'
208
+ ' ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));\n'
209
+ ' break;\n'
210
+ ' default:\n'
211
+ ' if (G_VALUE_TYPE (a) == G_TYPE_STRV)\n'
212
+ ' ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));\n'
213
+ ' else\n'
214
+ ' g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));\n'
215
+ ' break;\n'
216
+ ' }\n'
217
+ ' return ret;\n'
218
+ '}\n'
219
+ '\n')
220
+
221
+ self.h.write('/*\n'
222
+ ' * Generated by gdbus-codegen %s. DO NOT EDIT.\n'
223
+ ' *\n'
224
+ ' * The license of this code is the same as for the source it was derived from.\n'
225
+ ' */\n'
226
+ '\n'
227
+ '#ifndef __%s__\n'
228
+ '#define __%s__\n'
229
+ '\n'%(config.VERSION, self.header_guard, self.header_guard))
230
+ self.h.write('#include <gio/gio.h>\n'
231
+ '\n'
232
+ 'G_BEGIN_DECLS\n'
233
+ '\n')
234
+
235
+ # ----------------------------------------------------------------------------------------------------
236
+
237
+ def declare_types(self):
238
+ for i in self.ifaces:
239
+ self.h.write('\n')
240
+ self.h.write('/* ------------------------------------------------------------------------ */\n')
241
+ self.h.write('/* Declarations for %s */\n'%i.name)
242
+ self.h.write('\n')
243
+
244
+ # First the GInterface
245
+ self.h.write('#define %sTYPE_%s (%s_get_type ())\n'%(i.ns_upper, i.name_upper, i.name_lower))
246
+ self.h.write('#define %s%s(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), %sTYPE_%s, %s))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper, i.camel_name))
247
+ self.h.write('#define %sIS_%s(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), %sTYPE_%s))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper))
248
+ self.h.write('#define %s%s_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), %sTYPE_%s, %sIface))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper, i.camel_name))
249
+ self.h.write('\n')
250
+ self.h.write('struct _%s;\n'%(i.camel_name))
251
+ self.h.write('typedef struct _%s %s;\n'%(i.camel_name, i.camel_name))
252
+ self.h.write('typedef struct _%sIface %sIface;\n'%(i.camel_name, i.camel_name))
253
+ self.h.write('\n')
254
+ self.h.write('struct _%sIface\n'%(i.camel_name))
255
+ self.h.write('{\n')
256
+ self.h.write(' GTypeInterface parent_iface;\n')
257
+
258
+ function_pointers = {}
259
+
260
+ # vfuncs for methods
261
+ if len(i.methods) > 0:
262
+ self.h.write('\n')
263
+ for m in i.methods:
264
+ unix_fd = False
265
+ if utils.lookup_annotation(m.annotations, 'org.gtk.GDBus.C.UnixFD'):
266
+ unix_fd = True
267
+ key = (m.since, '_method_%s'%m.name_lower)
268
+ value = ' gboolean (*handle_%s) (\n'%(m.name_lower)
269
+ value += ' %s *object,\n'%(i.camel_name)
270
+ value += ' GDBusMethodInvocation *invocation'%()
271
+ if unix_fd:
272
+ value += ',\n GUnixFDList *fd_list'
273
+ for a in m.in_args:
274
+ value += ',\n %sarg_%s'%(a.ctype_in, a.name)
275
+ value += ');\n\n'
276
+ function_pointers[key] = value
277
+
278
+ # vfuncs for signals
279
+ if len(i.signals) > 0:
280
+ self.h.write('\n')
281
+ for s in i.signals:
282
+ key = (s.since, '_signal_%s'%s.name_lower)
283
+ value = ' void (*%s) (\n'%(s.name_lower)
284
+ value += ' %s *object'%(i.camel_name)
285
+ for a in s.args:
286
+ value += ',\n %sarg_%s'%(a.ctype_in, a.name)
287
+ value += ');\n\n'
288
+ function_pointers[key] = value
289
+
290
+ # vfuncs for properties
291
+ if len(i.properties) > 0:
292
+ self.h.write('\n')
293
+ for p in i.properties:
294
+ key = (p.since, '_prop_get_%s'%p.name_lower)
295
+ value = ' %s (*get_%s) (%s *object);\n\n'%(p.arg.ctype_in, p.name_lower, i.camel_name)
296
+ function_pointers[key] = value
297
+
298
+ # Sort according to @since tag, then name.. this ensures
299
+ # that the function pointers don't change order assuming
300
+ # judicious use of @since
301
+ #
302
+ # Also use a proper version comparison function so e.g.
303
+ # 10.0 comes after 2.0.
304
+ #
305
+ # See https://bugzilla.gnome.org/show_bug.cgi?id=647577#c5
306
+ # for discussion
307
+ for key in sorted(function_pointers.keys(), key=utils.version_cmp_key):
308
+ self.h.write('%s'%function_pointers[key])
309
+
310
+ self.h.write('};\n')
311
+ self.h.write('\n')
312
+ self.h.write('GType %s_get_type (void) G_GNUC_CONST;\n'%(i.name_lower))
313
+ self.h.write('\n')
314
+ self.h.write('GDBusInterfaceInfo *%s_interface_info (void);\n'%(i.name_lower))
315
+ self.h.write('guint %s_override_properties (GObjectClass *klass, guint property_id_begin);\n'%(i.name_lower))
316
+ self.h.write('\n')
317
+
318
+ # Then method call completion functions
319
+ if len(i.methods) > 0:
320
+ self.h.write('\n')
321
+ self.h.write('/* D-Bus method call completion functions: */\n')
322
+ for m in i.methods:
323
+ unix_fd = False
324
+ if utils.lookup_annotation(m.annotations, 'org.gtk.GDBus.C.UnixFD'):
325
+ unix_fd = True
326
+ if m.deprecated:
327
+ self.h.write('G_GNUC_DEPRECATED ')
328
+ self.h.write('void %s_complete_%s (\n'
329
+ ' %s *object,\n'
330
+ ' GDBusMethodInvocation *invocation'%(i.name_lower, m.name_lower, i.camel_name))
331
+ if unix_fd:
332
+ self.h.write(',\n GUnixFDList *fd_list')
333
+ for a in m.out_args:
334
+ self.h.write(',\n %s%s'%(a.ctype_in, a.name))
335
+ self.h.write(');\n')
336
+ self.h.write('\n')
337
+ self.h.write('\n')
338
+
339
+ # Then signal emission functions
340
+ if len(i.signals) > 0:
341
+ self.h.write('\n')
342
+ self.h.write('/* D-Bus signal emissions functions: */\n')
343
+ for s in i.signals:
344
+ if s.deprecated:
345
+ self.h.write('G_GNUC_DEPRECATED ')
346
+ self.h.write('void %s_emit_%s (\n'
347
+ ' %s *object'%(i.name_lower, s.name_lower, i.camel_name))
348
+ for a in s.args:
349
+ self.h.write(',\n %sarg_%s'%(a.ctype_in, a.name))
350
+ self.h.write(');\n')
351
+ self.h.write('\n')
352
+ self.h.write('\n')
353
+
354
+ # Then method call declarations
355
+ if len(i.methods) > 0:
356
+ self.h.write('\n')
357
+ self.h.write('/* D-Bus method calls: */\n')
358
+ for m in i.methods:
359
+ unix_fd = False
360
+ if utils.lookup_annotation(m.annotations, 'org.gtk.GDBus.C.UnixFD'):
361
+ unix_fd = True
362
+ # async begin
363
+ if m.deprecated:
364
+ self.h.write('G_GNUC_DEPRECATED ')
365
+ self.h.write('void %s_call_%s (\n'
366
+ ' %s *proxy'%(i.name_lower, m.name_lower, i.camel_name))
367
+ for a in m.in_args:
368
+ self.h.write(',\n %sarg_%s'%(a.ctype_in, a.name))
369
+ if unix_fd:
370
+ self.h.write(',\n GUnixFDList *fd_list')
371
+ self.h.write(',\n'
372
+ ' GCancellable *cancellable,\n'
373
+ ' GAsyncReadyCallback callback,\n'
374
+ ' gpointer user_data);\n')
375
+ self.h.write('\n')
376
+ # async finish
377
+ if m.deprecated:
378
+ self.h.write('G_GNUC_DEPRECATED ')
379
+ self.h.write('gboolean %s_call_%s_finish (\n'
380
+ ' %s *proxy'%(i.name_lower, m.name_lower, i.camel_name))
381
+ for a in m.out_args:
382
+ self.h.write(',\n %sout_%s'%(a.ctype_out, a.name))
383
+ if unix_fd:
384
+ self.h.write(',\n GUnixFDList **out_fd_list')
385
+ self.h.write(',\n'
386
+ ' GAsyncResult *res,\n'
387
+ ' GError **error);\n')
388
+ self.h.write('\n')
389
+ # sync
390
+ if m.deprecated:
391
+ self.h.write('G_GNUC_DEPRECATED ')
392
+ self.h.write('gboolean %s_call_%s_sync (\n'
393
+ ' %s *proxy'%(i.name_lower, m.name_lower, i.camel_name))
394
+ for a in m.in_args:
395
+ self.h.write(',\n %sarg_%s'%(a.ctype_in, a.name))
396
+ if unix_fd:
397
+ self.h.write(',\n GUnixFDList *fd_list')
398
+ for a in m.out_args:
399
+ self.h.write(',\n %sout_%s'%(a.ctype_out, a.name))
400
+ if unix_fd:
401
+ self.h.write(',\n GUnixFDList **out_fd_list')
402
+ self.h.write(',\n'
403
+ ' GCancellable *cancellable,\n'
404
+ ' GError **error);\n')
405
+ self.h.write('\n')
406
+ self.h.write('\n')
407
+
408
+ # Then the property accessor declarations
409
+ if len(i.properties) > 0:
410
+ self.h.write('\n')
411
+ self.h.write('/* D-Bus property accessors: */\n')
412
+ for p in i.properties:
413
+ # getter
414
+ if p.deprecated:
415
+ self.h.write('G_GNUC_DEPRECATED ')
416
+ self.h.write('%s%s_get_%s (%s *object);\n'%(p.arg.ctype_in, i.name_lower, p.name_lower, i.camel_name))
417
+ if p.arg.free_func != None:
418
+ if p.deprecated:
419
+ self.h.write('G_GNUC_DEPRECATED ')
420
+ self.h.write('%s%s_dup_%s (%s *object);\n'%(p.arg.ctype_in_dup, i.name_lower, p.name_lower, i.camel_name))
421
+ # setter
422
+ if p.deprecated:
423
+ self.h.write('G_GNUC_DEPRECATED ')
424
+ self.h.write('void %s_set_%s (%s *object, %svalue);\n'%(i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in, ))
425
+ self.h.write('\n')
426
+
427
+ # Then the proxy
428
+ self.h.write('\n')
429
+ self.h.write('/* ---- */\n')
430
+ self.h.write('\n')
431
+ self.h.write('#define %sTYPE_%s_PROXY (%s_proxy_get_type ())\n'%(i.ns_upper, i.name_upper, i.name_lower))
432
+ self.h.write('#define %s%s_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), %sTYPE_%s_PROXY, %sProxy))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper, i.camel_name))
433
+ self.h.write('#define %s%s_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), %sTYPE_%s_PROXY, %sProxyClass))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper, i.camel_name))
434
+ self.h.write('#define %s%s_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), %sTYPE_%s_PROXY, %sProxyClass))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper, i.camel_name))
435
+ self.h.write('#define %sIS_%s_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), %sTYPE_%s_PROXY))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper))
436
+ self.h.write('#define %sIS_%s_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), %sTYPE_%s_PROXY))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper))
437
+ self.h.write('\n')
438
+ self.h.write('typedef struct _%sProxy %sProxy;\n'%(i.camel_name, i.camel_name))
439
+ self.h.write('typedef struct _%sProxyClass %sProxyClass;\n'%(i.camel_name, i.camel_name))
440
+ self.h.write('typedef struct _%sProxyPrivate %sProxyPrivate;\n'%(i.camel_name, i.camel_name))
441
+ self.h.write('\n')
442
+ self.h.write('struct _%sProxy\n'%(i.camel_name))
443
+ self.h.write('{\n')
444
+ self.h.write(' /*< private >*/\n')
445
+ self.h.write(' GDBusProxy parent_instance;\n')
446
+ self.h.write(' %sProxyPrivate *priv;\n'%(i.camel_name))
447
+ self.h.write('};\n')
448
+ self.h.write('\n')
449
+ self.h.write('struct _%sProxyClass\n'%(i.camel_name))
450
+ self.h.write('{\n')
451
+ self.h.write(' GDBusProxyClass parent_class;\n')
452
+ self.h.write('};\n')
453
+ self.h.write('\n')
454
+ self.h.write('GType %s_proxy_get_type (void) G_GNUC_CONST;\n'%(i.name_lower))
455
+
456
+ self.h.write('\n')
457
+ if i.deprecated:
458
+ self.h.write('G_GNUC_DEPRECATED ')
459
+ self.h.write('void %s_proxy_new (\n'
460
+ ' GDBusConnection *connection,\n'
461
+ ' GDBusProxyFlags flags,\n'
462
+ ' const gchar *name,\n'
463
+ ' const gchar *object_path,\n'
464
+ ' GCancellable *cancellable,\n'
465
+ ' GAsyncReadyCallback callback,\n'
466
+ ' gpointer user_data);\n'
467
+ %(i.name_lower))
468
+ if i.deprecated:
469
+ self.h.write('G_GNUC_DEPRECATED ')
470
+ self.h.write('%s *%s_proxy_new_finish (\n'
471
+ ' GAsyncResult *res,\n'
472
+ ' GError **error);\n'
473
+ %(i.camel_name, i.name_lower))
474
+ if i.deprecated:
475
+ self.h.write('G_GNUC_DEPRECATED ')
476
+ self.h.write('%s *%s_proxy_new_sync (\n'
477
+ ' GDBusConnection *connection,\n'
478
+ ' GDBusProxyFlags flags,\n'
479
+ ' const gchar *name,\n'
480
+ ' const gchar *object_path,\n'
481
+ ' GCancellable *cancellable,\n'
482
+ ' GError **error);\n'
483
+ %(i.camel_name, i.name_lower))
484
+ self.h.write('\n')
485
+ if i.deprecated:
486
+ self.h.write('G_GNUC_DEPRECATED ')
487
+ self.h.write('void %s_proxy_new_for_bus (\n'
488
+ ' GBusType bus_type,\n'
489
+ ' GDBusProxyFlags flags,\n'
490
+ ' const gchar *name,\n'
491
+ ' const gchar *object_path,\n'
492
+ ' GCancellable *cancellable,\n'
493
+ ' GAsyncReadyCallback callback,\n'
494
+ ' gpointer user_data);\n'
495
+ %(i.name_lower))
496
+ if i.deprecated:
497
+ self.h.write('G_GNUC_DEPRECATED ')
498
+ self.h.write('%s *%s_proxy_new_for_bus_finish (\n'
499
+ ' GAsyncResult *res,\n'
500
+ ' GError **error);\n'
501
+ %(i.camel_name, i.name_lower))
502
+ if i.deprecated:
503
+ self.h.write('G_GNUC_DEPRECATED ')
504
+ self.h.write('%s *%s_proxy_new_for_bus_sync (\n'
505
+ ' GBusType bus_type,\n'
506
+ ' GDBusProxyFlags flags,\n'
507
+ ' const gchar *name,\n'
508
+ ' const gchar *object_path,\n'
509
+ ' GCancellable *cancellable,\n'
510
+ ' GError **error);\n'
511
+ %(i.camel_name, i.name_lower))
512
+ self.h.write('\n')
513
+
514
+ # Then the skeleton
515
+ self.h.write('\n')
516
+ self.h.write('/* ---- */\n')
517
+ self.h.write('\n')
518
+ self.h.write('#define %sTYPE_%s_SKELETON (%s_skeleton_get_type ())\n'%(i.ns_upper, i.name_upper, i.name_lower))
519
+ self.h.write('#define %s%s_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), %sTYPE_%s_SKELETON, %sSkeleton))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper, i.camel_name))
520
+ self.h.write('#define %s%s_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), %sTYPE_%s_SKELETON, %sSkeletonClass))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper, i.camel_name))
521
+ self.h.write('#define %s%s_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), %sTYPE_%s_SKELETON, %sSkeletonClass))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper, i.camel_name))
522
+ self.h.write('#define %sIS_%s_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), %sTYPE_%s_SKELETON))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper))
523
+ self.h.write('#define %sIS_%s_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), %sTYPE_%s_SKELETON))\n'%(i.ns_upper, i.name_upper, i.ns_upper, i.name_upper))
524
+ self.h.write('\n')
525
+ self.h.write('typedef struct _%sSkeleton %sSkeleton;\n'%(i.camel_name, i.camel_name))
526
+ self.h.write('typedef struct _%sSkeletonClass %sSkeletonClass;\n'%(i.camel_name, i.camel_name))
527
+ self.h.write('typedef struct _%sSkeletonPrivate %sSkeletonPrivate;\n'%(i.camel_name, i.camel_name))
528
+ self.h.write('\n')
529
+ self.h.write('struct _%sSkeleton\n'%(i.camel_name))
530
+ self.h.write('{\n')
531
+ self.h.write(' /*< private >*/\n')
532
+ self.h.write(' GDBusInterfaceSkeleton parent_instance;\n')
533
+ self.h.write(' %sSkeletonPrivate *priv;\n'%(i.camel_name))
534
+ self.h.write('};\n')
535
+ self.h.write('\n')
536
+ self.h.write('struct _%sSkeletonClass\n'%(i.camel_name))
537
+ self.h.write('{\n')
538
+ self.h.write(' GDBusInterfaceSkeletonClass parent_class;\n')
539
+ self.h.write('};\n')
540
+ self.h.write('\n')
541
+ self.h.write('GType %s_skeleton_get_type (void) G_GNUC_CONST;\n'%(i.name_lower))
542
+ self.h.write('\n')
543
+ if i.deprecated:
544
+ self.h.write('G_GNUC_DEPRECATED ')
545
+ self.h.write('%s *%s_skeleton_new (void);\n'%(i.camel_name, i.name_lower))
546
+
547
+ self.h.write('\n')
548
+
549
+ # Finally, the Object, ObjectProxy, ObjectSkeleton and ObjectManagerClient
550
+ if self.generate_objmanager:
551
+ self.h.write('\n')
552
+ self.h.write('/* ---- */\n')
553
+ self.h.write('\n')
554
+ self.h.write('#define %sTYPE_OBJECT (%sobject_get_type ())\n'%(self.ns_upper, self.ns_lower))
555
+ self.h.write('#define %sOBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), %sTYPE_OBJECT, %sObject))\n'%(self.ns_upper, self.ns_upper, self.namespace))
556
+ self.h.write('#define %sIS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), %sTYPE_OBJECT))\n'%(self.ns_upper, self.ns_upper))
557
+ self.h.write('#define %sOBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), %sTYPE_OBJECT, %sObject))\n'%(self.ns_upper, self.ns_upper, self.namespace))
558
+ self.h.write('\n')
559
+ self.h.write('struct _%sObject;\n'%(self.namespace))
560
+ self.h.write('typedef struct _%sObject %sObject;\n'%(self.namespace, self.namespace))
561
+ self.h.write('typedef struct _%sObjectIface %sObjectIface;\n'%(self.namespace, self.namespace))
562
+ self.h.write('\n')
563
+ self.h.write('struct _%sObjectIface\n'%(self.namespace))
564
+ self.h.write('{\n'
565
+ ' GTypeInterface parent_iface;\n'
566
+ '};\n'
567
+ '\n')
568
+ self.h.write('GType %sobject_get_type (void) G_GNUC_CONST;\n'
569
+ '\n'
570
+ %(self.ns_lower))
571
+ for i in self.ifaces:
572
+ if i.deprecated:
573
+ self.h.write('G_GNUC_DEPRECATED ')
574
+ self.h.write ('%s *%sobject_get_%s (%sObject *object);\n'
575
+ %(i.camel_name, self.ns_lower, i.name_upper.lower(), self.namespace))
576
+ for i in self.ifaces:
577
+ if i.deprecated:
578
+ self.h.write('G_GNUC_DEPRECATED ')
579
+ self.h.write ('%s *%sobject_peek_%s (%sObject *object);\n'
580
+ %(i.camel_name, self.ns_lower, i.name_upper.lower(), self.namespace))
581
+ self.h.write('\n')
582
+ self.h.write('#define %sTYPE_OBJECT_PROXY (%sobject_proxy_get_type ())\n'%(self.ns_upper, self.ns_lower))
583
+ self.h.write('#define %sOBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), %sTYPE_OBJECT_PROXY, %sObjectProxy))\n'%(self.ns_upper, self.ns_upper, self.namespace))
584
+ self.h.write('#define %sOBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), %sTYPE_OBJECT_PROXY, %sObjectProxyClass))\n'%(self.ns_upper, self.ns_upper, self.namespace))
585
+ self.h.write('#define %sOBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), %sTYPE_OBJECT_PROXY, %sObjectProxyClass))\n'%(self.ns_upper, self.ns_upper, self.namespace))
586
+ self.h.write('#define %sIS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), %sTYPE_OBJECT_PROXY))\n'%(self.ns_upper, self.ns_upper))
587
+ self.h.write('#define %sIS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), %sTYPE_OBJECT_PROXY))\n'%(self.ns_upper, self.ns_upper))
588
+ self.h.write('\n')
589
+ self.h.write('typedef struct _%sObjectProxy %sObjectProxy;\n'%(self.namespace, self.namespace))
590
+ self.h.write('typedef struct _%sObjectProxyClass %sObjectProxyClass;\n'%(self.namespace, self.namespace))
591
+ self.h.write('typedef struct _%sObjectProxyPrivate %sObjectProxyPrivate;\n'%(self.namespace, self.namespace))
592
+ self.h.write('\n')
593
+ self.h.write('struct _%sObjectProxy\n'%(self.namespace))
594
+ self.h.write('{\n')
595
+ self.h.write(' /*< private >*/\n')
596
+ self.h.write(' GDBusObjectProxy parent_instance;\n')
597
+ self.h.write(' %sObjectProxyPrivate *priv;\n'%(self.namespace))
598
+ self.h.write('};\n')
599
+ self.h.write('\n')
600
+ self.h.write('struct _%sObjectProxyClass\n'%(self.namespace))
601
+ self.h.write('{\n')
602
+ self.h.write(' GDBusObjectProxyClass parent_class;\n')
603
+ self.h.write('};\n')
604
+ self.h.write('\n')
605
+ self.h.write('GType %sobject_proxy_get_type (void) G_GNUC_CONST;\n'%(self.ns_lower))
606
+ self.h.write('%sObjectProxy *%sobject_proxy_new (GDBusConnection *connection, const gchar *object_path);\n'%(self.namespace, self.ns_lower))
607
+ self.h.write('\n')
608
+ self.h.write('#define %sTYPE_OBJECT_SKELETON (%sobject_skeleton_get_type ())\n'%(self.ns_upper, self.ns_lower))
609
+ self.h.write('#define %sOBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), %sTYPE_OBJECT_SKELETON, %sObjectSkeleton))\n'%(self.ns_upper, self.ns_upper, self.namespace))
610
+ self.h.write('#define %sOBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), %sTYPE_OBJECT_SKELETON, %sObjectSkeletonClass))\n'%(self.ns_upper, self.ns_upper, self.namespace))
611
+ self.h.write('#define %sOBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), %sTYPE_OBJECT_SKELETON, %sObjectSkeletonClass))\n'%(self.ns_upper, self.ns_upper, self.namespace))
612
+ self.h.write('#define %sIS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), %sTYPE_OBJECT_SKELETON))\n'%(self.ns_upper, self.ns_upper))
613
+ self.h.write('#define %sIS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), %sTYPE_OBJECT_SKELETON))\n'%(self.ns_upper, self.ns_upper))
614
+ self.h.write('\n')
615
+ self.h.write('typedef struct _%sObjectSkeleton %sObjectSkeleton;\n'%(self.namespace, self.namespace))
616
+ self.h.write('typedef struct _%sObjectSkeletonClass %sObjectSkeletonClass;\n'%(self.namespace, self.namespace))
617
+ self.h.write('typedef struct _%sObjectSkeletonPrivate %sObjectSkeletonPrivate;\n'%(self.namespace, self.namespace))
618
+ self.h.write('\n')
619
+ self.h.write('struct _%sObjectSkeleton\n'%(self.namespace))
620
+ self.h.write('{\n')
621
+ self.h.write(' /*< private >*/\n')
622
+ self.h.write(' GDBusObjectSkeleton parent_instance;\n')
623
+ self.h.write(' %sObjectSkeletonPrivate *priv;\n'%(self.namespace))
624
+ self.h.write('};\n')
625
+ self.h.write('\n')
626
+ self.h.write('struct _%sObjectSkeletonClass\n'%(self.namespace))
627
+ self.h.write('{\n')
628
+ self.h.write(' GDBusObjectSkeletonClass parent_class;\n')
629
+ self.h.write('};\n')
630
+ self.h.write('\n')
631
+ self.h.write('GType %sobject_skeleton_get_type (void) G_GNUC_CONST;\n'%(self.ns_lower))
632
+ self.h.write('%sObjectSkeleton *%sobject_skeleton_new (const gchar *object_path);\n'
633
+ %(self.namespace, self.ns_lower))
634
+ for i in self.ifaces:
635
+ if i.deprecated:
636
+ self.h.write('G_GNUC_DEPRECATED ')
637
+ self.h.write ('void %sobject_skeleton_set_%s (%sObjectSkeleton *object, %s *interface_);\n'
638
+ %(self.ns_lower, i.name_upper.lower(), self.namespace, i.camel_name))
639
+ self.h.write('\n')
640
+
641
+ self.h.write('/* ---- */\n')
642
+ self.h.write('\n')
643
+ self.h.write('#define %sTYPE_OBJECT_MANAGER_CLIENT (%sobject_manager_client_get_type ())\n'%(self.ns_upper, self.ns_lower))
644
+ self.h.write('#define %sOBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), %sTYPE_OBJECT_MANAGER_CLIENT, %sObjectManagerClient))\n'%(self.ns_upper, self.ns_upper, self.namespace))
645
+ self.h.write('#define %sOBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), %sTYPE_OBJECT_MANAGER_CLIENT, %sObjectManagerClientClass))\n'%(self.ns_upper, self.ns_upper, self.namespace))
646
+ self.h.write('#define %sOBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), %sTYPE_OBJECT_MANAGER_CLIENT, %sObjectManagerClientClass))\n'%(self.ns_upper, self.ns_upper, self.namespace))
647
+ self.h.write('#define %sIS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), %sTYPE_OBJECT_MANAGER_CLIENT))\n'%(self.ns_upper, self.ns_upper))
648
+ self.h.write('#define %sIS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), %sTYPE_OBJECT_MANAGER_CLIENT))\n'%(self.ns_upper, self.ns_upper))
649
+ self.h.write('\n')
650
+ self.h.write('typedef struct _%sObjectManagerClient %sObjectManagerClient;\n'%(self.namespace, self.namespace))
651
+ self.h.write('typedef struct _%sObjectManagerClientClass %sObjectManagerClientClass;\n'%(self.namespace, self.namespace))
652
+ self.h.write('typedef struct _%sObjectManagerClientPrivate %sObjectManagerClientPrivate;\n'%(self.namespace, self.namespace))
653
+ self.h.write('\n')
654
+ self.h.write('struct _%sObjectManagerClient\n'%(self.namespace))
655
+ self.h.write('{\n')
656
+ self.h.write(' /*< private >*/\n')
657
+ self.h.write(' GDBusObjectManagerClient parent_instance;\n')
658
+ self.h.write(' %sObjectManagerClientPrivate *priv;\n'%(self.namespace))
659
+ self.h.write('};\n')
660
+ self.h.write('\n')
661
+ self.h.write('struct _%sObjectManagerClientClass\n'%(self.namespace))
662
+ self.h.write('{\n')
663
+ self.h.write(' GDBusObjectManagerClientClass parent_class;\n')
664
+ self.h.write('};\n')
665
+ self.h.write('\n')
666
+ self.h.write('GType %sobject_manager_client_get_type (void) G_GNUC_CONST;\n'%(self.ns_lower))
667
+ self.h.write('\n')
668
+ self.h.write('GType %sobject_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data);\n'%(self.ns_lower))
669
+ self.h.write('\n')
670
+ self.h.write('void %sobject_manager_client_new (\n'
671
+ ' GDBusConnection *connection,\n'
672
+ ' GDBusObjectManagerClientFlags flags,\n'
673
+ ' const gchar *name,\n'
674
+ ' const gchar *object_path,\n'
675
+ ' GCancellable *cancellable,\n'
676
+ ' GAsyncReadyCallback callback,\n'
677
+ ' gpointer user_data);\n'
678
+ %(self.ns_lower))
679
+ self.h.write('GDBusObjectManager *%sobject_manager_client_new_finish (\n'
680
+ ' GAsyncResult *res,\n'
681
+ ' GError **error);\n'
682
+ %(self.ns_lower))
683
+ self.h.write('GDBusObjectManager *%sobject_manager_client_new_sync (\n'
684
+ ' GDBusConnection *connection,\n'
685
+ ' GDBusObjectManagerClientFlags flags,\n'
686
+ ' const gchar *name,\n'
687
+ ' const gchar *object_path,\n'
688
+ ' GCancellable *cancellable,\n'
689
+ ' GError **error);\n'
690
+ %(self.ns_lower))
691
+ self.h.write('\n')
692
+ self.h.write('void %sobject_manager_client_new_for_bus (\n'
693
+ ' GBusType bus_type,\n'
694
+ ' GDBusObjectManagerClientFlags flags,\n'
695
+ ' const gchar *name,\n'
696
+ ' const gchar *object_path,\n'
697
+ ' GCancellable *cancellable,\n'
698
+ ' GAsyncReadyCallback callback,\n'
699
+ ' gpointer user_data);\n'
700
+ %(self.ns_lower))
701
+ self.h.write('GDBusObjectManager *%sobject_manager_client_new_for_bus_finish (\n'
702
+ ' GAsyncResult *res,\n'
703
+ ' GError **error);\n'
704
+ %(self.ns_lower))
705
+ self.h.write('GDBusObjectManager *%sobject_manager_client_new_for_bus_sync (\n'
706
+ ' GBusType bus_type,\n'
707
+ ' GDBusObjectManagerClientFlags flags,\n'
708
+ ' const gchar *name,\n'
709
+ ' const gchar *object_path,\n'
710
+ ' GCancellable *cancellable,\n'
711
+ ' GError **error);\n'
712
+ %(self.ns_lower))
713
+ self.h.write('\n')
714
+
715
+ # ----------------------------------------------------------------------------------------------------
716
+
717
+ def generate_outro(self):
718
+ self.h.write('\n'
719
+ 'G_END_DECLS\n'
720
+ '\n'
721
+ '#endif /* __%s__ */\n'%(self.header_guard))
722
+
723
+ # ----------------------------------------------------------------------------------------------------
724
+
725
+ def generate_annotations(self, prefix, annotations):
726
+ if annotations == None:
727
+ return
728
+
729
+ n = 0
730
+ for a in annotations:
731
+ #self.generate_annotations('%s_%d'%(prefix, n), a.get_annotations())
732
+
733
+ # skip internal annotations
734
+ if a.key.startswith('org.gtk.GDBus'):
735
+ continue
736
+
737
+ self.c.write('static const GDBusAnnotationInfo %s_%d =\n'
738
+ '{\n'
739
+ ' -1,\n'
740
+ ' (gchar *) "%s",\n'
741
+ ' (gchar *) "%s",\n'%(prefix, n, a.key, a.value))
742
+ if len(a.annotations) == 0:
743
+ self.c.write(' NULL\n')
744
+ else:
745
+ self.c.write(' (GDBusAnnotationInfo **) &%s_%d_pointers\n'%(prefix, n))
746
+ self.c.write('};\n'
747
+ '\n')
748
+ n += 1
749
+
750
+ if n > 0:
751
+ self.c.write('static const GDBusAnnotationInfo * const %s_pointers[] =\n'
752
+ '{\n'%(prefix))
753
+ m = 0;
754
+ for a in annotations:
755
+ if a.key.startswith('org.gtk.GDBus'):
756
+ continue
757
+ self.c.write(' &%s_%d,\n'%(prefix, m))
758
+ m += 1
759
+ self.c.write(' NULL\n'
760
+ '};\n'
761
+ '\n')
762
+ return n
763
+
764
+ def generate_args(self, prefix, args):
765
+ for a in args:
766
+ num_anno = self.generate_annotations('%s_arg_%s_annotation_info'%(prefix, a.name), a.annotations)
767
+
768
+ self.c.write('static const _ExtendedGDBusArgInfo %s_%s =\n'
769
+ '{\n'
770
+ ' {\n'
771
+ ' -1,\n'
772
+ ' (gchar *) "%s",\n'
773
+ ' (gchar *) "%s",\n'%(prefix, a.name, a.name, a.signature))
774
+ if num_anno == 0:
775
+ self.c.write(' NULL\n')
776
+ else:
777
+ self.c.write(' (GDBusAnnotationInfo **) &%s_arg_%s_annotation_info_pointers\n'%(prefix, a.name))
778
+ self.c.write(' },\n')
779
+ if not utils.lookup_annotation(a.annotations, 'org.gtk.GDBus.C.ForceGVariant'):
780
+ self.c.write(' FALSE\n')
781
+ else:
782
+ self.c.write(' TRUE\n')
783
+ self.c.write('};\n'
784
+ '\n')
785
+
786
+ if len(args) > 0:
787
+ self.c.write('static const _ExtendedGDBusArgInfo * const %s_pointers[] =\n'
788
+ '{\n'%(prefix))
789
+ for a in args:
790
+ self.c.write(' &%s_%s,\n'%(prefix, a.name))
791
+ self.c.write(' NULL\n'
792
+ '};\n'
793
+ '\n')
794
+
795
+ def generate_introspection_for_interface(self, i):
796
+ self.c.write('/* ---- Introspection data for %s ---- */\n'
797
+ '\n'%(i.name))
798
+
799
+ if len(i.methods) > 0:
800
+ for m in i.methods:
801
+ unix_fd = False
802
+ if utils.lookup_annotation(m.annotations, 'org.gtk.GDBus.C.UnixFD'):
803
+ unix_fd = True
804
+ self.generate_args('_%s_method_info_%s_IN_ARG'%(i.name_lower, m.name_lower), m.in_args)
805
+ self.generate_args('_%s_method_info_%s_OUT_ARG'%(i.name_lower, m.name_lower), m.out_args)
806
+
807
+ num_anno = self.generate_annotations('_%s_method_%s_annotation_info'%(i.name_lower, m.name_lower), m.annotations)
808
+
809
+ self.c.write('static const _ExtendedGDBusMethodInfo _%s_method_info_%s =\n'
810
+ '{\n'
811
+ ' {\n'
812
+ ' -1,\n'
813
+ ' (gchar *) "%s",\n'%(i.name_lower, m.name_lower, m.name))
814
+ if len(m.in_args) == 0:
815
+ self.c.write(' NULL,\n')
816
+ else:
817
+ self.c.write(' (GDBusArgInfo **) &_%s_method_info_%s_IN_ARG_pointers,\n'%(i.name_lower, m.name_lower))
818
+ if len(m.out_args) == 0:
819
+ self.c.write(' NULL,\n')
820
+ else:
821
+ self.c.write(' (GDBusArgInfo **) &_%s_method_info_%s_OUT_ARG_pointers,\n'%(i.name_lower, m.name_lower))
822
+ if num_anno == 0:
823
+ self.c.write(' NULL\n')
824
+ else:
825
+ self.c.write(' (GDBusAnnotationInfo **) &_%s_method_%s_annotation_info_pointers\n'%(i.name_lower, m.name_lower))
826
+ self.c.write(' },\n'
827
+ ' "handle-%s",\n'
828
+ ' %s\n'
829
+ %(m.name_hyphen, 'TRUE' if unix_fd else 'FALSE'))
830
+ self.c.write('};\n'
831
+ '\n')
832
+
833
+ self.c.write('static const _ExtendedGDBusMethodInfo * const _%s_method_info_pointers[] =\n'
834
+ '{\n'%(i.name_lower))
835
+ for m in i.methods:
836
+ self.c.write(' &_%s_method_info_%s,\n'%(i.name_lower, m.name_lower))
837
+ self.c.write(' NULL\n'
838
+ '};\n'
839
+ '\n')
840
+
841
+ # ---
842
+
843
+ if len(i.signals) > 0:
844
+ for s in i.signals:
845
+ self.generate_args('_%s_signal_info_%s_ARG'%(i.name_lower, s.name_lower), s.args)
846
+
847
+ num_anno = self.generate_annotations('_%s_signal_%s_annotation_info'%(i.name_lower, s.name_lower), s.annotations)
848
+ self.c.write('static const _ExtendedGDBusSignalInfo _%s_signal_info_%s =\n'
849
+ '{\n'
850
+ ' {\n'
851
+ ' -1,\n'
852
+ ' (gchar *) "%s",\n'%(i.name_lower, s.name_lower, s.name))
853
+ if len(s.args) == 0:
854
+ self.c.write(' NULL,\n')
855
+ else:
856
+ self.c.write(' (GDBusArgInfo **) &_%s_signal_info_%s_ARG_pointers,\n'%(i.name_lower, s.name_lower))
857
+ if num_anno == 0:
858
+ self.c.write(' NULL\n')
859
+ else:
860
+ self.c.write(' (GDBusAnnotationInfo **) &_%s_signal_%s_annotation_info_pointers\n'%(i.name_lower, s.name_lower))
861
+ self.c.write(' },\n'
862
+ ' "%s"\n'
863
+ %(s.name_hyphen))
864
+ self.c.write('};\n'
865
+ '\n')
866
+
867
+ self.c.write('static const _ExtendedGDBusSignalInfo * const _%s_signal_info_pointers[] =\n'
868
+ '{\n'%(i.name_lower))
869
+ for s in i.signals:
870
+ self.c.write(' &_%s_signal_info_%s,\n'%(i.name_lower, s.name_lower))
871
+ self.c.write(' NULL\n'
872
+ '};\n'
873
+ '\n')
874
+
875
+ # ---
876
+
877
+ if len(i.properties) > 0:
878
+ for p in i.properties:
879
+ if p.readable and p.writable:
880
+ access = 'G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE'
881
+ elif p.readable:
882
+ access = 'G_DBUS_PROPERTY_INFO_FLAGS_READABLE'
883
+ elif p.writable:
884
+ access = 'G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE'
885
+ else:
886
+ access = 'G_DBUS_PROPERTY_INFO_FLAGS_NONE'
887
+ num_anno = self.generate_annotations('_%s_property_%s_annotation_info'%(i.name_lower, p.name_lower), p.annotations)
888
+ self.c.write('static const _ExtendedGDBusPropertyInfo _%s_property_info_%s =\n'
889
+ '{\n'
890
+ ' {\n'
891
+ ' -1,\n'
892
+ ' (gchar *) "%s",\n'
893
+ ' (gchar *) "%s",\n'
894
+ ' %s,\n'%(i.name_lower, p.name_lower, p.name, p.arg.signature, access))
895
+ if num_anno == 0:
896
+ self.c.write(' NULL\n')
897
+ else:
898
+ self.c.write(' (GDBusAnnotationInfo **) &_%s_property_%s_annotation_info_pointers\n'%(i.name_lower, p.name_lower))
899
+ self.c.write(' },\n'
900
+ ' "%s",\n'
901
+ %(p.name_hyphen))
902
+ if not utils.lookup_annotation(p.annotations, 'org.gtk.GDBus.C.ForceGVariant'):
903
+ self.c.write(' FALSE\n')
904
+ else:
905
+ self.c.write(' TRUE\n')
906
+ self.c.write('};\n'
907
+ '\n')
908
+
909
+ self.c.write('static const _ExtendedGDBusPropertyInfo * const _%s_property_info_pointers[] =\n'
910
+ '{\n'%(i.name_lower))
911
+ for p in i.properties:
912
+ self.c.write(' &_%s_property_info_%s,\n'%(i.name_lower, p.name_lower))
913
+ self.c.write(' NULL\n'
914
+ '};\n'
915
+ '\n')
916
+
917
+ num_anno = self.generate_annotations('_%s_annotation_info'%(i.name_lower), i.annotations)
918
+ self.c.write('static const _ExtendedGDBusInterfaceInfo _%s_interface_info =\n'
919
+ '{\n'
920
+ ' {\n'
921
+ ' -1,\n'
922
+ ' (gchar *) "%s",\n'%(i.name_lower, i.name))
923
+ if len(i.methods) == 0:
924
+ self.c.write(' NULL,\n')
925
+ else:
926
+ self.c.write(' (GDBusMethodInfo **) &_%s_method_info_pointers,\n'%(i.name_lower))
927
+ if len(i.signals) == 0:
928
+ self.c.write(' NULL,\n')
929
+ else:
930
+ self.c.write(' (GDBusSignalInfo **) &_%s_signal_info_pointers,\n'%(i.name_lower))
931
+ if len(i.properties) == 0:
932
+ self.c.write(' NULL,\n')
933
+ else:
934
+ self.c.write(' (GDBusPropertyInfo **) &_%s_property_info_pointers,\n'%(i.name_lower))
935
+ if num_anno == 0:
936
+ self.c.write(' NULL\n')
937
+ else:
938
+ self.c.write(' (GDBusAnnotationInfo **) &_%s_annotation_info_pointers\n'%(i.name_lower))
939
+ self.c.write(' },\n'
940
+ ' "%s",\n'
941
+ '};\n'
942
+ '\n'
943
+ %(i.name_hyphen))
944
+ self.c.write('\n')
945
+ self.c.write(self.docbook_gen.expand(
946
+ '/**\n'
947
+ ' * %s_interface_info:\n'
948
+ ' *\n'
949
+ ' * Gets a machine-readable description of the #%s D-Bus interface.\n'
950
+ ' *\n'
951
+ ' * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.\n'
952
+ %(i.name_lower, i.name), False))
953
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
954
+ self.c.write('GDBusInterfaceInfo *\n'
955
+ '%s_interface_info (void)\n'
956
+ '{\n'
957
+ ' return (GDBusInterfaceInfo *) &_%s_interface_info.parent_struct;\n'
958
+ '}\n'
959
+ '\n'%(i.name_lower, i.name_lower))
960
+
961
+ self.c.write(self.docbook_gen.expand(
962
+ '/**\n'
963
+ ' * %s_override_properties:\n'
964
+ ' * @klass: The class structure for a #GObject<!-- -->-derived class.\n'
965
+ ' * @property_id_begin: The property id to assign to the first overridden property.\n'
966
+ ' *\n'
967
+ ' * Overrides all #GObject properties in the #%s interface for a concrete class.\n'
968
+ ' * The properties are overridden in the order they are defined.\n'
969
+ ' *\n'
970
+ ' * Returns: The last property id.\n'
971
+ %(i.name_lower, i.camel_name), False))
972
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
973
+ self.c.write('guint\n'
974
+ '%s_override_properties (GObjectClass *klass, guint property_id_begin)\n'
975
+ '{\n'%(i.name_lower))
976
+ for p in i.properties:
977
+ self.c.write (' g_object_class_override_property (klass, property_id_begin++, "%s");\n'%(p.name_hyphen))
978
+ self.c.write(' return property_id_begin - 1;\n'
979
+ '}\n'
980
+ '\n')
981
+ self.c.write('\n')
982
+
983
+ # ----------------------------------------------------------------------------------------------------
984
+
985
+ def generate_interface(self, i):
986
+ self.c.write('\n')
987
+
988
+ self.c.write(self.docbook_gen.expand(
989
+ '/**\n'
990
+ ' * %s:\n'
991
+ ' *\n'
992
+ ' * Abstract interface type for the D-Bus interface #%s.\n'
993
+ %(i.camel_name, i.name), False))
994
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
995
+ self.c.write('\n')
996
+
997
+ self.c.write(self.docbook_gen.expand(
998
+ '/**\n'
999
+ ' * %sIface:\n'
1000
+ ' * @parent_iface: The parent interface.\n'
1001
+ %(i.camel_name), False))
1002
+
1003
+ doc_bits = {}
1004
+ if len(i.methods) > 0:
1005
+ for m in i.methods:
1006
+ key = (m.since, '_method_%s'%m.name_lower)
1007
+ value = '@handle_%s: '%(m.name_lower)
1008
+ value += 'Handler for the #%s::handle-%s signal.'%(i.camel_name, m.name_hyphen)
1009
+ doc_bits[key] = value
1010
+ if len(i.signals) > 0:
1011
+ for s in i.signals:
1012
+ key = (s.since, '_signal_%s'%s.name_lower)
1013
+ value = '@%s: '%(s.name_lower)
1014
+ value += 'Handler for the #%s::%s signal.'%(i.camel_name, s.name_hyphen)
1015
+ doc_bits[key] = value
1016
+ if len(i.properties) > 0:
1017
+ for p in i.properties:
1018
+ key = (p.since, '_prop_get_%s'%p.name_lower)
1019
+ value = '@get_%s: '%(p.name_lower)
1020
+ value += 'Getter for the #%s:%s property.'%(i.camel_name, p.name_hyphen)
1021
+ doc_bits[key] = value
1022
+ for key in sorted(doc_bits.keys(), key=utils.version_cmp_key):
1023
+ self.c.write(' * %s\n'%doc_bits[key])
1024
+
1025
+ self.c.write(self.docbook_gen.expand(
1026
+ ' *\n'
1027
+ ' * Virtual table for the D-Bus interface #%s.\n'
1028
+ %(i.name), False))
1029
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
1030
+ self.c.write('\n')
1031
+
1032
+ self.c.write('static void\n'
1033
+ '%s_default_init (%sIface *iface)\n'
1034
+ '{\n'%(i.name_lower, i.camel_name));
1035
+
1036
+ if len(i.methods) > 0:
1037
+ self.c.write(' /* GObject signals for incoming D-Bus method calls: */\n')
1038
+ for m in i.methods:
1039
+ unix_fd = False
1040
+ if utils.lookup_annotation(m.annotations, 'org.gtk.GDBus.C.UnixFD'):
1041
+ unix_fd = True
1042
+ self.c.write(self.docbook_gen.expand(
1043
+ ' /**\n'
1044
+ ' * %s::handle-%s:\n'
1045
+ ' * @object: A #%s.\n'
1046
+ ' * @invocation: A #GDBusMethodInvocation.\n'
1047
+ %(i.camel_name, m.name_hyphen, i.camel_name), False))
1048
+ if unix_fd:
1049
+ self.c.write (' * @fd_list: (allow-none): A #GUnixFDList or %NULL.\n')
1050
+ for a in m.in_args:
1051
+ self.c.write (' * @arg_%s: Argument passed by remote caller.\n'%(a.name))
1052
+ self.c.write(self.docbook_gen.expand(
1053
+ ' *\n'
1054
+ ' * Signal emitted when a remote caller is invoking the %s.%s() D-Bus method.\n'
1055
+ ' *\n'
1056
+ ' * If a signal handler returns %%TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call %s_complete_%s() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %%G_DBUS_ERROR_UNKNOWN_METHOD error is returned.\n'
1057
+ ' *\n'
1058
+ ' * Returns: %%TRUE if the invocation was handled, %%FALSE to let other signal handlers run.\n'
1059
+ %(i.name, m.name, i.name_lower, m.name_lower), False))
1060
+ self.write_gtkdoc_deprecated_and_since_and_close(m, self.c, 2)
1061
+ if unix_fd:
1062
+ extra_args = 2
1063
+ else:
1064
+ extra_args = 1
1065
+ self.c.write(' g_signal_new ("handle-%s",\n'
1066
+ ' G_TYPE_FROM_INTERFACE (iface),\n'
1067
+ ' G_SIGNAL_RUN_LAST,\n'
1068
+ ' G_STRUCT_OFFSET (%sIface, handle_%s),\n'
1069
+ ' g_signal_accumulator_true_handled,\n'
1070
+ ' NULL,\n' # accu_data
1071
+ ' g_cclosure_marshal_generic,\n'
1072
+ ' G_TYPE_BOOLEAN,\n'
1073
+ ' %d,\n'
1074
+ ' G_TYPE_DBUS_METHOD_INVOCATION'
1075
+ %(m.name_hyphen, i.camel_name, m.name_lower, len(m.in_args) + extra_args))
1076
+ if unix_fd:
1077
+ self.c.write(', G_TYPE_UNIX_FD_LIST')
1078
+ for a in m.in_args:
1079
+ self.c.write (', %s'%(a.gtype))
1080
+ self.c.write(');\n')
1081
+ self.c.write('\n')
1082
+
1083
+ if len(i.signals) > 0:
1084
+ self.c.write(' /* GObject signals for received D-Bus signals: */\n')
1085
+ for s in i.signals:
1086
+ self.c.write(self.docbook_gen.expand(
1087
+ ' /**\n'
1088
+ ' * %s::%s:\n'
1089
+ ' * @object: A #%s.\n'
1090
+ %(i.camel_name, s.name_hyphen, i.camel_name), False))
1091
+ for a in s.args:
1092
+ self.c.write (' * @arg_%s: Argument.\n'%(a.name))
1093
+ self.c.write(self.docbook_gen.expand(
1094
+ ' *\n'
1095
+ ' * On the client-side, this signal is emitted whenever the D-Bus signal #%s::%s is received.\n'
1096
+ ' *\n'
1097
+ ' * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.\n'
1098
+ %(i.name, s.name), False))
1099
+ self.write_gtkdoc_deprecated_and_since_and_close(s, self.c, 2)
1100
+ self.c.write(' g_signal_new ("%s",\n'
1101
+ ' G_TYPE_FROM_INTERFACE (iface),\n'
1102
+ ' G_SIGNAL_RUN_LAST,\n'
1103
+ ' G_STRUCT_OFFSET (%sIface, %s),\n'
1104
+ ' NULL,\n' # accumulator
1105
+ ' NULL,\n' # accu_data
1106
+ ' g_cclosure_marshal_generic,\n'
1107
+ ' G_TYPE_NONE,\n'
1108
+ ' %d'
1109
+ %(s.name_hyphen, i.camel_name, s.name_lower, len(s.args)))
1110
+ for a in s.args:
1111
+ self.c.write (', %s'%(a.gtype))
1112
+ self.c.write(');\n')
1113
+ self.c.write('\n')
1114
+
1115
+ if len(i.properties) > 0:
1116
+ self.c.write(' /* GObject properties for D-Bus properties: */\n')
1117
+ for p in i.properties:
1118
+ if p.readable and p.writable:
1119
+ hint = 'Since the D-Bus property for this #GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.'
1120
+ elif p.readable:
1121
+ hint = 'Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.'
1122
+ elif p.writable:
1123
+ hint = 'Since the D-Bus property for this #GObject property is writable but not readable, it is meaningful to write to it on both the client- and service-side. It is only meaningful, however, to read from it on the service-side.'
1124
+ else:
1125
+ raise RuntimeError('Cannot handle property %s that neither readable nor writable'%(p.name))
1126
+ self.c.write(self.docbook_gen.expand(
1127
+ ' /**\n'
1128
+ ' * %s:%s:\n'
1129
+ ' *\n'
1130
+ ' * Represents the D-Bus property #%s:%s.\n'
1131
+ ' *\n'
1132
+ ' * %s\n'
1133
+ %(i.camel_name, p.name_hyphen, i.name, p.name, hint), False))
1134
+ self.write_gtkdoc_deprecated_and_since_and_close(p, self.c, 2)
1135
+ self.c.write(' g_object_interface_install_property (iface,\n')
1136
+ if p.arg.gtype == 'G_TYPE_VARIANT':
1137
+ s = 'g_param_spec_variant ("%s", "%s", "%s", G_VARIANT_TYPE ("%s"), NULL'%(p.name_hyphen, p.name, p.name, p.arg.signature)
1138
+ elif p.arg.signature == 'b':
1139
+ s = 'g_param_spec_boolean ("%s", "%s", "%s", FALSE'%(p.name_hyphen, p.name, p.name)
1140
+ elif p.arg.signature == 'y':
1141
+ s = 'g_param_spec_uchar ("%s", "%s", "%s", 0, 255, 0'%(p.name_hyphen, p.name, p.name)
1142
+ elif p.arg.signature == 'n':
1143
+ s = 'g_param_spec_int ("%s", "%s", "%s", G_MININT16, G_MAXINT16, 0'%(p.name_hyphen, p.name, p.name)
1144
+ elif p.arg.signature == 'q':
1145
+ s = 'g_param_spec_uint ("%s", "%s", "%s", 0, G_MAXUINT16, 0'%(p.name_hyphen, p.name, p.name)
1146
+ elif p.arg.signature == 'i':
1147
+ s = 'g_param_spec_int ("%s", "%s", "%s", G_MININT32, G_MAXINT32, 0'%(p.name_hyphen, p.name, p.name)
1148
+ elif p.arg.signature == 'u':
1149
+ s = 'g_param_spec_uint ("%s", "%s", "%s", 0, G_MAXUINT32, 0'%(p.name_hyphen, p.name, p.name)
1150
+ elif p.arg.signature == 'x':
1151
+ s = 'g_param_spec_int64 ("%s", "%s", "%s", G_MININT64, G_MAXINT64, 0'%(p.name_hyphen, p.name, p.name)
1152
+ elif p.arg.signature == 't':
1153
+ s = 'g_param_spec_uint64 ("%s", "%s", "%s", 0, G_MAXUINT64, 0'%(p.name_hyphen, p.name, p.name)
1154
+ elif p.arg.signature == 'd':
1155
+ s = 'g_param_spec_double ("%s", "%s", "%s", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0'%(p.name_hyphen, p.name, p.name)
1156
+ elif p.arg.signature == 's':
1157
+ s = 'g_param_spec_string ("%s", "%s", "%s", NULL'%(p.name_hyphen, p.name, p.name)
1158
+ elif p.arg.signature == 'o':
1159
+ s = 'g_param_spec_string ("%s", "%s", "%s", NULL'%(p.name_hyphen, p.name, p.name)
1160
+ elif p.arg.signature == 'g':
1161
+ s = 'g_param_spec_string ("%s", "%s", "%s", NULL'%(p.name_hyphen, p.name, p.name)
1162
+ elif p.arg.signature == 'ay':
1163
+ s = 'g_param_spec_string ("%s", "%s", "%s", NULL'%(p.name_hyphen, p.name, p.name)
1164
+ elif p.arg.signature == 'as':
1165
+ s = 'g_param_spec_boxed ("%s", "%s", "%s", G_TYPE_STRV'%(p.name_hyphen, p.name, p.name)
1166
+ elif p.arg.signature == 'ao':
1167
+ s = 'g_param_spec_boxed ("%s", "%s", "%s", G_TYPE_STRV'%(p.name_hyphen, p.name, p.name)
1168
+ elif p.arg.signature == 'aay':
1169
+ s = 'g_param_spec_boxed ("%s", "%s", "%s", G_TYPE_STRV'%(p.name_hyphen, p.name, p.name)
1170
+ else:
1171
+ raise RuntimeError('Unsupported gtype %s for GParamSpec'%(p.arg.gtype))
1172
+ self.c.write(' %s, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));'%s);
1173
+ self.c.write('\n')
1174
+
1175
+ self.c.write('}\n'
1176
+ '\n')
1177
+
1178
+ self.c.write('typedef %sIface %sInterface;\n'%(i.camel_name, i.camel_name))
1179
+ self.c.write('G_DEFINE_INTERFACE (%s, %s, G_TYPE_OBJECT);\n'%(i.camel_name, i.name_lower))
1180
+ self.c.write('\n')
1181
+
1182
+ # ----------------------------------------------------------------------------------------------------
1183
+
1184
+ def generate_property_accessors(self, i):
1185
+ for p in i.properties:
1186
+ # getter
1187
+ if p.readable and p.writable:
1188
+ hint = 'Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.'
1189
+ elif p.readable:
1190
+ hint = 'Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.'
1191
+ elif p.writable:
1192
+ hint = 'Since this D-Bus property is not readable, it is only meaningful to use this function on the service-side.'
1193
+ else:
1194
+ raise RuntimeError('Cannot handle property %s that neither readable nor writable'%(p.name))
1195
+ self.c.write(self.docbook_gen.expand(
1196
+ '/**\n'
1197
+ ' * %s_get_%s: (skip)\n'
1198
+ ' * @object: A #%s.\n'
1199
+ ' *\n'
1200
+ ' * Gets the value of the #%s:%s D-Bus property.\n'
1201
+ ' *\n'
1202
+ ' * %s\n'
1203
+ ' *\n'
1204
+ %(i.name_lower, p.name_lower, i.camel_name, i.name, p.name, hint), False))
1205
+ if p.arg.free_func != None:
1206
+ self.c.write(' * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use %s_dup_%s() if on another thread.</warning>\n'
1207
+ ' *\n'
1208
+ ' * Returns: (transfer none): The property value or %%NULL if the property is not set. Do not free the returned value, it belongs to @object.\n'
1209
+ %(i.name_lower, p.name_lower))
1210
+ else:
1211
+ self.c.write(' * Returns: The property value.\n')
1212
+ self.write_gtkdoc_deprecated_and_since_and_close(p, self.c, 0)
1213
+ self.c.write('%s\n'
1214
+ '%s_get_%s (%s *object)\n'
1215
+ '{\n'%(p.arg.ctype_in, i.name_lower, p.name_lower, i.camel_name))
1216
+ self.c.write(' return %s%s_GET_IFACE (object)->get_%s (object);\n'%(i.ns_upper, i.name_upper, p.name_lower))
1217
+ self.c.write('}\n')
1218
+ self.c.write('\n')
1219
+ if p.arg.free_func != None:
1220
+
1221
+ self.c.write(self.docbook_gen.expand(
1222
+ '/**\n'
1223
+ ' * %s_dup_%s: (skip)\n'
1224
+ ' * @object: A #%s.\n'
1225
+ ' *\n'
1226
+ ' * Gets a copy of the #%s:%s D-Bus property.\n'
1227
+ ' *\n'
1228
+ ' * %s\n'
1229
+ ' *\n'
1230
+ ' * Returns: (transfer full): The property value or %%NULL if the property is not set. The returned value should be freed with %s().\n'
1231
+ %(i.name_lower, p.name_lower, i.camel_name, i.name, p.name, hint, p.arg.free_func), False))
1232
+ self.write_gtkdoc_deprecated_and_since_and_close(p, self.c, 0)
1233
+ self.c.write('%s\n'
1234
+ '%s_dup_%s (%s *object)\n'
1235
+ '{\n'
1236
+ ' %svalue;\n'%(p.arg.ctype_in_dup, i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in_dup))
1237
+ self.c.write(' g_object_get (G_OBJECT (object), "%s", &value, NULL);\n'%(p.name_hyphen))
1238
+ self.c.write(' return value;\n')
1239
+ self.c.write('}\n')
1240
+ self.c.write('\n')
1241
+
1242
+ # setter
1243
+ if p.readable and p.writable:
1244
+ hint = 'Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.'
1245
+ elif p.readable:
1246
+ hint = 'Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.'
1247
+ elif p.writable:
1248
+ hint = 'Since this D-Bus property is writable, it is meaningful to use this function on both the client- and service-side.'
1249
+ else:
1250
+ raise RuntimeError('Cannot handle property %s that neither readable nor writable'%(p.name))
1251
+ self.c.write(self.docbook_gen.expand(
1252
+ '/**\n'
1253
+ ' * %s_set_%s: (skip)\n'
1254
+ ' * @object: A #%s.\n'
1255
+ ' * @value: The value to set.\n'
1256
+ ' *\n'
1257
+ ' * Sets the #%s:%s D-Bus property to @value.\n'
1258
+ ' *\n'
1259
+ ' * %s\n'
1260
+ %(i.name_lower, p.name_lower, i.camel_name, i.name, p.name, hint), False))
1261
+ self.write_gtkdoc_deprecated_and_since_and_close(p, self.c, 0)
1262
+ self.c.write('void\n'
1263
+ '%s_set_%s (%s *object, %svalue)\n'
1264
+ '{\n'%(i.name_lower, p.name_lower, i.camel_name, p.arg.ctype_in, ))
1265
+ self.c.write(' g_object_set (G_OBJECT (object), "%s", value, NULL);\n'%(p.name_hyphen))
1266
+ self.c.write('}\n')
1267
+ self.c.write('\n')
1268
+
1269
+ # ---------------------------------------------------------------------------------------------------
1270
+
1271
+ def generate_signal_emitters(self, i):
1272
+ for s in i.signals:
1273
+ self.c.write(self.docbook_gen.expand(
1274
+ '/**\n'
1275
+ ' * %s_emit_%s:\n'
1276
+ ' * @object: A #%s.\n'
1277
+ %(i.name_lower, s.name_lower, i.camel_name), False))
1278
+ for a in s.args:
1279
+ self.c.write(' * @arg_%s: Argument to pass with the signal.\n'%(a.name))
1280
+ self.c.write(self.docbook_gen.expand(
1281
+ ' *\n'
1282
+ ' * Emits the #%s::%s D-Bus signal.\n'
1283
+ %(i.name, s.name), False))
1284
+ self.write_gtkdoc_deprecated_and_since_and_close(s, self.c, 0)
1285
+ self.c.write('void\n'
1286
+ '%s_emit_%s (\n'
1287
+ ' %s *object'%(i.name_lower, s.name_lower, i.camel_name))
1288
+ for a in s.args:
1289
+ self.c.write(',\n %sarg_%s'%(a.ctype_in, a.name))
1290
+ self.c.write(')\n'
1291
+ '{\n'
1292
+ ' g_signal_emit_by_name (object, "%s"'%(s.name_hyphen))
1293
+ for a in s.args:
1294
+ self.c.write(', arg_%s'%a.name)
1295
+ self.c.write(');\n')
1296
+ self.c.write('}\n'
1297
+ '\n')
1298
+
1299
+ # ---------------------------------------------------------------------------------------------------
1300
+
1301
+ def generate_method_calls(self, i):
1302
+ for m in i.methods:
1303
+ unix_fd = False
1304
+ if utils.lookup_annotation(m.annotations, 'org.gtk.GDBus.C.UnixFD'):
1305
+ unix_fd = True
1306
+ # async begin
1307
+ self.c.write('/**\n'
1308
+ ' * %s_call_%s:\n'
1309
+ ' * @proxy: A #%sProxy.\n'
1310
+ %(i.name_lower, m.name_lower, i.camel_name))
1311
+ for a in m.in_args:
1312
+ self.c.write(' * @arg_%s: Argument to pass with the method invocation.\n'%(a.name))
1313
+ if unix_fd:
1314
+ self.c.write(' * @fd_list: (allow-none): A #GUnixFDList or %NULL.\n')
1315
+ self.c.write(self.docbook_gen.expand(
1316
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
1317
+ ' * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %%NULL.\n'
1318
+ ' * @user_data: User data to pass to @callback.\n'
1319
+ ' *\n'
1320
+ ' * Asynchronously invokes the %s.%s() D-Bus method on @proxy.\n'
1321
+ ' * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.\n'
1322
+ ' * You can then call %s_call_%s_finish() to get the result of the operation.\n'
1323
+ ' *\n'
1324
+ ' * See %s_call_%s_sync() for the synchronous, blocking version of this method.\n'
1325
+ %(i.name, m.name, i.name_lower, m.name_lower, i.name_lower, m.name_lower), False))
1326
+ self.write_gtkdoc_deprecated_and_since_and_close(m, self.c, 0)
1327
+ self.c.write('void\n'
1328
+ '%s_call_%s (\n'
1329
+ ' %s *proxy'%(i.name_lower, m.name_lower, i.camel_name))
1330
+ for a in m.in_args:
1331
+ self.c.write(',\n %sarg_%s'%(a.ctype_in, a.name))
1332
+ if unix_fd:
1333
+ self.c.write(',\n GUnixFDList *fd_list')
1334
+ self.c.write(',\n'
1335
+ ' GCancellable *cancellable,\n'
1336
+ ' GAsyncReadyCallback callback,\n'
1337
+ ' gpointer user_data)\n'
1338
+ '{\n')
1339
+ if unix_fd:
1340
+ self.c.write(' g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy),\n')
1341
+ else:
1342
+ self.c.write(' g_dbus_proxy_call (G_DBUS_PROXY (proxy),\n')
1343
+ self.c.write(' "%s",\n'
1344
+ ' g_variant_new ("('%(m.name))
1345
+ for a in m.in_args:
1346
+ self.c.write('%s'%(a.format_in))
1347
+ self.c.write(')"')
1348
+ for a in m.in_args:
1349
+ self.c.write(',\n arg_%s'%(a.name))
1350
+ self.c.write('),\n'
1351
+ ' G_DBUS_CALL_FLAGS_NONE,\n'
1352
+ ' -1,\n')
1353
+ if unix_fd:
1354
+ self.c.write(' fd_list,\n')
1355
+ self.c.write(' cancellable,\n'
1356
+ ' callback,\n'
1357
+ ' user_data);\n')
1358
+ self.c.write('}\n'
1359
+ '\n')
1360
+ # async finish
1361
+ self.c.write('/**\n'
1362
+ ' * %s_call_%s_finish:\n'
1363
+ ' * @proxy: A #%sProxy.\n'
1364
+ %(i.name_lower, m.name_lower, i.camel_name))
1365
+ for a in m.out_args:
1366
+ self.c.write(' * @out_%s: (out): Return location for return parameter or %%NULL to ignore.\n'%(a.name))
1367
+ if unix_fd:
1368
+ self.c.write(' * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.\n')
1369
+ self.c.write(self.docbook_gen.expand(
1370
+ ' * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to %s_call_%s().\n'
1371
+ ' * @error: Return location for error or %%NULL.\n'
1372
+ ' *\n'
1373
+ ' * Finishes an operation started with %s_call_%s().\n'
1374
+ ' *\n'
1375
+ ' * Returns: (skip): %%TRUE if the call succeded, %%FALSE if @error is set.\n'
1376
+ %(i.name_lower, m.name_lower, i.name_lower, m.name_lower), False))
1377
+ self.write_gtkdoc_deprecated_and_since_and_close(m, self.c, 0)
1378
+ self.c.write('gboolean\n'
1379
+ '%s_call_%s_finish (\n'
1380
+ ' %s *proxy'%(i.name_lower, m.name_lower, i.camel_name))
1381
+ for a in m.out_args:
1382
+ self.c.write(',\n %sout_%s'%(a.ctype_out, a.name))
1383
+ if unix_fd:
1384
+ self.c.write(',\n GUnixFDList **out_fd_list')
1385
+ self.c.write(',\n'
1386
+ ' GAsyncResult *res,\n'
1387
+ ' GError **error)\n'
1388
+ '{\n'
1389
+ ' GVariant *_ret;\n')
1390
+ if unix_fd:
1391
+ self.c.write(' _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error);\n')
1392
+ else:
1393
+ self.c.write(' _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);\n')
1394
+ self.c.write(' if (_ret == NULL)\n'
1395
+ ' goto _out;\n')
1396
+ self.c.write(' g_variant_get (_ret,\n'
1397
+ ' \"(')
1398
+ for a in m.out_args:
1399
+ self.c.write('%s'%(a.format_out))
1400
+ self.c.write(')"')
1401
+ for a in m.out_args:
1402
+ self.c.write(',\n out_%s'%(a.name))
1403
+ self.c.write(');\n'
1404
+ ' g_variant_unref (_ret);\n')
1405
+ self.c.write('_out:\n'
1406
+ ' return _ret != NULL;\n'
1407
+ '}\n'
1408
+ '\n')
1409
+
1410
+
1411
+ # sync
1412
+ self.c.write('/**\n'
1413
+ ' * %s_call_%s_sync:\n'
1414
+ ' * @proxy: A #%sProxy.\n'
1415
+ %(i.name_lower, m.name_lower, i.camel_name))
1416
+ for a in m.in_args:
1417
+ self.c.write(' * @arg_%s: Argument to pass with the method invocation.\n'%(a.name))
1418
+ if unix_fd:
1419
+ self.c.write(' * @fd_list: (allow-none): A #GUnixFDList or %NULL.\n')
1420
+ for a in m.out_args:
1421
+ self.c.write(' * @out_%s: (out): Return location for return parameter or %%NULL to ignore.\n'%(a.name))
1422
+ if unix_fd:
1423
+ self.c.write(' * @out_fd_list: (out): Return location for a #GUnixFDList or %NULL.\n')
1424
+ self.c.write(self.docbook_gen.expand(
1425
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
1426
+ ' * @error: Return location for error or %%NULL.\n'
1427
+ ' *\n'
1428
+ ' * Synchronously invokes the %s.%s() D-Bus method on @proxy. The calling thread is blocked until a reply is received.\n'
1429
+ ' *\n'
1430
+ ' * See %s_call_%s() for the asynchronous version of this method.\n'
1431
+ ' *\n'
1432
+ ' * Returns: (skip): %%TRUE if the call succeded, %%FALSE if @error is set.\n'
1433
+ %(i.name, m.name, i.name_lower, m.name_lower), False))
1434
+ self.write_gtkdoc_deprecated_and_since_and_close(m, self.c, 0)
1435
+ self.c.write('gboolean\n'
1436
+ '%s_call_%s_sync (\n'
1437
+ ' %s *proxy'%(i.name_lower, m.name_lower, i.camel_name))
1438
+ for a in m.in_args:
1439
+ self.c.write(',\n %sarg_%s'%(a.ctype_in, a.name))
1440
+ if unix_fd:
1441
+ self.c.write(',\n GUnixFDList *fd_list')
1442
+ for a in m.out_args:
1443
+ self.c.write(',\n %sout_%s'%(a.ctype_out, a.name))
1444
+ if unix_fd:
1445
+ self.c.write(',\n GUnixFDList **out_fd_list')
1446
+ self.c.write(',\n'
1447
+ ' GCancellable *cancellable,\n'
1448
+ ' GError **error)\n'
1449
+ '{\n'
1450
+ ' GVariant *_ret;\n')
1451
+ if unix_fd:
1452
+ self.c.write(' _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy),\n')
1453
+ else:
1454
+ self.c.write(' _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),\n')
1455
+ self.c.write(' "%s",\n'
1456
+ ' g_variant_new ("('%(m.name))
1457
+ for a in m.in_args:
1458
+ self.c.write('%s'%(a.format_in))
1459
+ self.c.write(')"')
1460
+ for a in m.in_args:
1461
+ self.c.write(',\n arg_%s'%(a.name))
1462
+ self.c.write('),\n'
1463
+ ' G_DBUS_CALL_FLAGS_NONE,\n'
1464
+ ' -1,\n')
1465
+ if unix_fd:
1466
+ self.c.write(' fd_list,\n'
1467
+ ' out_fd_list,\n')
1468
+ self.c.write(' cancellable,\n'
1469
+ ' error);\n'
1470
+ ' if (_ret == NULL)\n'
1471
+ ' goto _out;\n')
1472
+ self.c.write(' g_variant_get (_ret,\n'
1473
+ ' \"(')
1474
+ for a in m.out_args:
1475
+ self.c.write('%s'%(a.format_out))
1476
+ self.c.write(')"')
1477
+ for a in m.out_args:
1478
+ self.c.write(',\n out_%s'%(a.name))
1479
+ self.c.write(');\n'
1480
+ ' g_variant_unref (_ret);\n')
1481
+ self.c.write('_out:\n'
1482
+ ' return _ret != NULL;\n'
1483
+ '}\n'
1484
+ '\n')
1485
+
1486
+ # ---------------------------------------------------------------------------------------------------
1487
+
1488
+ def generate_method_completers(self, i):
1489
+ for m in i.methods:
1490
+ unix_fd = False
1491
+ if utils.lookup_annotation(m.annotations, 'org.gtk.GDBus.C.UnixFD'):
1492
+ unix_fd = True
1493
+ self.c.write('/**\n'
1494
+ ' * %s_complete_%s:\n'
1495
+ ' * @object: A #%s.\n'
1496
+ ' * @invocation: (transfer full): A #GDBusMethodInvocation.\n'
1497
+ %(i.name_lower, m.name_lower, i.camel_name))
1498
+ if unix_fd:
1499
+ self.c.write (' * @fd_list: (allow-none): A #GUnixFDList or %NULL.\n')
1500
+ for a in m.out_args:
1501
+ self.c.write(' * @%s: Parameter to return.\n'%(a.name))
1502
+ self.c.write(self.docbook_gen.expand(
1503
+ ' *\n'
1504
+ ' * Helper function used in service implementations to finish handling invocations of the %s.%s() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.\n'
1505
+ ' *\n'
1506
+ ' * This method will free @invocation, you cannot use it afterwards.\n'
1507
+ %(i.name, m.name), False))
1508
+ self.write_gtkdoc_deprecated_and_since_and_close(m, self.c, 0)
1509
+ self.c.write('void\n'
1510
+ '%s_complete_%s (\n'
1511
+ ' %s *object,\n'
1512
+ ' GDBusMethodInvocation *invocation'%(i.name_lower, m.name_lower, i.camel_name))
1513
+ if unix_fd:
1514
+ self.c.write(',\n GUnixFDList *fd_list')
1515
+ for a in m.out_args:
1516
+ self.c.write(',\n %s%s'%(a.ctype_in, a.name))
1517
+ self.c.write(')\n'
1518
+ '{\n')
1519
+
1520
+ if unix_fd:
1521
+ self.c.write(' g_dbus_method_invocation_return_value_with_unix_fd_list (invocation,\n'
1522
+ ' g_variant_new ("(')
1523
+ else:
1524
+ self.c.write(' g_dbus_method_invocation_return_value (invocation,\n'
1525
+ ' g_variant_new ("(')
1526
+ for a in m.out_args:
1527
+ self.c.write('%s'%(a.format_in))
1528
+ self.c.write(')"')
1529
+ for a in m.out_args:
1530
+ self.c.write(',\n %s'%(a.name))
1531
+ if unix_fd:
1532
+ self.c.write('),\n fd_list);\n')
1533
+ else:
1534
+ self.c.write('));\n')
1535
+ self.c.write('}\n'
1536
+ '\n')
1537
+
1538
+ # ---------------------------------------------------------------------------------------------------
1539
+
1540
+ def generate_proxy(self, i):
1541
+ # class boilerplate
1542
+ self.c.write('/* ------------------------------------------------------------------------ */\n'
1543
+ '\n')
1544
+
1545
+ self.c.write(self.docbook_gen.expand(
1546
+ '/**\n'
1547
+ ' * %sProxy:\n'
1548
+ ' *\n'
1549
+ ' * The #%sProxy structure contains only private data and should only be accessed using the provided API.\n'
1550
+ %(i.camel_name, i.camel_name), False))
1551
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
1552
+ self.c.write('\n')
1553
+
1554
+ self.c.write(self.docbook_gen.expand(
1555
+ '/**\n'
1556
+ ' * %sProxyClass:\n'
1557
+ ' * @parent_class: The parent class.\n'
1558
+ ' *\n'
1559
+ ' * Class structure for #%sProxy.\n'
1560
+ %(i.camel_name, i.camel_name), False))
1561
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
1562
+ self.c.write('\n')
1563
+
1564
+ self.c.write('struct _%sProxyPrivate\n'
1565
+ '{\n'
1566
+ ' GData *qdata;\n'
1567
+ '};\n'
1568
+ '\n'%i.camel_name)
1569
+
1570
+ self.c.write('static void %s_proxy_iface_init (%sIface *iface);\n'
1571
+ '\n'%(i.name_lower, i.camel_name))
1572
+ self.c.write('G_DEFINE_TYPE_WITH_CODE (%sProxy, %s_proxy, G_TYPE_DBUS_PROXY,\n'%(i.camel_name, i.name_lower))
1573
+ self.c.write(' G_IMPLEMENT_INTERFACE (%sTYPE_%s, %s_proxy_iface_init));\n\n'%(i.ns_upper, i.name_upper, i.name_lower))
1574
+
1575
+ # finalize
1576
+ self.c.write('static void\n'
1577
+ '%s_proxy_finalize (GObject *object)\n'
1578
+ '{\n'%(i.name_lower))
1579
+ self.c.write(' %sProxy *proxy = %s%s_PROXY (object);\n'%(i.camel_name, i.ns_upper, i.name_upper))
1580
+ self.c.write(' g_datalist_clear (&proxy->priv->qdata);\n')
1581
+ self.c.write(' G_OBJECT_CLASS (%s_proxy_parent_class)->finalize (object);\n'
1582
+ '}\n'
1583
+ '\n'%(i.name_lower))
1584
+
1585
+ # property accessors
1586
+ #
1587
+ # Note that we are guaranteed that prop_id starts at 1 and is
1588
+ # laid out in the same order as introspection data pointers
1589
+ #
1590
+ self.c.write('static void\n'
1591
+ '%s_proxy_get_property (GObject *object,\n'
1592
+ ' guint prop_id,\n'
1593
+ ' GValue *value,\n'
1594
+ ' GParamSpec *pspec)\n'
1595
+ '{\n'%(i.name_lower))
1596
+ if len(i.properties) > 0:
1597
+ self.c.write(' const _ExtendedGDBusPropertyInfo *info;\n'
1598
+ ' GVariant *variant;\n'
1599
+ ' g_assert (prop_id != 0 && prop_id - 1 < %d);\n'
1600
+ ' info = _%s_property_info_pointers[prop_id - 1];\n'
1601
+ ' variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name);\n'
1602
+ ' if (info->use_gvariant)\n'
1603
+ ' {\n'
1604
+ ' g_value_set_variant (value, variant);\n'
1605
+ ' }\n'
1606
+ ' else\n'
1607
+ ' {\n'
1608
+ # could be that we don't have the value in cache - in that case, we do
1609
+ # nothing and the user gets the default value for the GType
1610
+ ' if (variant != NULL)\n'
1611
+ ' g_dbus_gvariant_to_gvalue (variant, value);\n'
1612
+ ' }\n'
1613
+ ' if (variant != NULL)\n'
1614
+ ' g_variant_unref (variant);\n'
1615
+ %(len(i.properties), i.name_lower))
1616
+ self.c.write('}\n'
1617
+ '\n')
1618
+ if len(i.properties) > 0:
1619
+ self.c.write('static void\n'
1620
+ '%s_proxy_set_property_cb (GDBusProxy *proxy,\n'
1621
+ ' GAsyncResult *res,\n'
1622
+ ' gpointer user_data)\n'
1623
+ '{\n'%(i.name_lower))
1624
+ self.c.write(' const _ExtendedGDBusPropertyInfo *info = user_data;\n'
1625
+ ' GError *error;\n'
1626
+ ' error = NULL;\n'
1627
+ ' if (!g_dbus_proxy_call_finish (proxy, res, &error))\n'
1628
+ ' {\n'
1629
+ ' g_warning ("Error setting property `%%s\' on interface %s: %%s (%%s, %%d)",\n'
1630
+ ' info->parent_struct.name, \n'
1631
+ ' error->message, g_quark_to_string (error->domain), error->code);\n'
1632
+ ' g_error_free (error);\n'
1633
+ ' }\n'
1634
+ %(i.name))
1635
+ self.c.write('}\n'
1636
+ '\n')
1637
+ self.c.write('static void\n'
1638
+ '%s_proxy_set_property (GObject *object,\n'
1639
+ ' guint prop_id,\n'
1640
+ ' const GValue *value,\n'
1641
+ ' GParamSpec *pspec)\n'
1642
+ '{\n'%(i.name_lower))
1643
+ if len(i.properties) > 0:
1644
+ self.c.write(' const _ExtendedGDBusPropertyInfo *info;\n'
1645
+ ' GVariant *variant;\n'
1646
+ ' g_assert (prop_id != 0 && prop_id - 1 < %d);\n'
1647
+ ' info = _%s_property_info_pointers[prop_id - 1];\n'
1648
+ ' variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature));\n'
1649
+ ' g_dbus_proxy_call (G_DBUS_PROXY (object),\n'
1650
+ ' "org.freedesktop.DBus.Properties.Set",\n'
1651
+ ' g_variant_new ("(ssv)", "%s", info->parent_struct.name, variant),\n'
1652
+ ' G_DBUS_CALL_FLAGS_NONE,\n'
1653
+ ' -1,\n'
1654
+ ' NULL, (GAsyncReadyCallback) %s_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);\n'
1655
+ ' g_variant_unref (variant);\n'
1656
+ %(len(i.properties), i.name_lower, i.name, i.name_lower))
1657
+ self.c.write('}\n'
1658
+ '\n')
1659
+
1660
+ # signal received
1661
+ self.c.write('static void\n'
1662
+ '%s_proxy_g_signal (GDBusProxy *proxy,\n'
1663
+ ' const gchar *sender_name,\n'
1664
+ ' const gchar *signal_name,\n'
1665
+ ' GVariant *parameters)\n'
1666
+ '{\n'%(i.name_lower))
1667
+ self.c.write(' _ExtendedGDBusSignalInfo *info;\n'
1668
+ ' GVariantIter iter;\n'
1669
+ ' GVariant *child;\n'
1670
+ ' GValue *paramv;\n'
1671
+ ' guint num_params;\n'
1672
+ ' guint n;\n'
1673
+ ' guint signal_id;\n');
1674
+ # Note: info could be NULL if we are talking to a newer version of the interface
1675
+ self.c.write(' info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_%s_interface_info.parent_struct, signal_name);\n'
1676
+ ' if (info == NULL)\n'
1677
+ ' return;\n'
1678
+ %(i.name_lower))
1679
+ self.c.write (' num_params = g_variant_n_children (parameters);\n'
1680
+ ' paramv = g_new0 (GValue, num_params + 1);\n'
1681
+ ' g_value_init (&paramv[0], %sTYPE_%s);\n'
1682
+ ' g_value_set_object (&paramv[0], proxy);\n'
1683
+ %(i.ns_upper, i.name_upper))
1684
+ self.c.write(' g_variant_iter_init (&iter, parameters);\n'
1685
+ ' n = 1;\n'
1686
+ ' while ((child = g_variant_iter_next_value (&iter)) != NULL)\n'
1687
+ ' {\n'
1688
+ ' _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];\n'
1689
+ ' if (arg_info->use_gvariant)\n'
1690
+ ' {\n'
1691
+ ' g_value_init (&paramv[n], G_TYPE_VARIANT);\n'
1692
+ ' g_value_set_variant (&paramv[n], child);\n'
1693
+ ' n++;\n'
1694
+ ' }\n'
1695
+ ' else\n'
1696
+ ' g_dbus_gvariant_to_gvalue (child, &paramv[n++]);\n'
1697
+ ' g_variant_unref (child);\n'
1698
+ ' }\n'
1699
+ )
1700
+ self.c.write(' signal_id = g_signal_lookup (info->signal_name, %sTYPE_%s);\n'
1701
+ %(i.ns_upper, i.name_upper))
1702
+ self.c.write(' g_signal_emitv (paramv, signal_id, 0, NULL);\n')
1703
+ self.c.write(' for (n = 0; n < num_params + 1; n++)\n'
1704
+ ' g_value_unset (&paramv[n]);\n'
1705
+ ' g_free (paramv);\n')
1706
+ self.c.write('}\n'
1707
+ '\n')
1708
+
1709
+ # property changed
1710
+ self.c.write('static void\n'
1711
+ '%s_proxy_g_properties_changed (GDBusProxy *_proxy,\n'
1712
+ ' GVariant *changed_properties,\n'
1713
+ ' const gchar *const *invalidated_properties)\n'
1714
+ '{\n'%(i.name_lower))
1715
+ # Note: info could be NULL if we are talking to a newer version of the interface
1716
+ self.c.write(' %sProxy *proxy = %s%s_PROXY (_proxy);\n'
1717
+ ' guint n;\n'
1718
+ ' const gchar *key;\n'
1719
+ ' GVariantIter *iter;\n'
1720
+ ' _ExtendedGDBusPropertyInfo *info;\n'
1721
+ ' g_variant_get (changed_properties, "a{sv}", &iter);\n'
1722
+ ' while (g_variant_iter_next (iter, "{&sv}", &key, NULL))\n'
1723
+ ' {\n'
1724
+ ' info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_%s_interface_info.parent_struct, key);\n'
1725
+ ' g_datalist_remove_data (&proxy->priv->qdata, key);\n'
1726
+ ' if (info != NULL)\n'
1727
+ ' g_object_notify (G_OBJECT (proxy), info->hyphen_name);\n'
1728
+ ' }\n'
1729
+ ' g_variant_iter_free (iter);\n'
1730
+ ' for (n = 0; invalidated_properties[n] != NULL; n++)\n'
1731
+ ' {\n'
1732
+ ' info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_%s_interface_info.parent_struct, invalidated_properties[n]);\n'
1733
+ ' g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);\n'
1734
+ ' if (info != NULL)\n'
1735
+ ' g_object_notify (G_OBJECT (proxy), info->hyphen_name);\n'
1736
+ ' }\n'
1737
+ '}\n'
1738
+ '\n'
1739
+ %(i.camel_name, i.ns_upper, i.name_upper,
1740
+ i.name_lower, i.name_lower))
1741
+
1742
+ # property vfuncs
1743
+ for p in i.properties:
1744
+ nul_value = '0'
1745
+ if p.arg.free_func != None:
1746
+ nul_value = 'NULL'
1747
+ self.c.write('static %s\n'
1748
+ '%s_proxy_get_%s (%s *object)\n'
1749
+ '{\n'
1750
+ ' %sProxy *proxy = %s%s_PROXY (object);\n'
1751
+ ' GVariant *variant;\n'
1752
+ ' %svalue = %s;\n'%(p.arg.ctype_in, i.name_lower, p.name_lower, i.camel_name,
1753
+ i.camel_name, i.ns_upper, i.name_upper,
1754
+ p.arg.ctype_in, nul_value))
1755
+ # For some property types, we have to free the returned
1756
+ # value (or part of it, e.g. the container) because of how
1757
+ # GVariant works.. see https://bugzilla.gnome.org/show_bug.cgi?id=657100
1758
+ # for details
1759
+ #
1760
+ free_container = False;
1761
+ if p.arg.gvariant_get == 'g_variant_get_strv' or p.arg.gvariant_get == 'g_variant_get_objpathv' or p.arg.gvariant_get == 'g_variant_get_bytestring_array':
1762
+ free_container = True;
1763
+ # If already using an old value for strv, objpathv, bytestring_array (see below),
1764
+ # then just return that... that way the result from multiple consecutive calls
1765
+ # to the getter are valid as long as they're freed
1766
+ #
1767
+ if free_container:
1768
+ self.c.write(' value = g_datalist_get_data (&proxy->priv->qdata, \"%s\");\n'
1769
+ ' if (value != NULL)\n'
1770
+ ' return value;\n'
1771
+ %(p.name))
1772
+ self.c.write(' variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), \"%s\");\n'%(p.name))
1773
+ if p.arg.gtype == 'G_TYPE_VARIANT':
1774
+ self.c.write(' value = variant;\n')
1775
+ self.c.write(' if (variant != NULL)\n')
1776
+ self.c.write(' g_variant_unref (variant);\n')
1777
+ else:
1778
+ self.c.write(' if (variant != NULL)\n'
1779
+ ' {\n')
1780
+ extra_len = ''
1781
+ if p.arg.gvariant_get == 'g_variant_get_string' or p.arg.gvariant_get == 'g_variant_get_strv' or p.arg.gvariant_get == 'g_variant_get_objv' or p.arg.gvariant_get == 'g_variant_get_bytestring_array':
1782
+ extra_len = ', NULL'
1783
+ self.c.write(' value = %s (variant%s);\n'%(p.arg.gvariant_get, extra_len))
1784
+ if free_container:
1785
+ self.c.write(' g_datalist_set_data_full (&proxy->priv->qdata, \"%s\", (gpointer) value, g_free);\n'
1786
+ %(p.name))
1787
+ self.c.write(' g_variant_unref (variant);\n')
1788
+ self.c.write(' }\n')
1789
+ self.c.write(' return value;\n')
1790
+ self.c.write('}\n')
1791
+ self.c.write('\n')
1792
+
1793
+ # class boilerplate
1794
+ self.c.write('static void\n'
1795
+ '%s_proxy_init (%sProxy *proxy)\n'
1796
+ '{\n'
1797
+ ' proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, %sTYPE_%s_PROXY, %sProxyPrivate);\n'
1798
+ ' g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), %s_interface_info ());\n'
1799
+ '}\n'
1800
+ '\n'
1801
+ %(i.name_lower, i.camel_name,
1802
+ i.ns_upper, i.name_upper, i.camel_name,
1803
+ i.name_lower))
1804
+ self.c.write('static void\n'
1805
+ '%s_proxy_class_init (%sProxyClass *klass)\n'
1806
+ '{\n'
1807
+ ' GObjectClass *gobject_class;\n'
1808
+ ' GDBusProxyClass *proxy_class;\n'
1809
+ '\n'
1810
+ ' g_type_class_add_private (klass, sizeof (%sProxyPrivate));\n'
1811
+ '\n'
1812
+ ' gobject_class = G_OBJECT_CLASS (klass);\n'
1813
+ ' gobject_class->finalize = %s_proxy_finalize;\n'
1814
+ ' gobject_class->get_property = %s_proxy_get_property;\n'
1815
+ ' gobject_class->set_property = %s_proxy_set_property;\n'
1816
+ '\n'
1817
+ ' proxy_class = G_DBUS_PROXY_CLASS (klass);\n'
1818
+ ' proxy_class->g_signal = %s_proxy_g_signal;\n'
1819
+ ' proxy_class->g_properties_changed = %s_proxy_g_properties_changed;\n'
1820
+ '\n'%(i.name_lower, i.camel_name,
1821
+ i.camel_name,
1822
+ i.name_lower, i.name_lower, i.name_lower, i.name_lower, i.name_lower))
1823
+ if len(i.properties) > 0:
1824
+ self.c.write('\n'
1825
+ ' %s_override_properties (gobject_class, 1);\n'%(i.name_lower))
1826
+ self.c.write('}\n'
1827
+ '\n')
1828
+
1829
+ self.c.write('static void\n'
1830
+ '%s_proxy_iface_init (%sIface *iface)\n'
1831
+ '{\n'%(i.name_lower, i.camel_name))
1832
+ for p in i.properties:
1833
+ self.c.write(' iface->get_%s = %s_proxy_get_%s;\n'%(p.name_lower, i.name_lower, p.name_lower))
1834
+ self.c.write('}\n'
1835
+ '\n')
1836
+
1837
+ # constructors
1838
+ self.c.write(self.docbook_gen.expand(
1839
+ '/**\n'
1840
+ ' * %s_proxy_new:\n'
1841
+ ' * @connection: A #GDBusConnection.\n'
1842
+ ' * @flags: Flags from the #GDBusProxyFlags enumeration.\n'
1843
+ ' * @name: (allow-none): A bus name (well-known or unique) or %%NULL if @connection is not a message bus connection.\n'
1844
+ ' * @object_path: An object path.\n'
1845
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
1846
+ ' * @callback: A #GAsyncReadyCallback to call when the request is satisfied.\n'
1847
+ ' * @user_data: User data to pass to @callback.\n'
1848
+ ' *\n'
1849
+ ' * Asynchronously creates a proxy for the D-Bus interface #%s. See g_dbus_proxy_new() for more details.\n'
1850
+ ' *\n'
1851
+ ' * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.\n'
1852
+ ' * You can then call %s_proxy_new_finish() to get the result of the operation.\n'
1853
+ ' *\n'
1854
+ ' * See %s_proxy_new_sync() for the synchronous, blocking version of this constructor.\n'
1855
+ %(i.name_lower, i.name, i.name_lower, i.name_lower), False))
1856
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
1857
+ self.c.write('void\n'
1858
+ '%s_proxy_new (\n'
1859
+ ' GDBusConnection *connection,\n'
1860
+ ' GDBusProxyFlags flags,\n'
1861
+ ' const gchar *name,\n'
1862
+ ' const gchar *object_path,\n'
1863
+ ' GCancellable *cancellable,\n'
1864
+ ' GAsyncReadyCallback callback,\n'
1865
+ ' gpointer user_data)\n'
1866
+ '{\n'
1867
+ ' g_async_initable_new_async (%sTYPE_%s_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "%s", NULL);\n'
1868
+ '}\n'
1869
+ '\n'
1870
+ %(i.name_lower, i.ns_upper, i.name_upper, i.name))
1871
+ self.c.write('/**\n'
1872
+ ' * %s_proxy_new_finish:\n'
1873
+ ' * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to %s_proxy_new().\n'
1874
+ ' * @error: Return location for error or %%NULL\n'
1875
+ ' *\n'
1876
+ ' * Finishes an operation started with %s_proxy_new().\n'
1877
+ ' *\n'
1878
+ ' * Returns: (transfer full) (type %sProxy): The constructed proxy object or %%NULL if @error is set.\n'
1879
+ %(i.name_lower, i.name_lower, i.name_lower, i.camel_name))
1880
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
1881
+ self.c.write('%s *\n'
1882
+ '%s_proxy_new_finish (\n'
1883
+ ' GAsyncResult *res,\n'
1884
+ ' GError **error)\n'
1885
+ '{\n'
1886
+ ' GObject *ret;\n'
1887
+ ' GObject *source_object;\n'
1888
+ ' source_object = g_async_result_get_source_object (res);\n'
1889
+ ' ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);\n'
1890
+ ' g_object_unref (source_object);\n'
1891
+ ' if (ret != NULL)\n'
1892
+ ' return %s%s (ret);\n'
1893
+ ' else\n'
1894
+ ' return NULL;\n'
1895
+ '}\n'
1896
+ '\n'
1897
+ %(i.camel_name, i.name_lower, i.ns_upper, i.name_upper))
1898
+ self.c.write(self.docbook_gen.expand(
1899
+ '/**\n'
1900
+ ' * %s_proxy_new_sync:\n'
1901
+ ' * @connection: A #GDBusConnection.\n'
1902
+ ' * @flags: Flags from the #GDBusProxyFlags enumeration.\n'
1903
+ ' * @name: (allow-none): A bus name (well-known or unique) or %%NULL if @connection is not a message bus connection.\n'
1904
+ ' * @object_path: An object path.\n'
1905
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
1906
+ ' * @error: Return location for error or %%NULL\n'
1907
+ ' *\n'
1908
+ ' * Synchronously creates a proxy for the D-Bus interface #%s. See g_dbus_proxy_new_sync() for more details.\n'
1909
+ ' *\n'
1910
+ ' * The calling thread is blocked until a reply is received.\n'
1911
+ ' *\n'
1912
+ ' * See %s_proxy_new() for the asynchronous version of this constructor.\n'
1913
+ ' *\n'
1914
+ ' * Returns: (transfer full) (type %sProxy): The constructed proxy object or %%NULL if @error is set.\n'
1915
+ %(i.name_lower, i.name, i.name_lower, i.camel_name), False))
1916
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
1917
+ self.c.write('%s *\n'
1918
+ '%s_proxy_new_sync (\n'
1919
+ ' GDBusConnection *connection,\n'
1920
+ ' GDBusProxyFlags flags,\n'
1921
+ ' const gchar *name,\n'
1922
+ ' const gchar *object_path,\n'
1923
+ ' GCancellable *cancellable,\n'
1924
+ ' GError **error)\n'
1925
+ '{\n'
1926
+ ' GInitable *ret;\n'
1927
+ ' ret = g_initable_new (%sTYPE_%s_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "%s", NULL);\n'
1928
+ ' if (ret != NULL)\n'
1929
+ ' return %s%s (ret);\n'
1930
+ ' else\n'
1931
+ ' return NULL;\n'
1932
+ '}\n'
1933
+ '\n'
1934
+ %(i.camel_name, i.name_lower, i.ns_upper, i.name_upper, i.name, i.ns_upper, i.name_upper))
1935
+ self.c.write('\n')
1936
+ self.c.write(self.docbook_gen.expand(
1937
+ '/**\n'
1938
+ ' * %s_proxy_new_for_bus:\n'
1939
+ ' * @bus_type: A #GBusType.\n'
1940
+ ' * @flags: Flags from the #GDBusProxyFlags enumeration.\n'
1941
+ ' * @name: A bus name (well-known or unique).\n'
1942
+ ' * @object_path: An object path.\n'
1943
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
1944
+ ' * @callback: A #GAsyncReadyCallback to call when the request is satisfied.\n'
1945
+ ' * @user_data: User data to pass to @callback.\n'
1946
+ ' *\n'
1947
+ ' * Like %s_proxy_new() but takes a #GBusType instead of a #GDBusConnection.\n'
1948
+ ' *\n'
1949
+ ' * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.\n'
1950
+ ' * You can then call %s_proxy_new_for_bus_finish() to get the result of the operation.\n'
1951
+ ' *\n'
1952
+ ' * See %s_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.\n'
1953
+ %(i.name_lower, i.name_lower, i.name_lower, i.name_lower), False))
1954
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
1955
+ self.c.write('void\n'
1956
+ '%s_proxy_new_for_bus (\n'
1957
+ ' GBusType bus_type,\n'
1958
+ ' GDBusProxyFlags flags,\n'
1959
+ ' const gchar *name,\n'
1960
+ ' const gchar *object_path,\n'
1961
+ ' GCancellable *cancellable,\n'
1962
+ ' GAsyncReadyCallback callback,\n'
1963
+ ' gpointer user_data)\n'
1964
+ '{\n'
1965
+ ' g_async_initable_new_async (%sTYPE_%s_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "%s", NULL);\n'
1966
+ '}\n'
1967
+ '\n'
1968
+ %(i.name_lower, i.ns_upper, i.name_upper, i.name))
1969
+ self.c.write('/**\n'
1970
+ ' * %s_proxy_new_for_bus_finish:\n'
1971
+ ' * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to %s_proxy_new_for_bus().\n'
1972
+ ' * @error: Return location for error or %%NULL\n'
1973
+ ' *\n'
1974
+ ' * Finishes an operation started with %s_proxy_new_for_bus().\n'
1975
+ ' *\n'
1976
+ ' * Returns: (transfer full) (type %sProxy): The constructed proxy object or %%NULL if @error is set.\n'
1977
+ %(i.name_lower, i.name_lower, i.name_lower, i.camel_name))
1978
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
1979
+ self.c.write('%s *\n'
1980
+ '%s_proxy_new_for_bus_finish (\n'
1981
+ ' GAsyncResult *res,\n'
1982
+ ' GError **error)\n'
1983
+ '{\n'
1984
+ ' GObject *ret;\n'
1985
+ ' GObject *source_object;\n'
1986
+ ' source_object = g_async_result_get_source_object (res);\n'
1987
+ ' ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);\n'
1988
+ ' g_object_unref (source_object);\n'
1989
+ ' if (ret != NULL)\n'
1990
+ ' return %s%s (ret);\n'
1991
+ ' else\n'
1992
+ ' return NULL;\n'
1993
+ '}\n'
1994
+ '\n'
1995
+ %(i.camel_name, i.name_lower, i.ns_upper, i.name_upper))
1996
+ self.c.write(self.docbook_gen.expand(
1997
+ '/**\n'
1998
+ ' * %s_proxy_new_for_bus_sync:\n'
1999
+ ' * @bus_type: A #GBusType.\n'
2000
+ ' * @flags: Flags from the #GDBusProxyFlags enumeration.\n'
2001
+ ' * @name: A bus name (well-known or unique).\n'
2002
+ ' * @object_path: An object path.\n'
2003
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
2004
+ ' * @error: Return location for error or %%NULL\n'
2005
+ ' *\n'
2006
+ ' * Like %s_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.\n'
2007
+ ' *\n'
2008
+ ' * The calling thread is blocked until a reply is received.\n'
2009
+ ' *\n'
2010
+ ' * See %s_proxy_new_for_bus() for the asynchronous version of this constructor.\n'
2011
+ ' *\n'
2012
+ ' * Returns: (transfer full) (type %sProxy): The constructed proxy object or %%NULL if @error is set.\n'
2013
+ %(i.name_lower, i.name_lower, i.name_lower, i.camel_name), False))
2014
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
2015
+ self.c.write('%s *\n'
2016
+ '%s_proxy_new_for_bus_sync (\n'
2017
+ ' GBusType bus_type,\n'
2018
+ ' GDBusProxyFlags flags,\n'
2019
+ ' const gchar *name,\n'
2020
+ ' const gchar *object_path,\n'
2021
+ ' GCancellable *cancellable,\n'
2022
+ ' GError **error)\n'
2023
+ '{\n'
2024
+ ' GInitable *ret;\n'
2025
+ ' ret = g_initable_new (%sTYPE_%s_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "%s", NULL);\n'
2026
+ ' if (ret != NULL)\n'
2027
+ ' return %s%s (ret);\n'
2028
+ ' else\n'
2029
+ ' return NULL;\n'
2030
+ '}\n'
2031
+ '\n'
2032
+ %(i.camel_name, i.name_lower, i.ns_upper, i.name_upper, i.name, i.ns_upper, i.name_upper))
2033
+ self.c.write('\n')
2034
+
2035
+ # ---------------------------------------------------------------------------------------------------
2036
+
2037
+ def generate_skeleton(self, i):
2038
+ # class boilerplate
2039
+ self.c.write('/* ------------------------------------------------------------------------ */\n'
2040
+ '\n')
2041
+
2042
+ self.c.write(self.docbook_gen.expand(
2043
+ '/**\n'
2044
+ ' * %sSkeleton:\n'
2045
+ ' *\n'
2046
+ ' * The #%sSkeleton structure contains only private data and should only be accessed using the provided API.\n'
2047
+ %(i.camel_name, i.camel_name), False))
2048
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
2049
+ self.c.write('\n')
2050
+
2051
+ self.c.write(self.docbook_gen.expand(
2052
+ '/**\n'
2053
+ ' * %sSkeletonClass:\n'
2054
+ ' * @parent_class: The parent class.\n'
2055
+ ' *\n'
2056
+ ' * Class structure for #%sSkeleton.\n'
2057
+ %(i.camel_name, i.camel_name), False))
2058
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
2059
+ self.c.write('\n')
2060
+
2061
+ self.c.write('struct _%sSkeletonPrivate\n'
2062
+ '{\n'
2063
+ ' GValue *properties;\n'
2064
+ ' GList *changed_properties;\n'
2065
+ ' GSource *changed_properties_idle_source;\n'
2066
+ ' GMainContext *context;\n'
2067
+ ' GMutex lock;\n'
2068
+ '};\n'
2069
+ '\n'%i.camel_name)
2070
+
2071
+ self.c.write('static void\n'
2072
+ '_%s_skeleton_handle_method_call (\n'
2073
+ ' GDBusConnection *connection,\n'
2074
+ ' const gchar *sender,\n'
2075
+ ' const gchar *object_path,\n'
2076
+ ' const gchar *interface_name,\n'
2077
+ ' const gchar *method_name,\n'
2078
+ ' GVariant *parameters,\n'
2079
+ ' GDBusMethodInvocation *invocation,\n'
2080
+ ' gpointer user_data)\n'
2081
+ '{\n'
2082
+ ' %sSkeleton *skeleton = %s%s_SKELETON (user_data);\n'
2083
+ ' _ExtendedGDBusMethodInfo *info;\n'
2084
+ ' GVariantIter iter;\n'
2085
+ ' GVariant *child;\n'
2086
+ ' GValue *paramv;\n'
2087
+ ' guint num_params;\n'
2088
+ ' guint num_extra;\n'
2089
+ ' guint n;\n'
2090
+ ' guint signal_id;\n'
2091
+ ' GValue return_value = G_VALUE_INIT;\n'
2092
+ %(i.name_lower, i.camel_name, i.ns_upper, i.name_upper))
2093
+ self.c.write(' info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);\n'
2094
+ ' g_assert (info != NULL);\n'
2095
+ %())
2096
+ self.c.write (' num_params = g_variant_n_children (parameters);\n'
2097
+ ' num_extra = info->pass_fdlist ? 3 : 2;'
2098
+ ' paramv = g_new0 (GValue, num_params + num_extra);\n'
2099
+ ' n = 0;\n'
2100
+ ' g_value_init (&paramv[n], %sTYPE_%s);\n'
2101
+ ' g_value_set_object (&paramv[n++], skeleton);\n'
2102
+ ' g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);\n'
2103
+ ' g_value_set_object (&paramv[n++], invocation);\n'
2104
+ ' if (info->pass_fdlist)\n'
2105
+ ' {\n'
2106
+ '#ifdef G_OS_UNIX\n'
2107
+ ' g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);\n'
2108
+ ' g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));\n'
2109
+ '#else\n'
2110
+ ' g_assert_not_reached ();\n'
2111
+ '#endif\n'
2112
+ ' }\n'
2113
+ %(i.ns_upper, i.name_upper))
2114
+ self.c.write(' g_variant_iter_init (&iter, parameters);\n'
2115
+ ' while ((child = g_variant_iter_next_value (&iter)) != NULL)\n'
2116
+ ' {\n'
2117
+ ' _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];\n'
2118
+ ' if (arg_info->use_gvariant)\n'
2119
+ ' {\n'
2120
+ ' g_value_init (&paramv[n], G_TYPE_VARIANT);\n'
2121
+ ' g_value_set_variant (&paramv[n], child);\n'
2122
+ ' n++;\n'
2123
+ ' }\n'
2124
+ ' else\n'
2125
+ ' g_dbus_gvariant_to_gvalue (child, &paramv[n++]);\n'
2126
+ ' g_variant_unref (child);\n'
2127
+ ' }\n'
2128
+ )
2129
+ self.c.write(' signal_id = g_signal_lookup (info->signal_name, %sTYPE_%s);\n'
2130
+ %(i.ns_upper, i.name_upper))
2131
+ self.c.write(' g_value_init (&return_value, G_TYPE_BOOLEAN);\n'
2132
+ ' g_signal_emitv (paramv, signal_id, 0, &return_value);\n'
2133
+ ' if (!g_value_get_boolean (&return_value))\n'
2134
+ ' g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);\n'
2135
+ ' g_value_unset (&return_value);\n'
2136
+ )
2137
+ self.c.write(' for (n = 0; n < num_params + num_extra; n++)\n'
2138
+ ' g_value_unset (&paramv[n]);\n'
2139
+ ' g_free (paramv);\n')
2140
+ self.c.write('}\n'
2141
+ '\n')
2142
+
2143
+ self.c.write('static GVariant *\n'
2144
+ '_%s_skeleton_handle_get_property (\n'
2145
+ ' GDBusConnection *connection,\n'
2146
+ ' const gchar *sender,\n'
2147
+ ' const gchar *object_path,\n'
2148
+ ' const gchar *interface_name,\n'
2149
+ ' const gchar *property_name,\n'
2150
+ ' GError **error,\n'
2151
+ ' gpointer user_data)\n'
2152
+ '{\n'
2153
+ ' %sSkeleton *skeleton = %s%s_SKELETON (user_data);\n'
2154
+ ' GValue value = G_VALUE_INIT;\n'
2155
+ ' GParamSpec *pspec;\n'
2156
+ ' _ExtendedGDBusPropertyInfo *info;\n'
2157
+ ' GVariant *ret;\n'
2158
+ %(i.name_lower, i.camel_name, i.ns_upper, i.name_upper))
2159
+ self.c.write(' ret = NULL;\n'
2160
+ ' info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_%s_interface_info.parent_struct, property_name);\n'
2161
+ ' g_assert (info != NULL);\n'
2162
+ ' pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);\n'
2163
+ ' if (pspec == NULL)\n'
2164
+ ' {\n'
2165
+ ' g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %%s", property_name);\n'
2166
+ ' }\n'
2167
+ ' else\n'
2168
+ ' {\n'
2169
+ ' g_value_init (&value, pspec->value_type);\n'
2170
+ ' g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);\n'
2171
+ ' ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));\n'
2172
+ ' g_value_unset (&value);\n'
2173
+ ' }\n'
2174
+ ' return ret;\n'
2175
+ '}\n'
2176
+ '\n'
2177
+ %(i.name_lower))
2178
+
2179
+ self.c.write('static gboolean\n'
2180
+ '_%s_skeleton_handle_set_property (\n'
2181
+ ' GDBusConnection *connection,\n'
2182
+ ' const gchar *sender,\n'
2183
+ ' const gchar *object_path,\n'
2184
+ ' const gchar *interface_name,\n'
2185
+ ' const gchar *property_name,\n'
2186
+ ' GVariant *variant,\n'
2187
+ ' GError **error,\n'
2188
+ ' gpointer user_data)\n'
2189
+ '{\n'
2190
+ ' %sSkeleton *skeleton = %s%s_SKELETON (user_data);\n'
2191
+ ' GValue value = G_VALUE_INIT;\n'
2192
+ ' GParamSpec *pspec;\n'
2193
+ ' _ExtendedGDBusPropertyInfo *info;\n'
2194
+ ' gboolean ret;\n'
2195
+ %(i.name_lower, i.camel_name, i.ns_upper, i.name_upper))
2196
+ self.c.write(' ret = FALSE;\n'
2197
+ ' info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_%s_interface_info.parent_struct, property_name);\n'
2198
+ ' g_assert (info != NULL);\n'
2199
+ ' pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);\n'
2200
+ ' if (pspec == NULL)\n'
2201
+ ' {\n'
2202
+ ' g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %%s", property_name);\n'
2203
+ ' }\n'
2204
+ ' else\n'
2205
+ ' {\n'
2206
+ ' if (info->use_gvariant)\n'
2207
+ ' g_value_set_variant (&value, variant);\n'
2208
+ ' else\n'
2209
+ ' g_dbus_gvariant_to_gvalue (variant, &value);\n'
2210
+ ' g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);\n'
2211
+ ' g_value_unset (&value);\n'
2212
+ ' ret = TRUE;\n'
2213
+ ' }\n'
2214
+ ' return ret;\n'
2215
+ '}\n'
2216
+ '\n'
2217
+ %(i.name_lower))
2218
+
2219
+
2220
+ self.c.write('static const GDBusInterfaceVTable _%s_skeleton_vtable =\n'
2221
+ '{\n'
2222
+ ' _%s_skeleton_handle_method_call,\n'
2223
+ ' _%s_skeleton_handle_get_property,\n'
2224
+ ' _%s_skeleton_handle_set_property\n'
2225
+ '};\n'
2226
+ '\n'%(i.name_lower, i.name_lower, i.name_lower, i.name_lower))
2227
+
2228
+ self.c.write('static GDBusInterfaceInfo *\n'
2229
+ '%s_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)\n'
2230
+ '{\n'
2231
+ ' return %s_interface_info ();\n'
2232
+ %(i.name_lower, i.name_lower))
2233
+ self.c.write('}\n'
2234
+ '\n')
2235
+
2236
+ self.c.write('static GDBusInterfaceVTable *\n'
2237
+ '%s_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)\n'
2238
+ '{\n'
2239
+ ' return (GDBusInterfaceVTable *) &_%s_skeleton_vtable;\n'
2240
+ %(i.name_lower, i.name_lower))
2241
+ self.c.write('}\n'
2242
+ '\n')
2243
+
2244
+ self.c.write('static GVariant *\n'
2245
+ '%s_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)\n'
2246
+ '{\n'
2247
+ ' %sSkeleton *skeleton = %s%s_SKELETON (_skeleton);\n'
2248
+ %(i.name_lower, i.camel_name, i.ns_upper, i.name_upper))
2249
+ self.c.write('\n'
2250
+ ' GVariantBuilder builder;\n'
2251
+ ' guint n;\n'
2252
+ ' g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));\n'
2253
+ ' if (_%s_interface_info.parent_struct.properties == NULL)\n'
2254
+ ' goto out;\n'
2255
+ ' for (n = 0; _%s_interface_info.parent_struct.properties[n] != NULL; n++)\n'
2256
+ ' {\n'
2257
+ ' GDBusPropertyInfo *info = _%s_interface_info.parent_struct.properties[n];\n'
2258
+ ' if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)\n'
2259
+ ' {\n'
2260
+ ' GVariant *value;\n'
2261
+ ' value = _%s_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "%s", info->name, NULL, skeleton);\n'
2262
+ ' if (value != NULL)\n'
2263
+ ' {\n'
2264
+ ' g_variant_take_ref (value);\n'
2265
+ ' g_variant_builder_add (&builder, "{sv}", info->name, value);\n'
2266
+ ' g_variant_unref (value);\n'
2267
+ ' }\n'
2268
+ ' }\n'
2269
+ ' }\n'
2270
+ 'out:\n'
2271
+ ' return g_variant_builder_end (&builder);\n'
2272
+ '}\n'
2273
+ '\n'
2274
+ %(i.name_lower, i.name_lower, i.name_lower, i.name_lower, i.name))
2275
+
2276
+ if len(i.properties) > 0:
2277
+ self.c.write('static gboolean _%s_emit_changed (gpointer user_data);\n'
2278
+ '\n'
2279
+ %(i.name_lower))
2280
+
2281
+ self.c.write('static void\n'
2282
+ '%s_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)\n'
2283
+ '{\n'
2284
+ %(i.name_lower))
2285
+ if len(i.properties) > 0:
2286
+ self.c.write(' %sSkeleton *skeleton = %s%s_SKELETON (_skeleton);\n'
2287
+ ' gboolean emit_changed = FALSE;\n'
2288
+ '\n'
2289
+ ' g_mutex_lock (&skeleton->priv->lock);\n'
2290
+ ' if (skeleton->priv->changed_properties_idle_source != NULL)\n'
2291
+ ' {\n'
2292
+ ' g_source_destroy (skeleton->priv->changed_properties_idle_source);\n'
2293
+ ' skeleton->priv->changed_properties_idle_source = NULL;\n'
2294
+ ' emit_changed = TRUE;\n'
2295
+ ' }\n'
2296
+ ' g_mutex_unlock (&skeleton->priv->lock);\n'
2297
+ '\n'
2298
+ ' if (emit_changed)\n'
2299
+ ' _%s_emit_changed (skeleton);\n'
2300
+ %(i.camel_name, i.ns_upper, i.name_upper, i.name_lower))
2301
+ self.c.write('}\n'
2302
+ '\n')
2303
+
2304
+ for s in i.signals:
2305
+ self.c.write('static void\n'
2306
+ '_%s_on_signal_%s (\n'
2307
+ ' %s *object'%(i.name_lower, s.name_lower, i.camel_name))
2308
+ for a in s.args:
2309
+ self.c.write(',\n %sarg_%s'%(a.ctype_in, a.name))
2310
+ self.c.write(')\n'
2311
+ '{\n'
2312
+ ' %sSkeleton *skeleton = %s%s_SKELETON (object);\n\n'
2313
+ ' GList *connections, *l;\n'
2314
+ ' GVariant *signal_variant;\n'
2315
+ ' connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));\n'
2316
+ %(i.camel_name, i.ns_upper, i.name_upper))
2317
+ self.c.write('\n'
2318
+ ' signal_variant = g_variant_ref_sink (g_variant_new ("(')
2319
+ for a in s.args:
2320
+ self.c.write('%s'%(a.format_in))
2321
+ self.c.write(')"')
2322
+ for a in s.args:
2323
+ self.c.write(',\n arg_%s'%(a.name))
2324
+ self.c.write('));\n')
2325
+
2326
+ self.c.write(' for (l = connections; l != NULL; l = l->next)\n'
2327
+ ' {\n'
2328
+ ' GDBusConnection *connection = l->data;\n'
2329
+ ' g_dbus_connection_emit_signal (connection,\n'
2330
+ ' NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "%s", "%s",\n'
2331
+ ' signal_variant, NULL);\n'
2332
+ ' }\n'
2333
+ %(i.name, s.name))
2334
+ self.c.write(' g_variant_unref (signal_variant);\n')
2335
+ self.c.write(' g_list_free_full (connections, g_object_unref);\n')
2336
+ self.c.write('}\n'
2337
+ '\n')
2338
+
2339
+ self.c.write('static void %s_skeleton_iface_init (%sIface *iface);\n'
2340
+ %(i.name_lower, i.camel_name))
2341
+
2342
+ self.c.write('G_DEFINE_TYPE_WITH_CODE (%sSkeleton, %s_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,\n'%(i.camel_name, i.name_lower))
2343
+ self.c.write(' G_IMPLEMENT_INTERFACE (%sTYPE_%s, %s_skeleton_iface_init));\n\n'%(i.ns_upper, i.name_upper, i.name_lower))
2344
+
2345
+ # finalize
2346
+ self.c.write('static void\n'
2347
+ '%s_skeleton_finalize (GObject *object)\n'
2348
+ '{\n'%(i.name_lower))
2349
+ self.c.write(' %sSkeleton *skeleton = %s%s_SKELETON (object);\n'%(i.camel_name, i.ns_upper, i.name_upper))
2350
+ if len(i.properties) > 0:
2351
+ self.c.write(' guint n;\n'
2352
+ ' for (n = 0; n < %d; n++)\n'
2353
+ ' g_value_unset (&skeleton->priv->properties[n]);\n'%(len(i.properties)))
2354
+ self.c.write(' g_free (skeleton->priv->properties);\n')
2355
+ self.c.write(' g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);\n')
2356
+ self.c.write(' if (skeleton->priv->changed_properties_idle_source != NULL)\n')
2357
+ self.c.write(' g_source_destroy (skeleton->priv->changed_properties_idle_source);\n')
2358
+ self.c.write(' g_main_context_unref (skeleton->priv->context);\n')
2359
+ self.c.write(' g_mutex_clear (&skeleton->priv->lock);\n')
2360
+ self.c.write(' G_OBJECT_CLASS (%s_skeleton_parent_class)->finalize (object);\n'
2361
+ '}\n'
2362
+ '\n'%(i.name_lower))
2363
+
2364
+ # property accessors (TODO: generate PropertiesChanged signals in setter)
2365
+ if len(i.properties) > 0:
2366
+ self.c.write('static void\n'
2367
+ '%s_skeleton_get_property (GObject *object,\n'
2368
+ ' guint prop_id,\n'
2369
+ ' GValue *value,\n'
2370
+ ' GParamSpec *pspec)\n'
2371
+ '{\n'%(i.name_lower))
2372
+ self.c.write(' %sSkeleton *skeleton = %s%s_SKELETON (object);\n'
2373
+ ' g_assert (prop_id != 0 && prop_id - 1 < %d);\n'
2374
+ ' g_mutex_lock (&skeleton->priv->lock);\n'
2375
+ ' g_value_copy (&skeleton->priv->properties[prop_id - 1], value);\n'
2376
+ ' g_mutex_unlock (&skeleton->priv->lock);\n'
2377
+ %(i.camel_name, i.ns_upper, i.name_upper, len(i.properties)))
2378
+ self.c.write('}\n'
2379
+ '\n')
2380
+
2381
+ # if property is already scheduled then re-use entry.. though it could be
2382
+ # that the user did
2383
+ #
2384
+ # foo_set_prop_bar (object, "");
2385
+ # foo_set_prop_bar (object, "blah");
2386
+ #
2387
+ # say, every update... In this case, where nothing happens, we obviously
2388
+ # don't want a PropertiesChanged() event. We can easily check for this
2389
+ # by comparing against the _original value_ recorded before the first
2390
+ # change event. If the latest value is not different from the original
2391
+ # one, we can simply ignore the ChangedProperty
2392
+ #
2393
+ self.c.write('static gboolean\n'
2394
+ '_%s_emit_changed (gpointer user_data)\n'
2395
+ '{\n'
2396
+ ' %sSkeleton *skeleton = %s%s_SKELETON (user_data);\n'
2397
+ %(i.name_lower, i.camel_name, i.ns_upper, i.name_upper))
2398
+ self.c.write(' GList *l;\n'
2399
+ ' GVariantBuilder builder;\n'
2400
+ ' GVariantBuilder invalidated_builder;\n'
2401
+ ' guint num_changes;\n'
2402
+ '\n'
2403
+ ' g_mutex_lock (&skeleton->priv->lock);\n'
2404
+ ' g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));\n'
2405
+ ' g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));\n'
2406
+ ' for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next)\n'
2407
+ ' {\n'
2408
+ ' ChangedProperty *cp = l->data;\n'
2409
+ ' GVariant *variant;\n'
2410
+ ' const GValue *cur_value;\n'
2411
+ '\n'
2412
+ ' cur_value = &skeleton->priv->properties[cp->prop_id - 1];\n'
2413
+ ' if (!_g_value_equal (cur_value, &cp->orig_value))\n'
2414
+ ' {\n'
2415
+ ' variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature));\n'
2416
+ ' g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant);\n'
2417
+ ' g_variant_unref (variant);\n'
2418
+ ' num_changes++;\n'
2419
+ ' }\n'
2420
+ ' }\n'
2421
+ ' if (num_changes > 0)\n'
2422
+ ' {\n'
2423
+ ' GList *connections, *ll;\n'
2424
+ ' GVariant *signal_variant;'
2425
+ '\n'
2426
+ ' signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "%s",\n'
2427
+ ' &builder, &invalidated_builder));\n'
2428
+ ' connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));\n'
2429
+ ' for (ll = connections; ll != NULL; ll = ll->next)\n'
2430
+ ' {\n'
2431
+ ' GDBusConnection *connection = ll->data;\n'
2432
+ '\n'
2433
+ ' g_dbus_connection_emit_signal (connection,\n'
2434
+ ' NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)),\n'
2435
+ ' "org.freedesktop.DBus.Properties",\n'
2436
+ ' "PropertiesChanged",\n'
2437
+ ' signal_variant,\n'
2438
+ ' NULL);\n'
2439
+ ' }\n'
2440
+ ' g_variant_unref (signal_variant);\n'
2441
+ ' g_list_free_full (connections, g_object_unref);\n'
2442
+ ' }\n'
2443
+ ' else\n'
2444
+ ' {\n'
2445
+ ' g_variant_builder_clear (&builder);\n'
2446
+ ' g_variant_builder_clear (&invalidated_builder);\n'
2447
+ ' }\n'
2448
+ %(i.name))
2449
+ self.c.write(' g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);\n')
2450
+ self.c.write(' skeleton->priv->changed_properties = NULL;\n')
2451
+ self.c.write(' skeleton->priv->changed_properties_idle_source = NULL;\n')
2452
+ self.c.write(' g_mutex_unlock (&skeleton->priv->lock);\n')
2453
+ self.c.write(' return FALSE;\n'
2454
+ '}\n'
2455
+ '\n')
2456
+ # holding lock while being called
2457
+ self.c.write('static void\n'
2458
+ '_%s_schedule_emit_changed (%sSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value)\n'
2459
+ '{\n'
2460
+ ' ChangedProperty *cp;\n'
2461
+ ' GList *l;\n'
2462
+ ' cp = NULL;\n'
2463
+ ' for (l = skeleton->priv->changed_properties; l != NULL; l = l->next)\n'
2464
+ ' {\n'
2465
+ ' ChangedProperty *i_cp = l->data;\n'
2466
+ ' if (i_cp->info == info)\n'
2467
+ ' {\n'
2468
+ ' cp = i_cp;\n'
2469
+ ' break;\n'
2470
+ ' }\n'
2471
+ ' }\n'
2472
+ %(i.name_lower, i.camel_name))
2473
+ self.c.write(' if (cp == NULL)\n'
2474
+ ' {\n'
2475
+ ' cp = g_new0 (ChangedProperty, 1);\n'
2476
+ ' cp->prop_id = prop_id;\n'
2477
+ ' cp->info = info;\n'
2478
+ ' skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp);\n'
2479
+ ' g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value));\n'
2480
+ ' g_value_copy (orig_value, &cp->orig_value);\n'
2481
+ ' }\n'
2482
+ '}\n'
2483
+ '\n'
2484
+ %())
2485
+
2486
+ # Postpone setting up the refresh source until the ::notify signal is emitted as
2487
+ # this allows use of g_object_freeze_notify()/g_object_thaw_notify() ...
2488
+ # This is useful when updating several properties from another thread than
2489
+ # where the idle will be emitted from
2490
+ self.c.write('static void\n'
2491
+ '%s_skeleton_notify (GObject *object,\n'
2492
+ ' GParamSpec *pspec)\n'
2493
+ '{\n'
2494
+ ' %sSkeleton *skeleton = %s%s_SKELETON (object);\n'
2495
+ ' g_mutex_lock (&skeleton->priv->lock);\n'
2496
+ ' if (skeleton->priv->changed_properties != NULL &&\n'
2497
+ ' skeleton->priv->changed_properties_idle_source == NULL)\n'
2498
+ ' {\n'
2499
+ ' skeleton->priv->changed_properties_idle_source = g_idle_source_new ();\n'
2500
+ ' g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);\n'
2501
+ ' g_source_set_callback (skeleton->priv->changed_properties_idle_source, _%s_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);\n'
2502
+ ' g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);\n'
2503
+ ' g_source_unref (skeleton->priv->changed_properties_idle_source);\n'
2504
+ ' }\n'
2505
+ ' g_mutex_unlock (&skeleton->priv->lock);\n'
2506
+ '}\n'
2507
+ '\n'
2508
+ %(i.name_lower, i.camel_name, i.ns_upper, i.name_upper, i.name_lower))
2509
+
2510
+ self.c.write('static void\n'
2511
+ '%s_skeleton_set_property (GObject *object,\n'
2512
+ ' guint prop_id,\n'
2513
+ ' const GValue *value,\n'
2514
+ ' GParamSpec *pspec)\n'
2515
+ '{\n'%(i.name_lower))
2516
+ self.c.write(' %sSkeleton *skeleton = %s%s_SKELETON (object);\n'
2517
+ ' g_assert (prop_id != 0 && prop_id - 1 < %d);\n'
2518
+ ' g_mutex_lock (&skeleton->priv->lock);\n'
2519
+ ' g_object_freeze_notify (object);\n'
2520
+ ' if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1]))\n'
2521
+ ' {\n'
2522
+ ' if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL)\n'
2523
+ ' _%s_schedule_emit_changed (skeleton, _%s_property_info_pointers[prop_id - 1], prop_id, &skeleton->priv->properties[prop_id - 1]);\n'
2524
+ ' g_value_copy (value, &skeleton->priv->properties[prop_id - 1]);\n'
2525
+ ' g_object_notify_by_pspec (object, pspec);\n'
2526
+ ' }\n'
2527
+ ' g_mutex_unlock (&skeleton->priv->lock);\n'
2528
+ ' g_object_thaw_notify (object);\n'
2529
+ %(i.camel_name, i.ns_upper, i.name_upper, len(i.properties), i.name_lower, i.name_lower))
2530
+ self.c.write('}\n'
2531
+ '\n')
2532
+
2533
+ self.c.write('static void\n'
2534
+ '%s_skeleton_init (%sSkeleton *skeleton)\n'
2535
+ '{\n'
2536
+ ' skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, %sTYPE_%s_SKELETON, %sSkeletonPrivate);\n'
2537
+ %(i.name_lower, i.camel_name, i.ns_upper, i.name_upper, i.camel_name))
2538
+ self.c.write(' g_mutex_init (&skeleton->priv->lock);\n')
2539
+ self.c.write(' skeleton->priv->context = g_main_context_ref_thread_default ();\n')
2540
+ if len(i.properties) > 0:
2541
+ self.c.write(' skeleton->priv->properties = g_new0 (GValue, %d);\n'%(len(i.properties)))
2542
+ n = 0
2543
+ for p in i.properties:
2544
+ self.c.write(' g_value_init (&skeleton->priv->properties[%d], %s);\n'%(n, p.arg.gtype))
2545
+ n += 1
2546
+ self.c.write('}\n'
2547
+ '\n')
2548
+
2549
+ # property vfuncs
2550
+ n = 0
2551
+ for p in i.properties:
2552
+ self.c.write('static %s\n'
2553
+ '%s_skeleton_get_%s (%s *object)\n'
2554
+ '{\n'
2555
+ %(p.arg.ctype_in, i.name_lower, p.name_lower, i.camel_name))
2556
+ self.c.write(' %sSkeleton *skeleton = %s%s_SKELETON (object);\n'%(i.camel_name, i.ns_upper, i.name_upper))
2557
+ self.c.write(' %svalue;\n'
2558
+ ' g_mutex_lock (&skeleton->priv->lock);\n'
2559
+ ' value = %s (&(skeleton->priv->properties[%d]));\n'
2560
+ ' g_mutex_unlock (&skeleton->priv->lock);\n'
2561
+ %(p.arg.ctype_in_g, p.arg.gvalue_get, n))
2562
+ self.c.write(' return value;\n')
2563
+ self.c.write('}\n')
2564
+ self.c.write('\n')
2565
+ n += 1
2566
+
2567
+ self.c.write('static void\n'
2568
+ '%s_skeleton_class_init (%sSkeletonClass *klass)\n'
2569
+ '{\n'
2570
+ ' GObjectClass *gobject_class;\n'
2571
+ ' GDBusInterfaceSkeletonClass *skeleton_class;\n'
2572
+ '\n'
2573
+ ' g_type_class_add_private (klass, sizeof (%sSkeletonPrivate));\n'
2574
+ '\n'
2575
+ ' gobject_class = G_OBJECT_CLASS (klass);\n'
2576
+ ' gobject_class->finalize = %s_skeleton_finalize;\n'
2577
+ %(i.name_lower, i.camel_name, i.camel_name, i.name_lower))
2578
+ if len(i.properties) > 0:
2579
+ self.c.write(' gobject_class->get_property = %s_skeleton_get_property;\n'
2580
+ ' gobject_class->set_property = %s_skeleton_set_property;\n'
2581
+ ' gobject_class->notify = %s_skeleton_notify;\n'
2582
+ '\n'%(i.name_lower, i.name_lower, i.name_lower))
2583
+ self.c.write('\n'
2584
+ ' %s_override_properties (gobject_class, 1);\n'%(i.name_lower))
2585
+ self.c.write('\n'
2586
+ ' skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);\n');
2587
+ self.c.write(' skeleton_class->get_info = %s_skeleton_dbus_interface_get_info;\n'%(i.name_lower))
2588
+ self.c.write(' skeleton_class->get_properties = %s_skeleton_dbus_interface_get_properties;\n'%(i.name_lower))
2589
+ self.c.write(' skeleton_class->flush = %s_skeleton_dbus_interface_flush;\n'%(i.name_lower))
2590
+ self.c.write(' skeleton_class->get_vtable = %s_skeleton_dbus_interface_get_vtable;\n'%(i.name_lower))
2591
+ self.c.write('}\n'
2592
+ '\n')
2593
+
2594
+ self.c.write('static void\n'
2595
+ '%s_skeleton_iface_init (%sIface *iface)\n'
2596
+ '{\n'
2597
+ %(i.name_lower, i.camel_name))
2598
+ for s in i.signals:
2599
+ self.c.write(' iface->%s = _%s_on_signal_%s;\n'
2600
+ %(s.name_lower, i.name_lower, s.name_lower))
2601
+ for p in i.properties:
2602
+ self.c.write(' iface->get_%s = %s_skeleton_get_%s;\n'%(p.name_lower, i.name_lower, p.name_lower))
2603
+ self.c.write('}\n'
2604
+ '\n')
2605
+
2606
+ # constructors
2607
+ self.c.write(self.docbook_gen.expand(
2608
+ '/**\n'
2609
+ ' * %s_skeleton_new:\n'
2610
+ ' *\n'
2611
+ ' * Creates a skeleton object for the D-Bus interface #%s.\n'
2612
+ ' *\n'
2613
+ ' * Returns: (transfer full) (type %sSkeleton): The skeleton object.\n'
2614
+ %(i.name_lower, i.name, i.camel_name), False))
2615
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
2616
+ self.c.write('%s *\n'
2617
+ '%s_skeleton_new (void)\n'
2618
+ '{\n'
2619
+ ' return %s%s (g_object_new (%sTYPE_%s_SKELETON, NULL));\n'
2620
+ '}\n'
2621
+ '\n'%(i.camel_name, i.name_lower, i.ns_upper, i.name_upper, i.ns_upper, i.name_upper))
2622
+
2623
+ # ---------------------------------------------------------------------------------------------------
2624
+
2625
+ def generate_object(self):
2626
+ self.c.write('/* ------------------------------------------------------------------------\n'
2627
+ ' * Code for Object, ObjectProxy and ObjectSkeleton\n'
2628
+ ' * ------------------------------------------------------------------------\n'
2629
+ ' */\n'
2630
+ '\n')
2631
+
2632
+ self.c.write(self.docbook_gen.expand(
2633
+ '/**\n'
2634
+ ' * SECTION:%sObject\n'
2635
+ ' * @title: %sObject\n'
2636
+ ' * @short_description: Specialized GDBusObject types\n'
2637
+ ' *\n'
2638
+ ' * This section contains the #%sObject, #%sObjectProxy, and #%sObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces.\n'
2639
+ ' */\n'
2640
+ %(self.namespace, self.namespace, self.namespace, self.namespace, self.namespace), False))
2641
+ self.c.write('\n')
2642
+
2643
+ self.c.write(self.docbook_gen.expand(
2644
+ '/**\n'
2645
+ ' * %sObject:\n'
2646
+ ' *\n'
2647
+ ' * The #%sObject type is a specialized container of interfaces.\n'
2648
+ ' */\n'
2649
+ %(self.namespace, self.namespace), False))
2650
+ self.c.write('\n')
2651
+
2652
+ self.c.write(self.docbook_gen.expand(
2653
+ '/**\n'
2654
+ ' * %sObjectIface:\n'
2655
+ ' * @parent_iface: The parent interface.\n'
2656
+ ' *\n'
2657
+ ' * Virtual table for the #%sObject interface.\n'
2658
+ ' */\n'
2659
+ %(self.namespace, self.namespace), False))
2660
+ self.c.write('\n')
2661
+
2662
+ self.c.write('static void\n'
2663
+ '%sobject_default_init (%sObjectIface *iface)\n'
2664
+ '{\n'
2665
+ %(self.ns_lower, self.namespace));
2666
+ for i in self.ifaces:
2667
+ self.c.write(self.docbook_gen.expand(
2668
+ ' /**\n'
2669
+ ' * %sObject:%s:\n'
2670
+ ' *\n'
2671
+ ' * The #%s instance corresponding to the D-Bus interface #%s, if any.\n'
2672
+ ' *\n'
2673
+ ' * Connect to the #GObject::notify signal to get informed of property changes.\n'
2674
+ %(self.namespace, i.name_hyphen, i.camel_name, i.name), False))
2675
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 2)
2676
+ self.c.write(' g_object_interface_install_property (iface, g_param_spec_object ("%s", "%s", "%s", %sTYPE_%s, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));\n'
2677
+ '\n'
2678
+ %(i.name_hyphen, i.name_hyphen, i.name_hyphen, self.ns_upper, i.name_upper))
2679
+ self.c.write('}\n'
2680
+ '\n')
2681
+
2682
+ self.c.write('typedef %sObjectIface %sObjectInterface;\n'%(self.namespace, self.namespace))
2683
+ self.c.write('G_DEFINE_INTERFACE_WITH_CODE (%sObject, %sobject, G_TYPE_OBJECT, g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_DBUS_OBJECT));\n'%(self.namespace, self.ns_lower))
2684
+ self.c.write('\n')
2685
+
2686
+ for i in self.ifaces:
2687
+ self.c.write(self.docbook_gen.expand(
2688
+ '/**\n'
2689
+ ' * %sobject_get_%s:\n'
2690
+ ' * @object: A #%sObject.\n'
2691
+ ' *\n'
2692
+ ' * Gets the #%s instance for the D-Bus interface #%s on @object, if any.\n'
2693
+ ' *\n'
2694
+ ' * Returns: (transfer full): A #%s that must be freed with g_object_unref() or %%NULL if @object does not implement the interface.\n'
2695
+ %(self.ns_lower, i.name_upper.lower(), self.namespace, i.camel_name, i.name, i.camel_name), False))
2696
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
2697
+ self.c.write ('%s *%sobject_get_%s (%sObject *object)\n'
2698
+ %(i.camel_name, self.ns_lower, i.name_upper.lower(), self.namespace))
2699
+ self.c.write('{\n'
2700
+ ' GDBusInterface *ret;\n'
2701
+ ' ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "%s");\n'
2702
+ ' if (ret == NULL)\n'
2703
+ ' return NULL;\n'
2704
+ ' return %s%s (ret);\n'
2705
+ '}\n'
2706
+ '\n'
2707
+ %(i.name, self.ns_upper, i.name_upper))
2708
+ self.c.write('\n')
2709
+ for i in self.ifaces:
2710
+ self.c.write(self.docbook_gen.expand(
2711
+ '/**\n'
2712
+ ' * %sobject_peek_%s: (skip)\n'
2713
+ ' * @object: A #%sObject.\n'
2714
+ ' *\n'
2715
+ ' * Like %sobject_get_%s() but doesn\'t increase the reference count on the returned object.\n'
2716
+ ' *\n'
2717
+ ' * <warning>It is not safe to use the returned object if you are on another thread than the one where the #GDBusObjectManagerClient or #GDBusObjectManagerServer for @object is running.</warning>\n'
2718
+ ' *\n'
2719
+ ' * Returns: (transfer none): A #%s or %%NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object.\n'
2720
+ %(self.ns_lower, i.name_upper.lower(), self.namespace, self.ns_lower, i.name_upper.lower(), i.camel_name), False))
2721
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
2722
+ self.c.write ('%s *%sobject_peek_%s (%sObject *object)\n'
2723
+ %(i.camel_name, self.ns_lower, i.name_upper.lower(), self.namespace))
2724
+ self.c.write('{\n'
2725
+ ' GDBusInterface *ret;\n'
2726
+ ' ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "%s");\n'
2727
+ ' if (ret == NULL)\n'
2728
+ ' return NULL;\n'
2729
+ ' g_object_unref (ret);\n'
2730
+ ' return %s%s (ret);\n'
2731
+ '}\n'
2732
+ '\n'
2733
+ %(i.name, self.ns_upper, i.name_upper))
2734
+ self.c.write('\n')
2735
+ # shared by ObjectProxy and ObjectSkeleton classes
2736
+ self.c.write('static void\n'
2737
+ '%sobject_notify (GDBusObject *object, GDBusInterface *interface)\n'
2738
+ '{\n'
2739
+ ' g_object_notify (G_OBJECT (object), ((_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface))->hyphen_name);\n'
2740
+ '}\n'
2741
+ '\n'
2742
+ %(self.ns_lower))
2743
+
2744
+ self.c.write(self.docbook_gen.expand(
2745
+ '/**\n'
2746
+ ' * %sObjectProxy:\n'
2747
+ ' *\n'
2748
+ ' * The #%sObjectProxy structure contains only private data and should only be accessed using the provided API.\n'
2749
+ %(self.namespace, self.namespace), False))
2750
+ self.c.write(' */\n')
2751
+ self.c.write('\n')
2752
+ self.c.write(self.docbook_gen.expand(
2753
+ '/**\n'
2754
+ ' * %sObjectProxyClass:\n'
2755
+ ' * @parent_class: The parent class.\n'
2756
+ ' *\n'
2757
+ ' * Class structure for #%sObjectProxy.\n'
2758
+ %(self.namespace, self.namespace), False))
2759
+ self.c.write(' */\n')
2760
+ self.c.write('\n')
2761
+ # class boilerplate
2762
+ self.c.write('static void\n'
2763
+ '%sobject_proxy__%sobject_iface_init (%sObjectIface *iface)\n'
2764
+ '{\n'
2765
+ '}\n'
2766
+ '\n'
2767
+ %(self.ns_lower, self.ns_lower, self.namespace))
2768
+ self.c.write('static void\n'
2769
+ '%sobject_proxy__g_dbus_object_iface_init (GDBusObjectIface *iface)\n'
2770
+ '{\n'
2771
+ ' iface->interface_added = %sobject_notify;\n'
2772
+ ' iface->interface_removed = %sobject_notify;\n'
2773
+ '}\n'
2774
+ '\n'
2775
+ %(self.ns_lower, self.ns_lower, self.ns_lower))
2776
+ self.c.write('\n')
2777
+ self.c.write('G_DEFINE_TYPE_WITH_CODE (%sObjectProxy, %sobject_proxy, G_TYPE_DBUS_OBJECT_PROXY,\n'
2778
+ ' G_IMPLEMENT_INTERFACE (%sTYPE_OBJECT, %sobject_proxy__%sobject_iface_init)\n'
2779
+ ' G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, %sobject_proxy__g_dbus_object_iface_init));\n'
2780
+ '\n'
2781
+ %(self.namespace, self.ns_lower, self.ns_upper, self.ns_lower, self.ns_lower, self.ns_lower))
2782
+ # class boilerplate
2783
+ self.c.write('static void\n'
2784
+ '%sobject_proxy_init (%sObjectProxy *object)\n'
2785
+ '{\n'
2786
+ '}\n'
2787
+ '\n'%(self.ns_lower, self.namespace))
2788
+ self.c.write('static void\n'
2789
+ '%sobject_proxy_set_property (GObject *gobject,\n'
2790
+ ' guint prop_id,\n'
2791
+ ' const GValue *value,\n'
2792
+ ' GParamSpec *pspec)\n'
2793
+ '{\n'
2794
+ ' G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);\n'
2795
+ %(self.ns_lower))
2796
+ self.c.write('}\n'
2797
+ '\n'%())
2798
+ self.c.write('static void\n'
2799
+ '%sobject_proxy_get_property (GObject *gobject,\n'
2800
+ ' guint prop_id,\n'
2801
+ ' GValue *value,\n'
2802
+ ' GParamSpec *pspec)\n'
2803
+ '{\n'
2804
+ ' %sObjectProxy *object = %sOBJECT_PROXY (gobject);\n'
2805
+ ' GDBusInterface *interface;\n'
2806
+ '\n'
2807
+ ' switch (prop_id)\n'
2808
+ ' {\n'
2809
+ %(self.ns_lower, self.namespace, self.ns_upper))
2810
+ n = 1
2811
+ for i in self.ifaces:
2812
+ self.c.write(' case %d:\n'
2813
+ ' interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "%s");\n'
2814
+ ' g_value_take_object (value, interface);\n'
2815
+ ' break;\n'
2816
+ '\n'
2817
+ %(n, i.name))
2818
+ n += 1
2819
+ self.c.write(' default:\n'
2820
+ ' G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);\n'
2821
+ ' break;\n'
2822
+ ' }\n'
2823
+ '}\n'
2824
+ '\n'%())
2825
+ self.c.write('static void\n'
2826
+ '%sobject_proxy_class_init (%sObjectProxyClass *klass)\n'
2827
+ '{\n'
2828
+ ' GObjectClass *gobject_class = G_OBJECT_CLASS (klass);\n'
2829
+ '\n'
2830
+ ' gobject_class->set_property = %sobject_proxy_set_property;\n'
2831
+ ' gobject_class->get_property = %sobject_proxy_get_property;\n'
2832
+ '\n'
2833
+ %(self.ns_lower, self.namespace, self.ns_lower, self.ns_lower))
2834
+ n = 1
2835
+ for i in self.ifaces:
2836
+ self.c.write(' g_object_class_override_property (gobject_class, %d, "%s");'
2837
+ '\n'
2838
+ %(n, i.name_hyphen))
2839
+ n += 1
2840
+ self.c.write('}\n'
2841
+ '\n')
2842
+
2843
+ self.c.write(self.docbook_gen.expand(
2844
+ '/**\n'
2845
+ ' * %sobject_proxy_new:\n'
2846
+ ' * @connection: A #GDBusConnection.\n'
2847
+ ' * @object_path: An object path.\n'
2848
+ ' *\n'
2849
+ ' * Creates a new proxy object.\n'
2850
+ ' *\n'
2851
+ ' * Returns: (transfer full): The proxy object.\n'
2852
+ ' */\n'
2853
+ %(self.ns_lower), False))
2854
+ self.c.write('%sObjectProxy *\n'
2855
+ '%sobject_proxy_new (GDBusConnection *connection,\n'
2856
+ ' const gchar *object_path)\n'
2857
+ '{\n'
2858
+ ' g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL);\n'
2859
+ ' g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);\n'
2860
+ ' return %sOBJECT_PROXY (g_object_new (%sTYPE_OBJECT_PROXY, "g-connection", connection, "g-object-path", object_path, NULL));\n'
2861
+ '}\n'
2862
+ '\n'%(self.namespace, self.ns_lower, self.ns_upper, self.ns_upper))
2863
+
2864
+ self.c.write(self.docbook_gen.expand(
2865
+ '/**\n'
2866
+ ' * %sObjectSkeleton:\n'
2867
+ ' *\n'
2868
+ ' * The #%sObjectSkeleton structure contains only private data and should only be accessed using the provided API.\n'
2869
+ %(self.namespace, self.namespace), False))
2870
+ self.c.write(' */\n')
2871
+ self.c.write('\n')
2872
+ self.c.write(self.docbook_gen.expand(
2873
+ '/**\n'
2874
+ ' * %sObjectSkeletonClass:\n'
2875
+ ' * @parent_class: The parent class.\n'
2876
+ ' *\n'
2877
+ ' * Class structure for #%sObjectSkeleton.\n'
2878
+ %(self.namespace, self.namespace), False))
2879
+ self.c.write(' */\n')
2880
+ self.c.write('\n')
2881
+ # class boilerplate
2882
+ self.c.write('static void\n'
2883
+ '%sobject_skeleton__%sobject_iface_init (%sObjectIface *iface)\n'
2884
+ '{\n'
2885
+ '}\n'
2886
+ '\n'
2887
+ %(self.ns_lower, self.ns_lower, self.namespace))
2888
+ self.c.write('\n')
2889
+ self.c.write('static void\n'
2890
+ '%sobject_skeleton__g_dbus_object_iface_init (GDBusObjectIface *iface)\n'
2891
+ '{\n'
2892
+ ' iface->interface_added = %sobject_notify;\n'
2893
+ ' iface->interface_removed = %sobject_notify;\n'
2894
+ '}\n'
2895
+ '\n'
2896
+ %(self.ns_lower, self.ns_lower, self.ns_lower))
2897
+ self.c.write('G_DEFINE_TYPE_WITH_CODE (%sObjectSkeleton, %sobject_skeleton, G_TYPE_DBUS_OBJECT_SKELETON,\n'
2898
+ ' G_IMPLEMENT_INTERFACE (%sTYPE_OBJECT, %sobject_skeleton__%sobject_iface_init)\n'
2899
+ ' G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, %sobject_skeleton__g_dbus_object_iface_init));\n'
2900
+ '\n'
2901
+ %(self.namespace, self.ns_lower, self.ns_upper, self.ns_lower, self.ns_lower, self.ns_lower))
2902
+ # class boilerplate
2903
+ self.c.write('static void\n'
2904
+ '%sobject_skeleton_init (%sObjectSkeleton *object)\n'
2905
+ '{\n'
2906
+ '}\n'
2907
+ '\n'%(self.ns_lower, self.namespace))
2908
+ self.c.write('static void\n'
2909
+ '%sobject_skeleton_set_property (GObject *gobject,\n'
2910
+ ' guint prop_id,\n'
2911
+ ' const GValue *value,\n'
2912
+ ' GParamSpec *pspec)\n'
2913
+ '{\n'
2914
+ ' %sObjectSkeleton *object = %sOBJECT_SKELETON (gobject);\n'
2915
+ ' GDBusInterfaceSkeleton *interface;\n'
2916
+ '\n'
2917
+ ' switch (prop_id)\n'
2918
+ ' {\n'
2919
+ %(self.ns_lower, self.namespace, self.ns_upper))
2920
+ n = 1
2921
+ for i in self.ifaces:
2922
+ self.c.write(' case %d:\n'
2923
+ ' interface = g_value_get_object (value);\n'
2924
+ ' if (interface != NULL)\n'
2925
+ ' {\n'
2926
+ ' g_warn_if_fail (%sIS_%s (interface));\n'
2927
+ ' g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);\n'
2928
+ ' }\n'
2929
+ ' else\n'
2930
+ ' {\n'
2931
+ ' g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "%s");\n'
2932
+ ' }\n'
2933
+ ' break;\n'
2934
+ '\n'
2935
+ %(n, self.ns_upper, i.name_upper, i.name))
2936
+ n += 1
2937
+ self.c.write(' default:\n'
2938
+ ' G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);\n'
2939
+ ' break;\n'
2940
+ ' }\n'
2941
+ '}\n'
2942
+ '\n'%())
2943
+ self.c.write('static void\n'
2944
+ '%sobject_skeleton_get_property (GObject *gobject,\n'
2945
+ ' guint prop_id,\n'
2946
+ ' GValue *value,\n'
2947
+ ' GParamSpec *pspec)\n'
2948
+ '{\n'
2949
+ ' %sObjectSkeleton *object = %sOBJECT_SKELETON (gobject);\n'
2950
+ ' GDBusInterface *interface;\n'
2951
+ '\n'
2952
+ ' switch (prop_id)\n'
2953
+ ' {\n'
2954
+ %(self.ns_lower, self.namespace, self.ns_upper))
2955
+ n = 1
2956
+ for i in self.ifaces:
2957
+ self.c.write(' case %d:\n'
2958
+ ' interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "%s");\n'
2959
+ ' g_value_take_object (value, interface);\n'
2960
+ ' break;\n'
2961
+ '\n'
2962
+ %(n, i.name))
2963
+ n += 1
2964
+ self.c.write(' default:\n'
2965
+ ' G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);\n'
2966
+ ' break;\n'
2967
+ ' }\n'
2968
+ '}\n'
2969
+ '\n'%())
2970
+ self.c.write('static void\n'
2971
+ '%sobject_skeleton_class_init (%sObjectSkeletonClass *klass)\n'
2972
+ '{\n'
2973
+ ' GObjectClass *gobject_class = G_OBJECT_CLASS (klass);\n'
2974
+ '\n'
2975
+ ' gobject_class->set_property = %sobject_skeleton_set_property;\n'
2976
+ ' gobject_class->get_property = %sobject_skeleton_get_property;\n'
2977
+ '\n'
2978
+ %(self.ns_lower, self.namespace, self.ns_lower, self.ns_lower))
2979
+ n = 1
2980
+ for i in self.ifaces:
2981
+ self.c.write(' g_object_class_override_property (gobject_class, %d, "%s");'
2982
+ '\n'
2983
+ %(n, i.name_hyphen))
2984
+ n += 1
2985
+ self.c.write('}\n'
2986
+ '\n')
2987
+ self.c.write(self.docbook_gen.expand(
2988
+ '/**\n'
2989
+ ' * %sobject_skeleton_new:\n'
2990
+ ' * @object_path: An object path.\n'
2991
+ ' *\n'
2992
+ ' * Creates a new skeleton object.\n'
2993
+ ' *\n'
2994
+ ' * Returns: (transfer full): The skeleton object.\n'
2995
+ ' */\n'
2996
+ %(self.ns_lower), False))
2997
+ self.c.write('%sObjectSkeleton *\n'
2998
+ '%sobject_skeleton_new (const gchar *object_path)\n'
2999
+ '{\n'
3000
+ ' g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);\n'
3001
+ ' return %sOBJECT_SKELETON (g_object_new (%sTYPE_OBJECT_SKELETON, "g-object-path", object_path, NULL));\n'
3002
+ '}\n'
3003
+ '\n'%(self.namespace, self.ns_lower, self.ns_upper, self.ns_upper))
3004
+ for i in self.ifaces:
3005
+ self.c.write(self.docbook_gen.expand(
3006
+ '/**\n'
3007
+ ' * %sobject_skeleton_set_%s:\n'
3008
+ ' * @object: A #%sObjectSkeleton.\n'
3009
+ ' * @interface_: (allow-none): A #%s or %%NULL to clear the interface.\n'
3010
+ ' *\n'
3011
+ ' * Sets the #%s instance for the D-Bus interface #%s on @object.\n'
3012
+ %(self.ns_lower, i.name_upper.lower(), self.namespace, i.camel_name, i.camel_name, i.name), False))
3013
+ self.write_gtkdoc_deprecated_and_since_and_close(i, self.c, 0)
3014
+ self.c.write ('void %sobject_skeleton_set_%s (%sObjectSkeleton *object, %s *interface_)\n'
3015
+ %(self.ns_lower, i.name_upper.lower(), self.namespace, i.camel_name))
3016
+ self.c.write('{\n'
3017
+ ' g_object_set (G_OBJECT (object), "%s", interface_, NULL);\n'
3018
+ '}\n'
3019
+ '\n'
3020
+ %(i.name_hyphen))
3021
+ self.c.write('\n')
3022
+
3023
+
3024
+ def generate_object_manager_client(self):
3025
+ self.c.write('/* ------------------------------------------------------------------------\n'
3026
+ ' * Code for ObjectManager client\n'
3027
+ ' * ------------------------------------------------------------------------\n'
3028
+ ' */\n'
3029
+ '\n')
3030
+
3031
+ self.c.write(self.docbook_gen.expand(
3032
+ '/**\n'
3033
+ ' * SECTION:%sObjectManagerClient\n'
3034
+ ' * @title: %sObjectManagerClient\n'
3035
+ ' * @short_description: Generated GDBusObjectManagerClient type\n'
3036
+ ' *\n'
3037
+ ' * This section contains a #GDBusObjectManagerClient that uses %sobject_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc.\n'
3038
+ ' */\n'
3039
+ %(self.namespace, self.namespace, self.ns_lower), False))
3040
+ self.c.write('\n')
3041
+
3042
+ self.c.write(self.docbook_gen.expand(
3043
+ '/**\n'
3044
+ ' * %sObjectManagerClient:\n'
3045
+ ' *\n'
3046
+ ' * The #%sObjectManagerClient structure contains only private data and should only be accessed using the provided API.\n'
3047
+ %(self.namespace, self.namespace), False))
3048
+ self.c.write(' */\n')
3049
+ self.c.write('\n')
3050
+
3051
+ self.c.write(self.docbook_gen.expand(
3052
+ '/**\n'
3053
+ ' * %sObjectManagerClientClass:\n'
3054
+ ' * @parent_class: The parent class.\n'
3055
+ ' *\n'
3056
+ ' * Class structure for #%sObjectManagerClient.\n'
3057
+ %(self.namespace, self.namespace), False))
3058
+ self.c.write(' */\n')
3059
+ self.c.write('\n')
3060
+
3061
+ # class boilerplate
3062
+ self.c.write('G_DEFINE_TYPE (%sObjectManagerClient, %sobject_manager_client, G_TYPE_DBUS_OBJECT_MANAGER_CLIENT);\n'
3063
+ '\n'
3064
+ %(self.namespace, self.ns_lower))
3065
+
3066
+ # class boilerplate
3067
+ self.c.write('static void\n'
3068
+ '%sobject_manager_client_init (%sObjectManagerClient *manager)\n'
3069
+ '{\n'
3070
+ '}\n'
3071
+ '\n'%(self.ns_lower, self.namespace))
3072
+ self.c.write('static void\n'
3073
+ '%sobject_manager_client_class_init (%sObjectManagerClientClass *klass)\n'
3074
+ '{\n'
3075
+ '}\n'
3076
+ '\n'%(self.ns_lower, self.namespace))
3077
+
3078
+ self.c.write(self.docbook_gen.expand(
3079
+ '/**\n'
3080
+ ' * %sobject_manager_client_get_proxy_type:\n'
3081
+ ' * @manager: A #GDBusObjectManagerClient.\n'
3082
+ ' * @object_path: The object path of the remote object (unused).\n'
3083
+ ' * @interface_name: (allow-none): Interface name of the remote object or %%NULL to get the object proxy #GType.\n'
3084
+ ' * @user_data: User data (unused).\n'
3085
+ ' *\n'
3086
+ ' * A #GDBusProxyTypeFunc that maps @interface_name to the generated #GDBusObjectProxy<!-- -->- and #GDBusProxy<!-- -->-derived types.\n'
3087
+ ' *\n'
3088
+ ' * Returns: A #GDBusProxy<!-- -->-derived #GType if @interface_name is not %%NULL, otherwise the #GType for #%sObjectProxy.\n'
3089
+ %(self.ns_lower, self.namespace), False))
3090
+ self.c.write(' */\n')
3091
+ self.c.write('GType\n'
3092
+ '%sobject_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data)\n'
3093
+ '{\n'
3094
+ %(self.ns_lower))
3095
+ self.c.write(' static gsize once_init_value = 0;\n'
3096
+ ' static GHashTable *lookup_hash;\n'
3097
+ ' GType ret;\n'
3098
+ '\n'
3099
+ ' if (interface_name == NULL)\n'
3100
+ ' return %sTYPE_OBJECT_PROXY;\n'
3101
+ ' if (g_once_init_enter (&once_init_value))\n'
3102
+ ' {\n'
3103
+ ' lookup_hash = g_hash_table_new (g_str_hash, g_str_equal);\n'
3104
+ %(self.ns_upper))
3105
+ for i in self.ifaces:
3106
+ self.c.write(' g_hash_table_insert (lookup_hash, (gpointer) "%s", GSIZE_TO_POINTER (%sTYPE_%s_PROXY));\n'
3107
+ %(i.name, i.ns_upper, i.name_upper))
3108
+ self.c.write(' g_once_init_leave (&once_init_value, 1);\n'
3109
+ ' }\n')
3110
+ self.c.write(' ret = (GType) GPOINTER_TO_SIZE (g_hash_table_lookup (lookup_hash, interface_name));\n'
3111
+ ' if (ret == (GType) 0)\n'
3112
+ ' ret = G_TYPE_DBUS_PROXY;\n')
3113
+ self.c.write(' return ret;\n'
3114
+ '}\n'
3115
+ '\n')
3116
+
3117
+ # constructors
3118
+ self.c.write(self.docbook_gen.expand(
3119
+ '/**\n'
3120
+ ' * %sobject_manager_client_new:\n'
3121
+ ' * @connection: A #GDBusConnection.\n'
3122
+ ' * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.\n'
3123
+ ' * @name: (allow-none): A bus name (well-known or unique) or %%NULL if @connection is not a message bus connection.\n'
3124
+ ' * @object_path: An object path.\n'
3125
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
3126
+ ' * @callback: A #GAsyncReadyCallback to call when the request is satisfied.\n'
3127
+ ' * @user_data: User data to pass to @callback.\n'
3128
+ ' *\n'
3129
+ ' * Asynchronously creates #GDBusObjectManagerClient using %sobject_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new() for more details.\n'
3130
+ ' *\n'
3131
+ ' * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.\n'
3132
+ ' * You can then call %sobject_manager_client_new_finish() to get the result of the operation.\n'
3133
+ ' *\n'
3134
+ ' * See %sobject_manager_client_new_sync() for the synchronous, blocking version of this constructor.\n'
3135
+ %(self.ns_lower, self.ns_lower, self.ns_lower, self.ns_lower), False))
3136
+ self.c.write(' */\n')
3137
+ self.c.write('void\n'
3138
+ '%sobject_manager_client_new (\n'
3139
+ ' GDBusConnection *connection,\n'
3140
+ ' GDBusObjectManagerClientFlags flags,\n'
3141
+ ' const gchar *name,\n'
3142
+ ' const gchar *object_path,\n'
3143
+ ' GCancellable *cancellable,\n'
3144
+ ' GAsyncReadyCallback callback,\n'
3145
+ ' gpointer user_data)\n'
3146
+ '{\n'
3147
+ ' g_async_initable_new_async (%sTYPE_OBJECT_MANAGER_CLIENT, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", %sobject_manager_client_get_proxy_type, NULL);\n'
3148
+ '}\n'
3149
+ '\n'
3150
+ %(self.ns_lower, self.ns_upper, self.ns_lower))
3151
+ self.c.write('/**\n'
3152
+ ' * %sobject_manager_client_new_finish:\n'
3153
+ ' * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to %sobject_manager_client_new().\n'
3154
+ ' * @error: Return location for error or %%NULL\n'
3155
+ ' *\n'
3156
+ ' * Finishes an operation started with %sobject_manager_client_new().\n'
3157
+ ' *\n'
3158
+ ' * Returns: (transfer full) (type %sObjectManagerClient): The constructed object manager client or %%NULL if @error is set.\n'
3159
+ %(self.ns_lower, self.ns_lower, self.ns_lower, self.namespace))
3160
+ self.c.write(' */\n')
3161
+ self.c.write('GDBusObjectManager *\n'
3162
+ '%sobject_manager_client_new_finish (\n'
3163
+ ' GAsyncResult *res,\n'
3164
+ ' GError **error)\n'
3165
+ '{\n'
3166
+ ' GObject *ret;\n'
3167
+ ' GObject *source_object;\n'
3168
+ ' source_object = g_async_result_get_source_object (res);\n'
3169
+ ' ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);\n'
3170
+ ' g_object_unref (source_object);\n'
3171
+ ' if (ret != NULL)\n'
3172
+ ' return G_DBUS_OBJECT_MANAGER (ret);\n'
3173
+ ' else\n'
3174
+ ' return NULL;\n'
3175
+ '}\n'
3176
+ '\n'
3177
+ %(self.ns_lower))
3178
+ self.c.write(self.docbook_gen.expand(
3179
+ '/**\n'
3180
+ ' * %sobject_manager_client_new_sync:\n'
3181
+ ' * @connection: A #GDBusConnection.\n'
3182
+ ' * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.\n'
3183
+ ' * @name: (allow-none): A bus name (well-known or unique) or %%NULL if @connection is not a message bus connection.\n'
3184
+ ' * @object_path: An object path.\n'
3185
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
3186
+ ' * @error: Return location for error or %%NULL\n'
3187
+ ' *\n'
3188
+ ' * Synchronously creates #GDBusObjectManagerClient using %sobject_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new_sync() for more details.\n'
3189
+ ' *\n'
3190
+ ' * The calling thread is blocked until a reply is received.\n'
3191
+ ' *\n'
3192
+ ' * See %sobject_manager_client_new() for the asynchronous version of this constructor.\n'
3193
+ ' *\n'
3194
+ ' * Returns: (transfer full) (type %sObjectManagerClient): The constructed object manager client or %%NULL if @error is set.\n'
3195
+ %(self.ns_lower, self.ns_lower, self.ns_lower, self.namespace), False))
3196
+ self.c.write(' */\n')
3197
+ self.c.write('GDBusObjectManager *\n'
3198
+ '%sobject_manager_client_new_sync (\n'
3199
+ ' GDBusConnection *connection,\n'
3200
+ ' GDBusObjectManagerClientFlags flags,\n'
3201
+ ' const gchar *name,\n'
3202
+ ' const gchar *object_path,\n'
3203
+ ' GCancellable *cancellable,\n'
3204
+ ' GError **error)\n'
3205
+ '{\n'
3206
+ ' GInitable *ret;\n'
3207
+ ' ret = g_initable_new (%sTYPE_OBJECT_MANAGER_CLIENT, cancellable, error, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", %sobject_manager_client_get_proxy_type, NULL);\n'
3208
+ ' if (ret != NULL)\n'
3209
+ ' return G_DBUS_OBJECT_MANAGER (ret);\n'
3210
+ ' else\n'
3211
+ ' return NULL;\n'
3212
+ '}\n'
3213
+ '\n'
3214
+ %(self.ns_lower, self.ns_upper, self.ns_lower))
3215
+ self.c.write('\n')
3216
+ self.c.write(self.docbook_gen.expand(
3217
+ '/**\n'
3218
+ ' * %sobject_manager_client_new_for_bus:\n'
3219
+ ' * @bus_type: A #GBusType.\n'
3220
+ ' * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.\n'
3221
+ ' * @name: A bus name (well-known or unique).\n'
3222
+ ' * @object_path: An object path.\n'
3223
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
3224
+ ' * @callback: A #GAsyncReadyCallback to call when the request is satisfied.\n'
3225
+ ' * @user_data: User data to pass to @callback.\n'
3226
+ ' *\n'
3227
+ ' * Like %sobject_manager_client_new() but takes a #GBusType instead of a #GDBusConnection.\n'
3228
+ ' *\n'
3229
+ ' * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.\n'
3230
+ ' * You can then call %sobject_manager_client_new_for_bus_finish() to get the result of the operation.\n'
3231
+ ' *\n'
3232
+ ' * See %sobject_manager_client_new_for_bus_sync() for the synchronous, blocking version of this constructor.\n'
3233
+ %(self.ns_lower, self.ns_lower, self.ns_lower, self.ns_lower), False))
3234
+ self.c.write(' */\n')
3235
+ self.c.write('void\n'
3236
+ '%sobject_manager_client_new_for_bus (\n'
3237
+ ' GBusType bus_type,\n'
3238
+ ' GDBusObjectManagerClientFlags flags,\n'
3239
+ ' const gchar *name,\n'
3240
+ ' const gchar *object_path,\n'
3241
+ ' GCancellable *cancellable,\n'
3242
+ ' GAsyncReadyCallback callback,\n'
3243
+ ' gpointer user_data)\n'
3244
+ '{\n'
3245
+ ' g_async_initable_new_async (%sTYPE_OBJECT_MANAGER_CLIENT, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", %sobject_manager_client_get_proxy_type, NULL);\n'
3246
+ '}\n'
3247
+ '\n'
3248
+ %(self.ns_lower, self.ns_upper, self.ns_lower))
3249
+ self.c.write('/**\n'
3250
+ ' * %sobject_manager_client_new_for_bus_finish:\n'
3251
+ ' * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to %sobject_manager_client_new_for_bus().\n'
3252
+ ' * @error: Return location for error or %%NULL\n'
3253
+ ' *\n'
3254
+ ' * Finishes an operation started with %sobject_manager_client_new_for_bus().\n'
3255
+ ' *\n'
3256
+ ' * Returns: (transfer full) (type %sObjectManagerClient): The constructed object manager client or %%NULL if @error is set.\n'
3257
+ %(self.ns_lower, self.ns_lower, self.ns_lower, self.namespace))
3258
+ self.c.write(' */\n')
3259
+ self.c.write('GDBusObjectManager *\n'
3260
+ '%sobject_manager_client_new_for_bus_finish (\n'
3261
+ ' GAsyncResult *res,\n'
3262
+ ' GError **error)\n'
3263
+ '{\n'
3264
+ ' GObject *ret;\n'
3265
+ ' GObject *source_object;\n'
3266
+ ' source_object = g_async_result_get_source_object (res);\n'
3267
+ ' ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);\n'
3268
+ ' g_object_unref (source_object);\n'
3269
+ ' if (ret != NULL)\n'
3270
+ ' return G_DBUS_OBJECT_MANAGER (ret);\n'
3271
+ ' else\n'
3272
+ ' return NULL;\n'
3273
+ '}\n'
3274
+ '\n'
3275
+ %(self.ns_lower))
3276
+ self.c.write(self.docbook_gen.expand(
3277
+ '/**\n'
3278
+ ' * %sobject_manager_client_new_for_bus_sync:\n'
3279
+ ' * @bus_type: A #GBusType.\n'
3280
+ ' * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.\n'
3281
+ ' * @name: A bus name (well-known or unique).\n'
3282
+ ' * @object_path: An object path.\n'
3283
+ ' * @cancellable: (allow-none): A #GCancellable or %%NULL.\n'
3284
+ ' * @error: Return location for error or %%NULL\n'
3285
+ ' *\n'
3286
+ ' * Like %sobject_manager_client_new_sync() but takes a #GBusType instead of a #GDBusConnection.\n'
3287
+ ' *\n'
3288
+ ' * The calling thread is blocked until a reply is received.\n'
3289
+ ' *\n'
3290
+ ' * See %sobject_manager_client_new_for_bus() for the asynchronous version of this constructor.\n'
3291
+ ' *\n'
3292
+ ' * Returns: (transfer full) (type %sObjectManagerClient): The constructed object manager client or %%NULL if @error is set.\n'
3293
+ %(self.ns_lower, self.ns_lower, self.ns_lower, self.namespace), False))
3294
+ self.c.write(' */\n')
3295
+ self.c.write('GDBusObjectManager *\n'
3296
+ '%sobject_manager_client_new_for_bus_sync (\n'
3297
+ ' GBusType bus_type,\n'
3298
+ ' GDBusObjectManagerClientFlags flags,\n'
3299
+ ' const gchar *name,\n'
3300
+ ' const gchar *object_path,\n'
3301
+ ' GCancellable *cancellable,\n'
3302
+ ' GError **error)\n'
3303
+ '{\n'
3304
+ ' GInitable *ret;\n'
3305
+ ' ret = g_initable_new (%sTYPE_OBJECT_MANAGER_CLIENT, cancellable, error, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", %sobject_manager_client_get_proxy_type, NULL);\n'
3306
+ ' if (ret != NULL)\n'
3307
+ ' return G_DBUS_OBJECT_MANAGER (ret);\n'
3308
+ ' else\n'
3309
+ ' return NULL;\n'
3310
+ '}\n'
3311
+ '\n'
3312
+ %(self.ns_lower, self.ns_upper, self.ns_lower))
3313
+ self.c.write('\n')
3314
+
3315
+ # ---------------------------------------------------------------------------------------------------
3316
+
3317
+ def write_gtkdoc_deprecated_and_since_and_close(self, obj, f, indent):
3318
+ if len(obj.since) > 0:
3319
+ f.write('%*s *\n'
3320
+ '%*s * Since: %s\n'
3321
+ %(indent, '', indent, '', obj.since))
3322
+ if obj.deprecated:
3323
+ if isinstance(obj, dbustypes.Interface):
3324
+ thing = 'The D-Bus interface'
3325
+ elif isinstance(obj, dbustypes.Method):
3326
+ thing = 'The D-Bus method'
3327
+ elif isinstance(obj, dbustypes.Signal):
3328
+ thing = 'The D-Bus signal'
3329
+ elif isinstance(obj, dbustypes.Property):
3330
+ thing = 'The D-Bus property'
3331
+ else:
3332
+ raise RuntimeError('Cannot handle object ', obj)
3333
+ f.write(self.docbook_gen.expand(
3334
+ '%*s *\n'
3335
+ '%*s * Deprecated: %s has been deprecated.\n'
3336
+ %(indent, '', indent, '', thing), False))
3337
+ f.write('%*s */\n'%(indent, ''))
3338
+
3339
+ # ---------------------------------------------------------------------------------------------------
3340
+
3341
+ def generate_interface_intro(self, i):
3342
+ self.c.write('/* ------------------------------------------------------------------------\n'
3343
+ ' * Code for interface %s\n'
3344
+ ' * ------------------------------------------------------------------------\n'
3345
+ ' */\n'
3346
+ '\n'%(i.name))
3347
+
3348
+ self.c.write(self.docbook_gen.expand(
3349
+ '/**\n'
3350
+ ' * SECTION:%s\n'
3351
+ ' * @title: %s\n'
3352
+ ' * @short_description: Generated C code for the %s D-Bus interface\n'
3353
+ ' *\n'
3354
+ ' * This section contains code for working with the #%s D-Bus interface in C.\n'
3355
+ ' */\n'
3356
+ %(i.camel_name, i.camel_name, i.name, i.name), False))
3357
+ self.c.write('\n')
3358
+
3359
+ def generate(self):
3360
+ self.generate_intro()
3361
+ self.declare_types()
3362
+ for i in self.ifaces:
3363
+ self.generate_interface_intro(i)
3364
+ self.generate_introspection_for_interface(i)
3365
+ self.generate_interface(i)
3366
+ self.generate_property_accessors(i)
3367
+ self.generate_signal_emitters(i)
3368
+ self.generate_method_calls(i)
3369
+ self.generate_method_completers(i)
3370
+ self.generate_proxy(i)
3371
+ self.generate_skeleton(i)
3372
+ if self.generate_objmanager:
3373
+ self.generate_object()
3374
+ self.generate_object_manager_client()
3375
+ self.generate_outro()