gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r31731 - libmicrohttpd/src/microhttpd


From: gnunet
Subject: [GNUnet-SVN] r31731 - libmicrohttpd/src/microhttpd
Date: Tue, 24 Dec 2013 12:32:11 +0100

Author: grothoff
Date: 2013-12-24 12:32:11 +0100 (Tue, 24 Dec 2013)
New Revision: 31731

Modified:
   libmicrohttpd/src/microhttpd/connection.c
   libmicrohttpd/src/microhttpd/connection.h
   libmicrohttpd/src/microhttpd/memorypool.c
   libmicrohttpd/src/microhttpd/memorypool.h
   libmicrohttpd/src/microhttpd/response.c
   libmicrohttpd/src/microhttpd/response.h
Log:
-hiding a few more

Modified: libmicrohttpd/src/microhttpd/connection.c
===================================================================
--- libmicrohttpd/src/microhttpd/connection.c   2013-12-24 11:29:09 UTC (rev 
31730)
+++ libmicrohttpd/src/microhttpd/connection.c   2013-12-24 11:32:11 UTC (rev 
31731)
@@ -257,7 +257,7 @@
  * @param connection connection to close
  * @param termination_code termination reason to give
  */
-void
+void HIDDEN_SYMBOL
 MHD_connection_close (struct MHD_Connection *connection,
                       enum MHD_RequestTerminationCode termination_code)
 {

Modified: libmicrohttpd/src/microhttpd/connection.h
===================================================================
--- libmicrohttpd/src/microhttpd/connection.h   2013-12-24 11:29:09 UTC (rev 
31730)
+++ libmicrohttpd/src/microhttpd/connection.h   2013-12-24 11:32:11 UTC (rev 
31731)
@@ -35,7 +35,7 @@
  *
  * @param connection connection to initialize
  */
-void 
+void
 MHD_set_http_callbacks_ (struct MHD_Connection *connection);
 
 
@@ -49,7 +49,7 @@
  * @return always MHD_YES (we should continue to process the
  *         connection)
  */
-int 
+int
 MHD_connection_handle_read (struct MHD_Connection *connection);
 
 
@@ -63,7 +63,7 @@
  * @return always MHD_YES (we should continue to process the
  *         connection)
  */
-int 
+int
 MHD_connection_handle_write (struct MHD_Connection *connection);
 
 
@@ -77,7 +77,7 @@
  * @return MHD_YES if we should continue to process the
  *         connection (not dead yet), MHD_NO if it died
  */
-int 
+int
 MHD_connection_handle_idle (struct MHD_Connection *connection);
 
 
@@ -88,7 +88,7 @@
  * @param connection connection to close
  * @param termination_code termination reason to give
  */
-void 
+void HIDDEN_SYMBOL
 MHD_connection_close (struct MHD_Connection *connection,
                      enum MHD_RequestTerminationCode termination_code);
 
@@ -101,7 +101,7 @@
  * @param connection connection to process
  * @return MHD_YES if we should continue to process the
  *         connection (not dead yet), MHD_NO if it died
- */ 
+ */
 int
 MHD_connection_epoll_update_ (struct MHD_Connection *connection);
 #endif

Modified: libmicrohttpd/src/microhttpd/memorypool.c
===================================================================
--- libmicrohttpd/src/microhttpd/memorypool.c   2013-12-24 11:29:09 UTC (rev 
31730)
+++ libmicrohttpd/src/microhttpd/memorypool.c   2013-12-24 11:32:11 UTC (rev 
31731)
@@ -83,6 +83,7 @@
  * @param max maximum size of the pool
  * @return NULL on error
  */
+HIDDEN_SYMBOL
 struct MemoryPool *
 MHD_pool_create (size_t max)
 {
@@ -126,7 +127,7 @@
  *
  * @param pool memory pool to destroy
  */
-void
+void HIDDEN_SYMBOL
 MHD_pool_destroy (struct MemoryPool *pool)
 {
   if (pool == NULL)
@@ -150,6 +151,7 @@
  * @return NULL if the pool cannot support size more
  *         bytes
  */
+HIDDEN_SYMBOL
 void *
 MHD_pool_allocate (struct MemoryPool *pool,
                   size_t size, int from_end)
@@ -193,6 +195,7 @@
  *         NULL if the pool cannot support @a new_size
  *         bytes (old continues to be valid for @a old_size)
  */
+HIDDEN_SYMBOL
 void *
 MHD_pool_reallocate (struct MemoryPool *pool,
                      void *old,
@@ -247,6 +250,7 @@
  * @param size how many bytes need to be kept at this address
  * @return addr new address of @a keep (if it had to change)
  */
+HIDDEN_SYMBOL
 void *
 MHD_pool_reset (struct MemoryPool *pool,
                void *keep,

Modified: libmicrohttpd/src/microhttpd/memorypool.h
===================================================================
--- libmicrohttpd/src/microhttpd/memorypool.h   2013-12-24 11:29:09 UTC (rev 
31730)
+++ libmicrohttpd/src/microhttpd/memorypool.h   2013-12-24 11:32:11 UTC (rev 
31731)
@@ -44,6 +44,7 @@
  * @param max maximum size of the pool
  * @return NULL on error
  */
+HIDDEN_SYMBOL
 struct MemoryPool *
 MHD_pool_create (size_t max);
 
@@ -53,7 +54,7 @@
  *
  * @param pool memory pool to destroy
  */
-void 
+void HIDDEN_SYMBOL
 MHD_pool_destroy (struct MemoryPool *pool);
 
 
@@ -68,6 +69,7 @@
  * @return NULL if the pool cannot support size more
  *         bytes
  */
+HIDDEN_SYMBOL
 void *
 MHD_pool_allocate (struct MemoryPool *pool,
                   size_t size, int from_end);
@@ -90,10 +92,11 @@
  *         NULL if the pool cannot support new_size
  *         bytes (old continues to be valid for old_size)
  */
+HIDDEN_SYMBOL
 void *
 MHD_pool_reallocate (struct MemoryPool *pool,
                     void *old,
-                    size_t old_size, 
+                    size_t old_size,
                     size_t new_size);
 
 
@@ -106,9 +109,10 @@
  * @param size how many bytes need to be kept at this address
  * @return addr new address of "keep" (if it had to change)
  */
+HIDDEN_SYMBOL
 void *
 MHD_pool_reset (struct MemoryPool *pool,
-               void *keep, 
+               void *keep,
                size_t size);
 
 #endif

Modified: libmicrohttpd/src/microhttpd/response.c
===================================================================
--- libmicrohttpd/src/microhttpd/response.c     2013-12-24 11:29:09 UTC (rev 
31730)
+++ libmicrohttpd/src/microhttpd/response.c     2013-12-24 11:32:11 UTC (rev 
31731)
@@ -40,7 +40,7 @@
 static int
 add_response_entry (struct MHD_Response *response,
                    enum MHD_ValueKind kind,
-                   const char *header, 
+                   const char *header,
                    const char *content)
 {
   struct MHD_HTTP_Header *hdr;
@@ -54,7 +54,7 @@
        (NULL != strchr (header, '\r')) ||
        (NULL != strchr (header, '\n')) ||
        (NULL != strchr (content, '\t')) ||
-       (NULL != strchr (content, '\r')) || 
+       (NULL != strchr (content, '\r')) ||
        (NULL != strchr (content, '\n')) )
     return MHD_NO;
   if (NULL == (hdr = malloc (sizeof (struct MHD_HTTP_Header))))
@@ -197,7 +197,7 @@
  * @ingroup response
  */
 const char *
-MHD_get_response_header (struct MHD_Response *response, 
+MHD_get_response_header (struct MHD_Response *response,
                         const char *key)
 {
   struct MHD_HTTP_Header *pos;
@@ -261,7 +261,7 @@
 /**
  * Given a file descriptor, read data from the file
  * to generate the response.
- * 
+ *
  * @param cls pointer to the response
  * @param pos offset in the file to access
  * @param buf where to write the data
@@ -276,9 +276,9 @@
 
   (void) lseek (response->fd, pos + response->fd_off, SEEK_SET);
   n = read (response->fd, buf, max);
-  if (0 == n) 
+  if (0 == n)
     return MHD_CONTENT_READER_END_OF_STREAM;
-  if (n < 0) 
+  if (n < 0)
     return MHD_CONTENT_READER_END_WITH_ERROR;
   return n;
 }
@@ -309,7 +309,7 @@
  *        data; will be closed when response is destroyed;
  *        fd should be in 'blocking' mode
  * @param offset offset to start reading from in the file;
- *        Be careful! `off_t` may have been compiled to be a 
+ *        Be careful! `off_t` may have been compiled to be a
  *        64-bit variable for MHD, in which case your application
  *        also has to be compiled using the same options! Read
  *        the MHD manual for more details.
@@ -469,7 +469,7 @@
 }
 
 
-void
+void HIDDEN_SYMBOL
 MHD_increment_response_rc (struct MHD_Response *response)
 {
   pthread_mutex_lock (&response->mutex);

Modified: libmicrohttpd/src/microhttpd/response.h
===================================================================
--- libmicrohttpd/src/microhttpd/response.h     2013-12-24 11:29:09 UTC (rev 
31730)
+++ libmicrohttpd/src/microhttpd/response.h     2013-12-24 11:32:11 UTC (rev 
31731)
@@ -31,7 +31,8 @@
  * Increment response RC.  Should this be part of the
  * public API?
  */
-void MHD_increment_response_rc (struct MHD_Response *response);
+void HIDDEN_SYMBOL
+MHD_increment_response_rc (struct MHD_Response *response);
 
 
 #endif




reply via email to

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