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).
*/
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.
*/
* 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
* @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);
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
*/
*/
#define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN 192
-
-
/**
* Type of messages containing an DNS request for a DNS exit service.
*/
*/
#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).