Blame glib/deprecated/gallocator.h

Packit ae235b
/*
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General Public
Packit ae235b
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __G_ALLOCATOR_H__
Packit ae235b
#define __G_ALLOCATOR_H__
Packit ae235b
Packit ae235b
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
Packit ae235b
#error "Only <glib.h> can be included directly."
Packit ae235b
#endif
Packit ae235b
Packit ae235b
#include <glib/gtypes.h>
Packit ae235b
Packit ae235b
G_BEGIN_DECLS
Packit ae235b
Packit ae235b
typedef struct _GAllocator GAllocator;
Packit ae235b
typedef struct _GMemChunk  GMemChunk;
Packit ae235b
Packit ae235b
#define G_ALLOC_ONLY                    1
Packit ae235b
#define G_ALLOC_AND_FREE                2
Packit ae235b
#define G_ALLOCATOR_LIST                1
Packit ae235b
#define G_ALLOCATOR_SLIST               2
Packit ae235b
#define G_ALLOCATOR_NODE                3
Packit ae235b
Packit ae235b
#define g_chunk_new(type, chunk)        ((type *) g_mem_chunk_alloc (chunk))
Packit ae235b
#define g_chunk_new0(type, chunk)       ((type *) g_mem_chunk_alloc0 (chunk))
Packit ae235b
#define g_chunk_free(mem, mem_chunk)    (g_mem_chunk_free (mem_chunk, mem))
Packit ae235b
#define g_mem_chunk_create(type, x, y)  (g_mem_chunk_new (NULL, sizeof (type), 0, 0))
Packit ae235b
Packit ae235b
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
GMemChunk *     g_mem_chunk_new         (const gchar  *name,
Packit ae235b
                                         gint          atom_size,
Packit ae235b
                                         gsize         area_size,
Packit ae235b
                                         gint          type);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_mem_chunk_destroy     (GMemChunk    *mem_chunk);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
gpointer        g_mem_chunk_alloc       (GMemChunk    *mem_chunk);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
gpointer        g_mem_chunk_alloc0      (GMemChunk    *mem_chunk);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_mem_chunk_free        (GMemChunk    *mem_chunk,
Packit ae235b
                                         gpointer      mem);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_mem_chunk_clean       (GMemChunk    *mem_chunk);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_mem_chunk_reset       (GMemChunk    *mem_chunk);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_mem_chunk_print       (GMemChunk    *mem_chunk);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_mem_chunk_info        (void);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_blow_chunks           (void);
Packit ae235b
Packit ae235b
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
GAllocator *    g_allocator_new         (const gchar  *name,
Packit ae235b
                                         guint         n_preallocs);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_allocator_free        (GAllocator   *allocator);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_list_push_allocator   (GAllocator   *allocator);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_list_pop_allocator    (void);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_slist_push_allocator  (GAllocator   *allocator);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_slist_pop_allocator   (void);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_node_push_allocator   (GAllocator   *allocator);
Packit ae235b
GLIB_DEPRECATED
Packit ae235b
void            g_node_pop_allocator    (void);
Packit ae235b
Packit ae235b
G_END_DECLS
Packit ae235b
Packit ae235b
#endif /* __G_ALLOCATOR_H__ */