summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2010-08-06 13:51:19 +0200
committerportix <portix@gmx.net>2010-08-06 13:51:19 +0200
commit4ab8cde2f53b42735ce5c7fbbb1e211ebe012858 (patch)
tree32674f82859c1fd3f68893e986b08298603c4cc9 /src/util.h
parent6fdb583b82044271696153dabd3644f34ea8be2b (diff)
downloaddwb-4ab8cde2f53b42735ce5c7fbbb1e211ebe012858.zip
cleaning
--HG-- branch : entry_per_view
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h57
1 files changed, 34 insertions, 23 deletions
diff --git a/src/util.h b/src/util.h
index 48f06615..fad1544b 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,37 +1,48 @@
#ifndef UTIL_H
#define UTIL_H
-void dwb_cut_text(gchar *, gint, gint);
-gchar * dwb_build_path(void);
-gboolean dwb_ishex(const gchar *string);
+// strings
+gchar * dwb_util_string_replace(const gchar *haystack, const gchar *needle, const gchar *replacemant);
+void dwb_util_cut_text(gchar *, gint, gint);
+
+gboolean dwb_util_is_hex(const gchar *string);
+int dwb_util_test_connect(const char *uri);
+
+// keys
gchar * dwb_modmask_to_string(guint );
-gchar * dwb_arg_to_char(Arg *, DwbType );
-gchar * dwb_get_data_dir(const gchar *);
-gboolean dwb_true(void);
-gboolean dwb_false(void);
-gchar * dwb_return(const gchar *);
-GHashTable * dwb_get_default_settings(void);
-Arg * dwb_char_to_arg(gchar *, DwbType );
-gchar * dwb_keyval_to_char(guint );
-gint dwb_keymap_sort_first(KeyMap *, KeyMap *);
-gint dwb_keymap_sort_second(KeyMap *, KeyMap *);
-gint dwb_web_settings_sort_second(WebSettings *, WebSettings *);
-gint dwb_web_settings_sort_first(WebSettings *, WebSettings *);
+gchar * dwb_util_keyval_to_char(guint );
-void dwb_get_directory_content(GString **, const gchar *);
-GList * dwb_get_directory_entries(const gchar *path, const gchar *);
+// arg
+gchar * dwb_util_arg_to_char(Arg *, DwbType );
+Arg * dwb_util_char_to_arg(gchar *, DwbType );
-gchar * dwb_get_file_content(const gchar *);
-void dwb_set_file_content(const gchar *, const gchar *);
+// sort
+gint dwb_util_keymap_sort_first(KeyMap *, KeyMap *);
+gint dwb_util_keymap_sort_second(KeyMap *, KeyMap *);
+gint dwb_util_web_settings_sort_second(WebSettings *, WebSettings *);
+gint dwb_util_web_settings_sort_first(WebSettings *, WebSettings *);
+// files
+void dwb_util_get_directory_content(GString **, const gchar *);
+GList * dwb_util_get_directory_entries(const gchar *path, const gchar *);
+gchar * dwb_util_get_file_content(const gchar *);
+void dwb_util_set_file_content(const gchar *, const gchar *);
+gchar * dwb_util_build_path(void);
+gchar * dwb_util_get_data_dir(const gchar *);
+
+// navigation
Navigation * dwb_navigation_new_from_line(const gchar *);
Navigation * dwb_navigation_new(const gchar *, const gchar *);
void dwb_navigation_free(Navigation *);
-void dwb_quickmark_free(Quickmark *);
-Quickmark * dwb_quickmark_new(const gchar *, const gchar *, const gchar *);
-Quickmark * dwb_quickmark_new_from_line(const gchar *);
-gchar * dwb_string_replace(const gchar *haystack, const gchar *needle, const gchar *replacemant);
+// quickmarks
+void dwb_com_quickmark_free(Quickmark *);
+Quickmark * dwb_com_quickmark_new(const gchar *, const gchar *, const gchar *);
+Quickmark * dwb_com_quickmark_new_from_line(const gchar *);
+// useless
+gboolean dwb_true(void);
+gboolean dwb_false(void);
+gchar * dwb_return(const gchar *);
#endif