gtk2/gtk/gtkutilsprivate.h
Christian Hergert d46c072c4d utils: add gtk_file_load_bytes() helper
This helper will load GBytes for a GFile, but try to reuse the
embedded data for a gresource to reduce the chances of copying
data to the heap.

https://bugzilla.gnome.org/show_bug.cgi?id=790270
2017-11-12 20:04:06 -08:00

22 lines
755 B
C

#ifndef __GTKUTILS_H__
#define __GTKUTILS_H__
#include <gio/gio.h>
G_BEGIN_DECLS
gboolean gtk_scan_string (const char **pos,
GString *out);
gboolean gtk_skip_space (const char **pos);
gint gtk_read_line (FILE *stream,
GString *str);
char * gtk_trim_string (const char *str);
char ** gtk_split_file_list (const char *str);
GBytes *gtk_file_load_bytes (GFile *file,
GCancellable *cancellable,
GError **error);
G_END_DECLS
#endif