diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-11-01 18:04:00 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-11-25 01:29:44 +0800 |
commit | 6ea436c8b313974d94eb9fe97974edcf4f47e46d (patch) | |
tree | a3712e0599afc03b44fa49d4b0614278b3f68257 /libempathy-gtk/empathy-ui-utils.h | |
parent | b15f926089b6b718004467c8bb2ddf6f6cd3a9ac (diff) | |
download | gsoc2013-empathy-6ea436c8b313974d94eb9fe97974edcf4f47e46d.tar gsoc2013-empathy-6ea436c8b313974d94eb9fe97974edcf4f47e46d.tar.gz gsoc2013-empathy-6ea436c8b313974d94eb9fe97974edcf4f47e46d.tar.bz2 gsoc2013-empathy-6ea436c8b313974d94eb9fe97974edcf4f47e46d.tar.lz gsoc2013-empathy-6ea436c8b313974d94eb9fe97974edcf4f47e46d.tar.xz gsoc2013-empathy-6ea436c8b313974d94eb9fe97974edcf4f47e46d.tar.zst gsoc2013-empathy-6ea436c8b313974d94eb9fe97974edcf4f47e46d.zip |
Create API for generic string parser
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.h')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.h b/libempathy-gtk/empathy-ui-utils.h index 7bec0884e..58960c305 100644 --- a/libempathy-gtk/empathy-ui-utils.h +++ b/libempathy-gtk/empathy-ui-utils.h @@ -117,6 +117,18 @@ gchar * empathy_make_absolute_url (const gchar *url); gchar * empathy_make_absolute_url_len (const gchar *url, guint len); +/* String parser */ +typedef void (*EmpathyStringParser) (GString *string, + const gchar *text, + gssize len, + gpointer user_data); + +void +empathy_string_parser_substr (GString *string, + const gchar *text, + gssize len, + EmpathyStringParser *parsers); + G_END_DECLS #endif /* __EMPATHY_UI_UTILS_H__ */ |