]> git.street.me.uk Git - andy/viking.git/blobdiff - src/util.h
Functions to convert potentially relative filenames to absolute filenames.
[andy/viking.git] / src / util.h
index 4c420c88c7d911d0634fd2393cc36963bd2c3dcf..ab1bf7dbb4367b58a6b1b0bd47e35dcb0ab6b363 100644 (file)
@@ -29,9 +29,7 @@
 
 G_BEGIN_DECLS
 
-gchar *uri_escape(gchar *str);
-
-GList * str_array_to_glist(gchar* data[]);
+guint util_get_number_of_cpus (void);
 
 gboolean split_string_from_file_on_equals ( const gchar *buf, gchar **key, gchar **val );
 
@@ -63,6 +61,14 @@ gchar *util_str_remove_chars(gchar *string, const gchar *chars);
 #define foreach_str(char_ptr, string) \
        for (char_ptr = string; *char_ptr; char_ptr++)
 
+int util_remove ( const gchar *filename );
+
+gchar* util_write_tmp_file_from_bytes ( const void *buffer, gsize count );
+
+gchar* util_make_absolute_filename ( const gchar *filename, const gchar *dirpath );
+
+void util_make_absolute_filenames ( GList *filenames, const gchar *dirpath );
+
 G_END_DECLS
 
 #endif