Fix RFC822.Header.get_header_names returning null names

The custom GMime VAPI assumed the call to get_iter() actually returned a
new iter, but it doesn't. Fix that, update Header class style, and add
tests.
This commit is contained in:
Michael Gratton 2019-10-10 08:55:42 +11:00 committed by Michael James Gratton
parent 8cd310bea1
commit ab77067d8a
3 changed files with 34 additions and 16 deletions

View file

@ -505,7 +505,7 @@ namespace GMime {
[CCode (cname = "g_mime_header_list_get")]
public unowned string @get (string name);
[CCode (cname = "g_mime_header_list_get_iter")]
public bool get_iter (out unowned GMime.HeaderIter iter);
public bool get_iter (GMime.HeaderIter iter);
[CCode (cname = "g_mime_header_list_get_stream")]
public unowned GMime.Stream get_stream ();
[CCode (cname = "g_mime_header_list_prepend")]