Skip to content

Commit

Permalink
GI annotation updates
Browse files Browse the repository at this point in the history
Various fixes to help at least vala bindings, if not others.

Patch originally by Rico Tzschichholz <ricotz@ubuntu.com>
  • Loading branch information
mjog committed Apr 19, 2021
1 parent 5e6ccbf commit 1f5a319
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions gmime/GMime-3.0.metadata
Expand Up @@ -30,3 +30,7 @@ Object
.write_to_stream#virtual_method name="write_to_stream_vfunc"
FilterBest
.charset#method name="get_charset"

// Reparenting
Stream
.buffer_* parent="GMime.StreamBuffer" name="buffer_(.+)"
2 changes: 1 addition & 1 deletion gmime/gmime-stream-buffer.c
Expand Up @@ -518,7 +518,7 @@ g_mime_stream_buffer_new (GMimeStream *source, GMimeStreamBufferMode mode)
/**
* g_mime_stream_buffer_gets:
* @stream: stream
* @buf: line buffer
* @buf: (array length=max) (element-type guint8): line buffer
* @max: max length of a line
*
* Reads in at most one less than @max characters from @stream and
Expand Down
4 changes: 2 additions & 2 deletions gmime/gmime-stream.c
Expand Up @@ -190,7 +190,7 @@ stream_write (GMimeStream *stream, const char *buf, size_t len)
/**
* g_mime_stream_write:
* @stream: a #GMimeStream
* @buf: buffer
* @buf: (array length=len) (element-type guint8): buffer
* @len: buffer length
*
* Attempts to write up to @len bytes of @buf to @stream.
Expand Down Expand Up @@ -573,7 +573,7 @@ g_mime_stream_write_to_stream (GMimeStream *src, GMimeStream *dest)
/**
* g_mime_stream_writev:
* @stream: a #GMimeStream
* @vector: a #GMimeStreamIOVector
* @vector: (array length=count): a #GMimeStreamIOVector
* @count: number of vector elements
*
* Writes at most @count blocks described by @vector to @stream.
Expand Down

0 comments on commit 1f5a319

Please sign in to comment.