diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-12-18 14:35:14 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-01-09 13:56:07 +0100 |
commit | 0a97c9f43718d34aacc834c60f3ced60e9ce956f (patch) | |
tree | 7a5b5975cd92862283df669f9af62005fe63baa9 /include | |
parent | 880b9016b1d751d480a282b9a8556c54701a86f4 (diff) | |
download | msitools-0a97c9f43718d34aacc834c60f3ced60e9ce956f.tar.gz msitools-0a97c9f43718d34aacc834c60f3ced60e9ce956f.tar.xz msitools-0a97c9f43718d34aacc834c60f3ced60e9ce956f.zip |
record: add set_stream() and get_stream() using GIO
Use GInputStream for record stream manipulation
Diffstat (limited to 'include')
-rw-r--r-- | include/libmsi-record.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/libmsi-record.h b/include/libmsi-record.h index 986e76e..ef0546e 100644 --- a/include/libmsi-record.h +++ b/include/libmsi-record.h @@ -20,6 +20,7 @@ #define _LIBMSI_RECORD_H #include <glib-object.h> +#include <gio/gio.h> #include "libmsi-types.h" @@ -59,10 +60,14 @@ gchar * libmsi_record_get_string (const LibmsiRecord *record, gboolean libmsi_record_load_stream (LibmsiRecord *record, guint field, const gchar *filename); -gboolean libmsi_record_save_stream (LibmsiRecord *rec, +gboolean libmsi_record_set_stream (LibmsiRecord *record, guint field, - gchar *buf, - guint *sz); + GInputStream *input, + gsize count, + GCancellable *cancellable, + GError **error); +GInputStream * libmsi_record_get_stream (LibmsiRecord *record, + guint field); G_END_DECLS |