X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=util%2Fgmime-extra.h;h=b0c8d3d84a07429a44d84c5c7f1c03780b3bee51;hb=75bdce79527571c12c5de0c630747d6262b73fbd;hp=a42e43e72c01f16824c142b786875089f8630e6b;hpb=e9b870b6923afe767a7c9938be24f5390102031a;p=notmuch diff --git a/util/gmime-extra.h b/util/gmime-extra.h index a42e43e7..b0c8d3d8 100644 --- a/util/gmime-extra.h +++ b/util/gmime-extra.h @@ -9,6 +9,14 @@ extern "C" { GMimeStream *g_mime_stream_stdout_new(void); +/* Return a GMime stream for this open file descriptor, un-gzipping if + * necessary */ +GMimeStream *g_mime_stream_gzfile_new (int fd); + +/* Return a GMime stream for this path, un-gzipping if + * necessary */ +GMimeStream *g_mime_stream_gzfile_open (const char *filename); + /** * Get last 16 hex digits of fingerprint ("keyid") */