-towards external meta scanner process
authorChristian Grothoff <christian@grothoff.org>
Sun, 29 Jan 2012 21:20:23 +0000 (21:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 29 Jan 2012 21:20:23 +0000 (21:20 +0000)
src/include/gnunet_fs_service.h
src/include/gnunet_protocols.h

index f8a20c75b01d85f5f3e6af0f954351c4247bb28e..e723d6457e091e779889cb3bc3cc3475d78d12da 100644 (file)
@@ -2608,9 +2608,10 @@ enum GNUNET_FS_DirScannerProgressUpdateReason
   GNUNET_FS_DIRSCANNER_FILE_START = 0,
 
   /**
-   * We've finished processing a subtree in the pre-pass.
+   * We're having trouble accessing a file (soft-error); it will
+   * be ignored.
    */
-  GNUNET_FS_DIRSCANNER_SUBTREE_COUNTED,
+  GNUNET_FS_DIRSCANNER_FILE_IGNORED,
 
   /**
    * We've found all files (in the pre-pass).
@@ -2628,12 +2629,6 @@ enum GNUNET_FS_DirScannerProgressUpdateReason
    */
   GNUNET_FS_DIRSCANNER_FINISHED,
 
-  /**
-   * We're having trouble accessing a file (soft-error); it will
-   * be ignored.
-   */
-  GNUNET_FS_DIRSCANNER_DOES_NOT_EXIST,
-
   /**
    * There was an internal error.  Application should abort the scan.
    */
@@ -2647,7 +2642,6 @@ enum GNUNET_FS_DirScannerProgressUpdateReason
  * progress on the job at hand.
  *
  * @param cls closure
- * @param ds handle to the directory scanner (NEEDED!?)
  * @param filename which file we are making progress on
  * @param is_directory GNUNET_YES if this is a directory,
  *                     GNUNET_NO if this is a file
@@ -2655,7 +2649,6 @@ enum GNUNET_FS_DirScannerProgressUpdateReason
  * @param reason kind of progress we are making
  */
 typedef void (*GNUNET_FS_DirScannerProgressCallback) (void *cls, 
-                                                     struct GNUNET_FS_DirScanner *ds, 
                                                      const char *filename,
                                                      int is_directory, 
                                                      enum GNUNET_FS_DirScannerProgressUpdateReason reason);
@@ -2710,15 +2703,10 @@ struct GNUNET_FS_ShareTreeItem
   char *filename;
 
   /**
-   * Base name of the file/directory
+   * Base name of the file/directory; FIXME: needed?
    */
   char *short_filename;
 
-  /**
-   * Size of the file (if it is a file), in bytes
-   */
-  uint64_t file_size;
-
   /**
    * GNUNET_YES if this is a directory
    */
index af4dd74b2fa235912fb8898811e0b77cc42b7a3b..285e1b488243610ad48a8466bf6d3c35c515a78e 100644 (file)
@@ -608,8 +608,6 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN 192
 
-
-
 /**
  * Type of messages containing an DNS request for a DNS exit service.
  */
@@ -1214,11 +1212,49 @@ extern "C"
  */
 #define GNUNET_MESSAGE_TYPE_STREAM_CLOSE_ACK 410
 
+/*******************************************************************************
+ * FS-PUBLISH-HELPER IPC Messages
+ ******************************************************************************/
+
+/**
+ * Progress information from the helper: found a file
+ */
+#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_FILE 420
+
+/**
+ * Progress information from the helper: found a directory
+ */
+#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY 421
+
+/**
+ * Error signal from the helper.
+ */
+#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR 422
 
 /**
- *  Next available: 420
+ * Signal that helper skipped a file.
  */
+#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_SKIP_FILE 423
 
+/**
+ * Signal that helper is done scanning the directory tree.
+ */
+#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_COUNTING_DONE 424
+
+/**
+ * Extracted meta data from the helper.
+ */
+#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_META_DATA 425
+
+/**
+ * Signal that helper is done.
+ */
+#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_FINISHED 426
+
+
+/**
+ *  Next available: 430
+ */
 
 /*******************************************************************************
  * TODO: we need a way to register message types centrally (via some webpage).