diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-05-03 15:41:42 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-05-03 15:41:42 +0000 |
commit | 61548a46c286f2d3112cde38882ef4b0c6f0bed7 (patch) | |
tree | 4150c5b42e451cf2831e459f4eedcbbe22217fc5 /eglib/gmain.h | |
parent | d370964fbe6a9e32837037dcf193a216a0a75077 (diff) |
Implement eglib versions of needed GString functions
Diffstat (limited to 'eglib/gmain.h')
-rw-r--r-- | eglib/gmain.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/eglib/gmain.h b/eglib/gmain.h index 0546421d..ce9bdce5 100644 --- a/eglib/gmain.h +++ b/eglib/gmain.h @@ -200,6 +200,7 @@ gpointer g_malloc(gulong n_bytes); gpointer g_malloc0(gulong n_bytes); gpointer g_try_malloc(gulong n_bytes); gpointer g_try_malloc0(gulong n_bytes); +gpointer g_realloc(gpointer mem, gulong n_bytes); void g_free(gpointer mem); @@ -243,4 +244,19 @@ gboolean g_key_file_get_boolean(GKeyFile *key_file, const gchar *key, GError **error); + +/* GString */ + +typedef struct { + gchar *str; + gsize len; + gsize allocated_len; +} GString; + +GString *g_string_new(const gchar *init); + +void g_string_append_printf(GString *string, const gchar *format, ...); + +gchar *g_string_free(GString *string, gboolean free_segment); + #endif /* __GMAIN_H */ |