gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r22878 - Extractor/src/main


From: gnunet
Subject: [GNUnet-SVN] r22878 - Extractor/src/main
Date: Tue, 24 Jul 2012 21:48:28 +0200

Author: grothoff
Date: 2012-07-24 21:48:28 +0200 (Tue, 24 Jul 2012)
New Revision: 22878

Modified:
   Extractor/src/main/TODO
   Extractor/src/main/extractor.c
Log:
-getting plugin main to compile

Modified: Extractor/src/main/TODO
===================================================================
--- Extractor/src/main/TODO     2012-07-24 19:08:31 UTC (rev 22877)
+++ Extractor/src/main/TODO     2012-07-24 19:48:28 UTC (rev 22878)
@@ -1,4 +1,3 @@
-* extractor_plugin_main (a lot)
 * extractor_ipc.c (a bit)
 * extractor.c (a lot)
 * extractor_ipc_w32.c (a lot)

Modified: Extractor/src/main/extractor.c
===================================================================
--- Extractor/src/main/extractor.c      2012-07-24 19:08:31 UTC (rev 22877)
+++ Extractor/src/main/extractor.c      2012-07-24 19:48:28 UTC (rev 22878)
@@ -25,56 +25,14 @@
 #include <sys/types.h>
 #include <signal.h>
 #include <ltdl.h>
-
 #include "extractor_datasource.h"
 #include "extractor_ipc.h"
 #include "extractor_plugpath.h"
 #include "extractor_plugins.h"
 
-/**
- * Maximum length of a Mime-Type string.
- */
-#define MAX_MIME_LEN 256
 
+#if 0
 /**
- * Set to 1 to get failure info,
- * 2 for actual debug info.
- */ 
-#define DEBUG 1
-
-
-/**
- * Writes 'size' bytes from 'buf' to 'fd', returns only when
- * writing is not possible, or when all 'size' bytes were written
- * (never does partial writes).
- *
- * @param fd fd to write into
- * @param buf buffer to read from
- * @param size number of bytes to write
- * @return number of bytes written (that is 'size'), or -1 on error
- */ 
-ssize_t
-EXTRACTOR_write_all_ (int fd,
-                     const void *buf,
-                     size_t size)
-{
-  const char *data = buf;
-  size_t off = 0;
-  ssize_t ret;
-  
-  while (off < size)
-    {
-      ret = write (fd, &data[off], size - off);
-      if (ret <= 0)
-       return -1;
-      off += ret;
-    }
-  return size;
-}
-
-
-
-/**
  * Open a file
  */
 static int 
@@ -528,8 +486,11 @@
       break;
     }
 }
+#endif
 
 
+
+
 /**
  * Extract keywords using the given set of plugins.
  *




reply via email to

[Prev in Thread] Current Thread [Next in Thread]