memorypool: refactored includes, moved out unrelated function

This commit is contained in:
Evgeny Grin (Karlson2k)
2019-06-12 17:37:14 +03:00
parent 16c9a00cb7
commit 2abfb2ccca
3 changed files with 18 additions and 16 deletions
+15
View File
@@ -234,6 +234,21 @@ MHD_default_logger_ (void *cls,
}
/**
* Free the memory given by @a ptr. Calls "free(ptr)". This function
* should be used to free the username returned by
* #MHD_digest_auth_get_username().
* @note Since v0.9.56
*
* @param ptr pointer to free.
*/
_MHD_EXTERN void
MHD_free (void *ptr)
{
free (ptr);
}
/**
* Trace up to and return master daemon. If the supplied daemon
* is a master, then return the daemon itself.
+1 -15
View File
@@ -25,6 +25,7 @@
* @author Karlson2k (Evgeny Grin)
*/
#include "memorypool.h"
#include "internal.h"
#include "mhd_assert.h"
/* define MAP_ANONYMOUS for Mac OS X */
@@ -80,21 +81,6 @@ struct MemoryPool
};
/**
* Free the memory given by @a ptr. Calls "free(ptr)". This function
* should be used to free the username returned by
* #MHD_digest_auth_get_username().
* @note Since v0.9.56
*
* @param ptr pointer to free.
*/
_MHD_EXTERN void
MHD_free (void *ptr)
{
free (ptr);
}
/**
* Create a memory pool.
*
+2 -1
View File
@@ -30,7 +30,8 @@
#ifndef MEMORYPOOL_H
#define MEMORYPOOL_H
#include "internal.h"
#include "mhd_options.h"
#include <stddef.h>
/**
* Opaque handle for a memory pool.