aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem.h
blob: 8ee11bad3c3ef51a6f8f6e9b0bfe5f6d14197a18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* gpgme.c - GnuPG Made Easy.
   Copyright (C) 2014 g10 Code GmbH

   This file is part of GPGME.

   GPGME is free software; you can redistribute it and/or modify it
   under the terms of the GNU Lesser General Public License as
   published by the Free Software Foundation; either version 2.1 of
   the License, or (at your option) any later version.

   GPGME is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
#ifndef MEM_H
#define MEM_H

#include "gpgme.h"

void *_gpgme_malloc (size_t);
void *_gpgme_calloc (size_t, size_t);
void *_gpgme_realloc (void *, size_t);
void _gpgme_free (void *);
char *_gpgme_strdup (const char *);
void _gpgme_set_global_malloc_hooks (gpgme_malloc_hooks_t);

#endif