summaryrefslogtreecommitdiff
path: root/mono/GMime.metadata
blob: 3002c45ab372fe333ee45370c4854f9d7ef3df54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<?xml version="1.0"?>
<metadata>
  <!-- We need to remap size_t and ssize_t -->
  <attr path="/api/namespace/*/field[@type='size_t']" name="type">guint32</attr>
  <attr path="/api/namespace/*/*/return-type[@type='size_t']" name="type">guint32</attr>
  <attr path="/api/namespace/*/*/*/parameter[@type='size_t']" name="type">guint32</attr>
  <attr path="/api/namespace/*/*/*/parameter[@type='size_t*']" name="type">guint32*</attr>

  <!--<attr path="/api/namespace/*/field[@type='ssize_t']" name="type">gint32</attr>-->
  <attr path="/api/namespace/*/*/return-type[@type='ssize_t']" name="type">gint32</attr>
  <!--<attr path="/api/namespace/*/*/*/parameter[@type='ssize_t']" name="type">gint32</attr>-->
  <!--<attr path="/api/namespace/*/*/*/parameter[@type='ssize_t*']" name="type">gint32*</attr>-->

  <!-- Global / Locale -->
  <attr path="/api/namespace/class[@name='Global']/method[@name='UserCharsets']" name="name">GetUserCharsets</attr>
  <attr path="/api/namespace/class[@name='Locale']/method[@name='Charset']" name="name">GetCharset</attr>
  <attr path="/api/namespace/class[@name='Locale']/method[@name='Language']" name="name">GetLanguage</attr>

  <!-- Callback Functions -->
  <remove-node path="/api/namespace/callback[@name='HeaderForeachFunc']"/>

  <!-- Charset -->

  <!-- Common -->
  <!-- Remove the g_mime_strcase_hash/equal functions - they don't need to be public -->
  <!--<remove-node path="/api/namespace/class[@name='Strcase']"/>-->

  <!-- Events -->
  <!-- Remove the g_mime_event* functions - they don't need to be public -->
  <remove-node path="/api/namespace/struct[@name='Event']"/>
  <remove-node path="/api/namespace/callback[@name='EventCallback']"/>

  <!-- ContentDisposition -->
  <remove-node path="/api/namespace/object[@cname='GMimeContentDisposition']/field[@cname='param_hash']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeContentDisposition']/field[@cname='params']"/>

  <!-- ContentEncoding -->
  <!--<attr path="/api/namespace/class[@name='Content']/method[@name='EncodingFromString']" name="name">ContentEncodingFromString</attr>
  <attr path="/api/namespace/class[@name='Content']/method[@name='EncodingToString']" name="name">ContentEncodingToString</attr>
  <move-node path="/api/namespace/class[@name='Content']/method[@name='ContentEncodingFromString']">/api/namespace/class[@name='Utils']</move-node>
  <move-node path="/api/namespace/class[@name='Content']/method[@name='ContentEncodingToString']">/api/namespace/class[@name='Utils']</move-node>-->
  <remove-node path="/api/namespace/class[@name='Content']"/>

  <!-- ContentType -->
  <remove-node path="/api/namespace/object[@cname='GMimeContentType']/field[@cname='param_hash']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeContentType']/field[@cname='params']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeContentType']/field[@cname='subtype']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeContentType']/field[@cname='type']"/>
  
  <!-- Certificate -->
  <attr path="/api/namespace/object[@cname='GMimeCertificate']/method[@name='GetCreated']" name="name">GetCreationDate</attr>
  <attr path="/api/namespace/object[@cname='GMimeCertificate']/method[@name='SetCreated']" name="name">SetCreationDate</attr>
  <attr path="/api/namespace/object[@cname='GMimeCertificate']/method[@name='GetExpires']" name="name">GetExpirationDate</attr>
  <attr path="/api/namespace/object[@cname='GMimeCertificate']/method[@name='SetExpires']" name="name">SetExpirationDate</attr>
  
  <!-- CertificateList -->
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/field[@cname='array']"/>
  <attr path="/api/namespace/object[@name='CertificateList']" name="name">CertificateCollection</attr>
  <!-- We're going to implement the IList interface -->
  <add-node path="/api/namespace/object[@cname='GMimeCertificateList']">
    <implements>
      <interface name="IList"/>
    </implements>
  </add-node>
  <!-- Remove methods we're going to implement manually in GMimeCertificateList.custom -->
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='Add']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='Clear']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='Contains']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='IndexOf']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='Insert']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='Length']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='Remove']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='RemoveAt']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='GetCertificate']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeCertificateList']/method[@name='SetCertificate']"/>

  <!-- Signature -->
  <attr path="/api/namespace/object[@cname='GMimeSignature']/method[@name='GetCreated']" name="name">GetCreationDate</attr>
  <attr path="/api/namespace/object[@cname='GMimeSignature']/method[@name='SetCreated']" name="name">SetCreationDate</attr>
  <attr path="/api/namespace/object[@cname='GMimeSignature']/method[@name='GetExpires']" name="name">GetExpirationDate</attr>
  <attr path="/api/namespace/object[@cname='GMimeSignature']/method[@name='SetExpires']" name="name">SetExpirationDate</attr>

  <!-- SignatureList -->
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/field[@cname='array']"/>
  <attr path="/api/namespace/object[@name='SignatureList']" name="name">SignatureCollection</attr>
  <!-- We're going to implement the IList interface -->
  <add-node path="/api/namespace/object[@cname='GMimeSignatureList']">
    <implements>
      <interface name="IList"/>
    </implements>
  </add-node>
  <!-- Remove methods we're going to implement manually in GMimeSignatureList.custom -->
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='Add']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='Clear']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='Contains']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='IndexOf']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='Insert']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='Length']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='Remove']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='RemoveAt']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='GetSignature']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeSignatureList']/method[@name='SetSignature']"/>
  
  <!-- CryptoContext -->

  <!-- DataWrapper -->
  <attr path="/api/namespace/object[@cname='GMimeDataWrapper']/method[@name='GetStream']" name="name">GetGMimeStream</attr>
  <attr path="/api/namespace/object[@cname='GMimeDataWrapper']/method[@name='SetStream']" name="name">SetGMimeStream</attr>

  <!-- Encoding -->
  <attr path="/api/namespace/struct[@name='Encoding']/*/*/parameter[@name='inbuf']" name="type">const-guint8*</attr>
  <attr path="/api/namespace/struct[@name='Encoding']/*/*/parameter[@name='inbuf']" name="array">true</attr>
  <attr path="/api/namespace/struct[@name='Encoding']/*/*/parameter[@name='inlen']" name="name">n_inbuf</attr>
  <attr path="/api/namespace/struct[@name='Encoding']/*/*/parameter[@name='uubuf']" name="type">guint8*</attr>
  <attr path="/api/namespace/struct[@name='Encoding']/*/*/parameter[@name='uubuf']" name="array">true</attr>
  <attr path="/api/namespace/struct[@name='Encoding']/*/*/parameter[@name='outbuf']" name="type">guint8*</attr>
  <attr path="/api/namespace/struct[@name='Encoding']/*/*/parameter[@name='outbuf']" name="array">true</attr>
  <attr path="/api/namespace/struct[@name='Encoding']/*/*/parameter[@name='state']" name="pass_as">ref</attr>
  <attr path="/api/namespace/struct[@name='Encoding']/*/*/parameter[@name='save']" name="pass_as">ref</attr>
  <attr path="/api/namespace/class[@name='Yencode']/method[@cname='g_mime_yencode_close']" name="name">yEncodeClose</attr>
  <attr path="/api/namespace/class[@name='Yencode']/method[@cname='g_mime_yencode_step']" name="name">yEncodeStep</attr>
  <attr path="/api/namespace/class[@name='Global']/method[@cname='g_mime_ydecode_step']" name="name">yDecodeStep</attr>
  <attr path="/api/namespace/class[@name='Yencode']/*/*/parameter[@name='inbuf']" name="type">const-guint8*</attr>
  <attr path="/api/namespace/class[@name='Yencode']/*/*/parameter[@name='inbuf']" name="array">true</attr>
  <attr path="/api/namespace/class[@name='Yencode']/*/*/parameter[@name='inlen']" name="name">n_inbuf</attr>
  <attr path="/api/namespace/class[@name='Yencode']/*/*/parameter[@name='outbuf']" name="type">guint8*</attr>
  <attr path="/api/namespace/class[@name='Yencode']/*/*/parameter[@name='outbuf']" name="array">true</attr>
  <attr path="/api/namespace/class[@name='Yencode']/*/*/parameter[@name='state']" name="pass_as">ref</attr>
  <attr path="/api/namespace/class[@name='Yencode']/*/*/parameter[@name='pcrc']" name="pass_as">ref</attr>
  <attr path="/api/namespace/class[@name='Yencode']/*/*/parameter[@name='crc']" name="pass_as">ref</attr>
  <attr path="/api/namespace/class[@name='Global']/*/*/parameter[@name='inbuf']" name="type">const-guint8*</attr>
  <attr path="/api/namespace/class[@name='Global']/*/*/parameter[@name='inbuf']" name="array">true</attr>
  <attr path="/api/namespace/class[@name='Global']/*/*/parameter[@name='inlen']" name="name">n_inbuf</attr>
  <attr path="/api/namespace/class[@name='Global']/*/*/parameter[@name='outbuf']" name="type">guint8*</attr>
  <attr path="/api/namespace/class[@name='Global']/*/*/parameter[@name='outbuf']" name="array">true</attr>
  <attr path="/api/namespace/class[@name='Global']/*/*/parameter[@name='state']" name="pass_as">ref</attr>
  <attr path="/api/namespace/class[@name='Global']/*/*/parameter[@name='pcrc']" name="pass_as">ref</attr>
  <attr path="/api/namespace/class[@name='Global']/*/*/parameter[@name='crc']" name="pass_as">ref</attr>
  <move-node path="/api/namespace/class[@name='Yencode']/method[@name='yEncodeClose']">/api/namespace/struct[@name='Encoding']</move-node>
  <move-node path="/api/namespace/class[@name='Yencode']/method[@name='yEncodeStep']">/api/namespace/struct[@name='Encoding']</move-node>
  <move-node path="/api/namespace/class[@name='Global']/method[@name='yDecodeStep']">/api/namespace/struct[@name='Encoding']</move-node>

  <!-- Enumerations -->
  <attr path="/api/namespace/enum/member[@cname='GMIME_ENCODING_CONSTRAINT_7BIT']" name="name">SevenBit</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_ENCODING_CONSTRAINT_8BIT']" name="name">EightBit</attr>

  <attr path="/api/namespace/enum/member[@cname='GMIME_CONTENT_ENCODING_DEFAULT']" name="name">Default</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_CONTENT_ENCODING_7BIT']" name="name">SevenBit</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_CONTENT_ENCODING_8BIT']" name="name">EightBit</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_CONTENT_ENCODING_BINARY']" name="name">Binary</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_CONTENT_ENCODING_BASE64']" name="name">Base64</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_CONTENT_ENCODING_QUOTEDPRINTABLE']" name="name">QuotedPrintable</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_CONTENT_ENCODING_UUENCODE']" name="name">UuEncode</attr>

  <attr path="/api/namespace/enum/member[@cname='GMIME_STREAM_SEEK_SET']" name="value">0</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_STREAM_SEEK_CUR']" name="value">1</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_STREAM_SEEK_END']" name="value">2</attr>

  <attr path="/api/namespace/enum/member[@cname='GMIME_SIGNATURE_ERROR_NONE']" name="name">None</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_SIGNATURE_ERROR_EXPSIG']" name="name">ExpiredSignature</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_SIGNATURE_ERROR_NO_PUBKEY']" name="name">NoPublicKey</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_SIGNATURE_ERROR_EXPKEYSIG']" name="name">ExpiredSignatureKey</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_SIGNATURE_ERROR_REVKEYSIG']" name="name">RevokedSignatureKey</attr>
  <attr path="/api/namespace/enum/member[@cname='GMIME_SIGNATURE_ERROR_UNSUPP_ALGO']" name="name">UnsupportedAlgorithm</attr>

  <!-- Filter -->
  <attr path="/api/namespace/object[@cname='GMimeFilter']" name="abstract">1</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/method[@cname='g_mime_filter_filter']" name="name">ApplyFilter</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/*/*/parameter[@name='inbuf']" name="type">const-guint8*</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/*/*/parameter[@name='inbuf']" name="array">true</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/*/*/parameter[@name='inlen']" name="name">n_inbuf</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/*/*/parameter[@name='outbuf']" name="type">guint8**</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/*/*/parameter[@name='outbuf']" name="array">true</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/method[@name='Backup']/*/parameter[@name='data']" name="name">buf</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/method[@name='Backup']/*/parameter[@name='buf']" name="type">const-guint8*</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/method[@name='Backup']/*/parameter[@name='buf']" name="array">true</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilter']/method[@name='Backup']/*/parameter[@name='length']" name="name">n_buf</attr>

  <!-- FilterBest -->
  <attr path="/api/namespace/object[@cname='GMimeFilterBest']/method[@cname='g_mime_filter_best_charset']" name="name">GetBestCharset</attr>
  <attr path="/api/namespace/object[@cname='GMimeFilterBest']/method[@cname='g_mime_filter_best_encoding']" name="name">GetBestEncoding</attr>

  <!-- GpgContext -->
  
  <!-- Header -->
  <remove-node path="/api/namespace/struct[@cname='GMimeHeader']"/>

  <!-- HeaderList -->
  <!-- We're going to implement the IEnumerable interface -->
  <add-node path="/api/namespace/object[@cname='GMimeHeaderList']">
    <implements>
      <interface name="IEnumerable"/>
    </implements>
  </add-node>
  <remove-node path="/api/namespace/struct[@cname='GMimeHeaderList']/method[@cname='g_mime_header_list_foreach']"/>
  <attr path="/api/namespace/struct[@cname='GMimeHeaderList']/method[@name='SetStream']" name="hidden">true</attr>
  <attr path="/api/namespace/struct[@cname='GMimeHeaderList']/method[@name='GetStream']" name="hidden">true</attr>
  <remove-node path="/api/namespace/struct[@cname='GMimeHeaderList']/method[@name='Get']"/>
  <remove-node path="/api/namespace/struct[@cname='GMimeHeaderList']/method[@name='Set']"/>
  <remove-node path="/api/namespace/struct[@cname='GMimeHeaderList']/method[@name='GetIter']"/>
  
  <!-- HeaderIter -->
  <!-- This should really be made to be internal, but I don't know how to do that... -->
  <attr path="/api/namespace/struct[@cname='GMimeHeaderIter']/method[@name='SetValue']/return-type" name="type">void</attr>
  <attr path="/api/namespace/struct[@cname='GMimeHeaderIter']/method[@name='First']" name="name">MoveFirst</attr>
  <attr path="/api/namespace/struct[@cname='GMimeHeaderIter']/method[@name='Last']" name="name">MoveLast</attr>
  <attr path="/api/namespace/struct[@cname='GMimeHeaderIter']/method[@name='Next']" name="name">MoveNext</attr>
  <attr path="/api/namespace/struct[@cname='GMimeHeaderIter']/method[@name='Prev']" name="name">MovePrev</attr>
  <attr path="/api/namespace/struct[@cname='GMimeHeaderIter']" name="opaque">true</attr>
  <remove-node path="/api/namespace/struct[@cname='GMimeHeaderIter']/field[@cname='hdrlist']"/>
  <remove-node path="/api/namespace/struct[@cname='GMimeHeaderIter']/field[@cname='version']"/>
  <remove-node path="/api/namespace/struct[@cname='GMimeHeaderIter']/field[@cname='cursor']"/>

  <!-- iconv -->
  
  <!-- iconv-utils -->

  <!-- InternetAddress -->
  <attr path="/api/namespace/object[@cname='InternetAddress']" name="abstract">1</attr>
  <remove-node path="/api/namespace/object[@cname='InternetAddress']/field[@cname='priv']"/>
  
  <!-- InternetAddressGroup -->
  <remove-node path="/api/namespace/object[@cname='InternetAddressGroup']/method[@name='AddMember']"/>
  
  <!-- InternetAddressMailbox -->
  <attr path="/api/namespace/object[@cname='InternetAddressMailbox']/method[@name='GetAddr']" name="name">GetAddress</attr>
  <attr path="/api/namespace/object[@cname='InternetAddressMailbox']/method[@name='SetAddr']" name="name">SetAddress</attr>
  
  <!-- InternetAddressList -->
  <!-- Remove internal methods/fields/signals -->
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/field[@cname='array']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/field[@cname='priv']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='Writer']"/>
  <!-- We're going to implement the IList interface -->
  <add-node path="/api/namespace/object[@cname='InternetAddressList']">
    <implements>
      <interface name="IList"/>
    </implements>
  </add-node>
  <!-- Remove methods we're going to implement manually in InternetAddressList.custom -->
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='Add']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='Clear']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='Contains']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='IndexOf']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='Insert']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='Length']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='ParseString']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='Remove']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='RemoveAt']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='GetAddress']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='SetAddress']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='ToString']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='Prepend']"/>
  <remove-node path="/api/namespace/object[@cname='InternetAddressList']/method[@name='Append']"/>
  
  <!-- Message -->
  <attr path="/api/namespace/object[@cname='GMimeMessage']/method[@name='GetAllRecipients']/return-type" name="owned">true</attr>
  <!-- We implement these properties by hand, hide them. -->
  <remove-node path="/api/namespace/object[@cname='GMimeMessage']/method[@cname='g_mime_message_get_recipients']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMessage']/method[@cname='g_mime_message_get_date']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMessage']/method[@cname='g_mime_message_set_date']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMessage']/method[@cname='g_mime_message_foreach']"/>

  <!-- MessagePart -->

  <!-- MessagePartial -->
  <add-node path="/api/namespace/object[@cname='GMimeMessagePartial']/method[@name='ReconstructMessage']/parameters"><parameter name="partials" type="GMimeMessagePartial**" array="true"/></add-node>
  <attr path="/api/namespace/object[@cname='GMimeMessagePartial']/method[@name='ReconstructMessage']" name="shared">true</attr>
  <attr path="/api/namespace/object[@cname='GMimeMessagePartial']/method[@name='ReconstructMessage']/*/parameter[@name='num']" name="name">n_partials</attr>

  <!-- Multipart -->
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='Foreach']"/>
  <!-- We're going to implement the IList interface -->
  <add-node path="/api/namespace/object[@cname='GMimeMultipart']">
    <implements>
      <interface name="IList"/>
    </implements>
  </add-node>
  <!-- Remove methods we're going to implement manually in GMimeMultipart.custom -->
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='Add']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='Clear']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='GetCount']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='Contains']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='IndexOf']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='Insert']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='Remove']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='RemoveAt']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='Replace']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeMultipart']/method[@name='GetPart']"/>

  <!-- MultipartEncrypted -->
  <attr path="/api/namespace/object[@cname='GMimeMultipartEncrypted']/method[@name='Decrypt']/*/parameter[@name='result']" name="pass_as">out</attr>
  
  <!-- MultipartSigned -->
  
  <!-- Object -->
  <attr path="/api/namespace/object[@cname='GMimeObject']" name="name">Entity</attr>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/constructor[@cname='g_mime_object_new']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/constructor[@cname='g_mime_object_new_type']"/>
  <!-- Clean up some unnecessary helper methods from GMimeObject -->
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_get_disposition']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_set_disposition']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_get_content_type_parameter']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_set_content_type_parameter']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_get_content_disposition_parameter']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_set_content_disposition_parameter']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_prepend_header']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_append_header']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_remove_header']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_get_header']"/>
  <remove-node path="/api/namespace/object[@cname='GMimeObject']/method[@cname='g_mime_object_set_header']"/>

  <!-- Param -->
  <remove-node path="/api/namespace/struct[@cname='GMimeParam']/field[@cname='value']"/>
  <remove-node path="/api/namespace/struct[@cname='GMimeParam']/field[@cname='name']"/>
  <remove-node path="/api/namespace/struct[@cname='GMimeParam']/field[@cname='next']"/>

  <!-- Parser -->
  <attr path="/api/namespace/object[@cname='GMimeParser']/method[@name='ConstructPart']/return-type" name="owned">true</attr>
  <attr path="/api/namespace/object[@cname='GMimeParser']/method[@name='ConstructMessage']/return-type" name="owned">true</attr>

  <!-- Parse Utils -->
  <!-- Remove some utility parser functions: decode_word, decode_lwsp, etc -->
  <!--<remove-node path="/api/namespace/class[@name='Global']/method[@name='ParseContentType']"/>-->
  <!--<remove-node path="/api/namespace/class[@name='Decode']"/>-->

  <!-- Part -->
  
  <!-- PartIter -->
  <remove-node path="/api/namespace/struct[@name='PartIter']"/>

  <!-- References -->
  <attr path="/api/namespace/struct[@name='References']" name="opaque">true</attr>
  <attr path="/api/namespace/struct[@name='References']/method[@name='Decode']" name="name">Parse</attr>
  <remove-node path="/api/namespace/struct[@name='References']/method[@name='Clear']"/>

  <!-- Stream IOVectors -->
  <remove-node path="/api/namespace/object[@cname='GMimeStream']/method[@cname='g_mime_stream_writev']"/>
  <remove-node path="/api/namespace/struct[@cname='GMimeStreamIOVector']"/>

  <!-- Stream -->
  <attr path="/api/namespace/object[@cname='GMimeStream']" name="abstract">1</attr>
  <attr path="/api/namespace/object[@cname='GMimeStream']/method[@name='Length']" name="name">GetLength</attr>
  <attr path="/api/namespace/object[@cname='GMimeStream']/method[@name='Read']/*/parameter[@name='buf']" name="type">const-guint8*</attr>
  <attr path="/api/namespace/object[@cname='GMimeStream']/method[@name='Read']/*/parameter[@name='buf']" name="array">true</attr>
  <attr path="/api/namespace/object[@cname='GMimeStream']/method[@name='Write']/*/parameter[@name='buf']" name="type">const-guint8*</attr>
  <attr path="/api/namespace/object[@cname='GMimeStream']/method[@name='Write']/*/parameter[@name='buf']" name="array">true</attr>
  <attr path="/api/namespace/object[@cname='GMimeStream']/method[@name='WriteString']" name="name">Write</attr>

  <!-- StreamFile -->
  <attr path="/api/namespace/object[@cname='GMimeStreamFile']" name="hidden">true</attr>

  <!-- StreamMem -->
  <attr path="/api/namespace/object[@cname='GMimeStreamMem']/constructor[@cname='g_mime_stream_mem_new_with_byte_array']" name="hidden">true</attr>

  <!-- Utils -->
  <remove-node path="/api/namespace/class[@name='Utils']/method[@cname='g_mime_utils_decode_8bit']"/>
  <remove-node path="/api/namespace/class[@name='Utils']/method[@cname='g_mime_utils_text_is_8bit']"/>
  <attr path="/api/namespace/class[@name='Utils']/method[@cname='g_mime_utils_best_encoding']/*/parameter[@name='text']" name="type">const-guint8*</attr>
  <attr path="/api/namespace/class[@name='Utils']/method[@cname='g_mime_utils_best_encoding']/*/parameter[@name='text']" name="array">true</attr>
  <attr path="/api/namespace/class[@name='Utils']/method[@cname='g_mime_utils_best_encoding']/*/parameter[@name='len']" name="name">n_text</attr>

  <!-- Yencode -->
  <!-- We've already moved the encoder/decoder functions into Encoding... -->
  <attr path="/api/namespace/class[@name='Yencode']" name="hidden">true</attr>

</metadata>