aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_fs_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-15 11:59:08 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-15 11:59:08 +0000
commit943110ad52014e30c1ea29b0c68166149902ab85 (patch)
treedfaa498c6f31af54ae86d31ad56ddadbfb73835c /src/include/gnunet_fs_service.h
parent72724deec7f8d42fb33d02034bd24cd9e95eac7a (diff)
downloadgnunet-943110ad52014e30c1ea29b0c68166149902ab85.tar.gz
gnunet-943110ad52014e30c1ea29b0c68166149902ab85.zip
-LRN: harmonize dirmetascanner, plus fixing compile errors on GNU
Diffstat (limited to 'src/include/gnunet_fs_service.h')
-rw-r--r--src/include/gnunet_fs_service.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h
index ec353de8e..48fef170b 100644
--- a/src/include/gnunet_fs_service.h
+++ b/src/include/gnunet_fs_service.h
@@ -2692,7 +2692,7 @@ GNUNET_FS_directory_builder_finish (struct GNUNET_FS_DirectoryBuilder *bld,
2692 2692
2693/* ******************** DirScanner API *********************** */ 2693/* ******************** DirScanner API *********************** */
2694 2694
2695enum GNUNET_DirScannerProgressUpdateReason 2695enum GNUNET_FS_DirScannerProgressUpdateReason
2696{ 2696{
2697 GNUNET_DIR_SCANNER_FIRST = 0, 2697 GNUNET_DIR_SCANNER_FIRST = 0,
2698 GNUNET_DIR_SCANNER_NEW_FILE = 1, 2698 GNUNET_DIR_SCANNER_NEW_FILE = 1,
@@ -2707,40 +2707,40 @@ enum GNUNET_DirScannerProgressUpdateReason
2707 2707
2708typedef int (* GNUNET_FS_DirScannerProgressCallback) ( 2708typedef int (* GNUNET_FS_DirScannerProgressCallback) (
2709 void *cls, struct GNUNET_FS_DirScanner *ds, const char *filename, 2709 void *cls, struct GNUNET_FS_DirScanner *ds, const char *filename,
2710 char is_directory, enum GNUNET_DirScannerProgressUpdateReason reason); 2710 char is_directory, enum GNUNET_FS_DirScannerProgressUpdateReason reason);
2711 2711
2712/** 2712/**
2713 * A node of a directory tree (produced by dirscanner) 2713 * A node of a directory tree (produced by dirscanner)
2714 */ 2714 */
2715struct ShareTreeItem 2715struct GNUNET_FS_ShareTreeItem
2716{ 2716{
2717 /** 2717 /**
2718 * This is a doubly-linked list 2718 * This is a doubly-linked list
2719 */ 2719 */
2720 struct ShareTreeItem *prev; 2720 struct GNUNET_FS_ShareTreeItem *prev;
2721 2721
2722 /** 2722 /**
2723 * This is a doubly-linked list 2723 * This is a doubly-linked list
2724 */ 2724 */
2725 struct ShareTreeItem *next; 2725 struct GNUNET_FS_ShareTreeItem *next;
2726 2726
2727 /** 2727 /**
2728 * This is a doubly-linked tree 2728 * This is a doubly-linked tree
2729 * NULL for top-level entries. 2729 * NULL for top-level entries.
2730 */ 2730 */
2731 struct ShareTreeItem *parent; 2731 struct GNUNET_FS_ShareTreeItem *parent;
2732 2732
2733 /** 2733 /**
2734 * This is a doubly-linked tree 2734 * This is a doubly-linked tree
2735 * NULL for files and empty directories 2735 * NULL for files and empty directories
2736 */ 2736 */
2737 struct ShareTreeItem *children_head; 2737 struct GNUNET_FS_ShareTreeItem *children_head;
2738 2738
2739 /** 2739 /**
2740 * This is a doubly-linked tree 2740 * This is a doubly-linked tree
2741 * NULL for files and empty directories 2741 * NULL for files and empty directories
2742 */ 2742 */
2743 struct ShareTreeItem *children_tail; 2743 struct GNUNET_FS_ShareTreeItem *children_tail;
2744 2744
2745 /** 2745 /**
2746 * Metadata for this file or directory 2746 * Metadata for this file or directory
@@ -2801,7 +2801,7 @@ GNUNET_FS_directory_scan_finish (struct GNUNET_FS_DirScanner *ds,
2801 * @param ds directory scanner structure 2801 * @param ds directory scanner structure
2802 * @return the results of the scan (a directory tree) 2802 * @return the results of the scan (a directory tree)
2803 */ 2803 */
2804struct ShareTreeItem * 2804struct GNUNET_FS_ShareTreeItem *
2805GNUNET_FS_directory_scan_cleanup (struct GNUNET_FS_DirScanner *ds); 2805GNUNET_FS_directory_scan_cleanup (struct GNUNET_FS_DirScanner *ds);
2806 2806
2807/** 2807/**
@@ -2821,7 +2821,7 @@ GNUNET_FS_directory_scan_start (const char *filename,
2821 2821
2822 2822
2823/* opaque */ 2823/* opaque */
2824struct ProcessMetadataContext; 2824struct GNUNET_FS_ProcessMetadataContext;
2825 2825
2826/** 2826/**
2827 * Process a share item tree, moving frequent keywords up and 2827 * Process a share item tree, moving frequent keywords up and
@@ -2831,8 +2831,8 @@ struct ProcessMetadataContext;
2831 * @param cb called after processing is done 2831 * @param cb called after processing is done
2832 * @param cls closure for 'cb' 2832 * @param cls closure for 'cb'
2833 */ 2833 */
2834struct ProcessMetadataContext * 2834struct GNUNET_FS_ProcessMetadataContext *
2835GNUNET_FS_trim_share_tree (struct ShareTreeItem *toplevel, 2835GNUNET_FS_trim_share_tree (struct GNUNET_FS_ShareTreeItem *toplevel,
2836 GNUNET_SCHEDULER_Task cb, void *cls); 2836 GNUNET_SCHEDULER_Task cb, void *cls);
2837 2837
2838 2838