summaryrefslogtreecommitdiff
path: root/common/vfsutils.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-11-28 13:11:51 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-11-28 13:11:51 +0100
commit9382f127ccebdd59917c97c61d008ed0e127cd75 (patch)
tree0a48c8296199b343c76ef532eef014f908bc2e4d /common/vfsutils.h
parent70eeaa4ec712895539ca6ecd60a42b93ec9b0904 (diff)
downloadtuxcmd-modules-0.6.72.tar.xz
Engine and VFS API cleanupv0.6.72
Also enable symlink resolving by default.
Diffstat (limited to 'common/vfsutils.h')
-rw-r--r--common/vfsutils.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/common/vfsutils.h b/common/vfsutils.h
index 5dd61f2..404b313 100644
--- a/common/vfsutils.h
+++ b/common/vfsutils.h
@@ -1,5 +1,5 @@
-/* Tux Commander VFS: String utilities
- * Copyright (C) 2007 Tomas Bzatek <tbzatek@users.sourceforge.net>
+/* Tux Commander VFS: VFS utilities
+ * Copyright (C) 2007-2009 Tomas Bzatek <tbzatek@users.sourceforge.net>
* Check for updates on tuxcmd.sourceforge.net
*
* This program is free software; you can redistribute it and/or modify
@@ -20,20 +20,28 @@
#ifndef __VFSUTILS_H__
#define __VFSUTILS_H__
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
-#include <stdio.h>
-#include <string.h>
#include <glib.h>
-#include "vfs_types.h"
+#include "tuxcmd-vfs.h"
+
+void copy_vfs_item (struct TVFSItem *src, struct TVFSItem *dst);
+void free_vfs_item (struct TVFSItem *item);
-void copy_vfs_item(struct TVFSItem *src, struct TVFSItem *dst);
-void free_vfs_item(struct TVFSItem *item);
+/* creates a placeholder item */
+struct TVFSItem * create_placeholder_item (const char *name, enum TVFSItemType item_type);
-int compare_two_same_files(const char *Path1, const char *Path2);
+gboolean compare_two_same_files (const char *path1, const char *path2);
+#ifdef __cplusplus
+ }
+#endif
#endif /* __VFSUTILS_H__ */