summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-11 22:20:14 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-03-11 22:20:14 +0000
commit32676b06198998a09c9a38097874ce026d85e3c6 (patch)
tree1b9d0df282391f6871c2da0724ce78b1c50f09fc /src/util.h
parent3ff2af37a446a0bc521a1a8eb1562e075c70d04a (diff)
filter by directory and some filter fixes
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/util.h b/src/util.h
index 6d9e62c..a3b2053 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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_ */