mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
memorypool: refactored includes, moved out unrelated function
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user