diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -22,6 +22,7 @@ #ifndef UTIL_H_ #define UTIL_H_ +#include <gconf/gconf-client.h> #include <glib-object.h> #include <json-glib/json-glib.h> @@ -37,7 +38,13 @@ #define GIGABYTE_FACTOR ( 1024.0 * 1024.0 * 1024.0 ) GRegex *trg_uri_host_regex_new(void); -gchar *trg_uri_host_extract(GRegex *rx, const gchar *uri); +gchar *trg_gregex_get_first(GRegex * rx, const gchar * uri); +gboolean gconf_client_get_bool_or_true(GConfClient * gconf, gchar * key); + +void response_unref(JsonObject * response); +const gchar *make_error_message(JsonObject * response, int status); +void trg_error_dialog(GtkWindow * parent, int status, + JsonObject * response); char *tr_strltime_long(char *buf, gint64 seconds, size_t buflen); char *tr_strltime_short(char *buf, gint64 seconds, size_t buflen); @@ -56,9 +63,5 @@ size_t tr_strlcpy(char *dst, const void *src, size_t siz); double tr_truncd(double x, int decimal_places); int evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap); -void response_unref(JsonObject * response); -const gchar *make_error_message(JsonObject * response, int status); -void trg_error_dialog(GtkWindow * parent, int status, - JsonObject * response); #endif /* UTIL_H_ */ |