share/collection.js: Keep visibility when redrawing graphs.
[collection4.git] / src / filesystem.h
index 9569bc3..fc2165f 100644 (file)
@@ -1,3 +1,26 @@
+/**
+ * collection4 - filesystem.h
+ * Copyright (C) 2010  Florian octo Forster
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA  02110-1301  USA
+ *
+ * Authors:
+ *   Florian octo Forster <ff at octo.it>
+ **/
+
 #ifndef FILESYSTEM_G
 #define FILESYSTEM_G 1
 
@@ -7,6 +30,13 @@
 
 typedef int (*fs_ident_cb_t) (const graph_ident_t *ident, void *user_data);
 
+int fs_foreach_dir (const char *base_dir,
+    int (*callback) (const char *base_dir, const char *entry, void *),
+    void *user_data);
+int fs_foreach_file (const char *base_dir,
+    int (*callback) (const char *base_dir, const char *entry, void *),
+    void *user_data);
+
 int fs_scan (fs_ident_cb_t callback, void *user_data);
 
 #endif /* FILESYSTEM_G */