00001 00015 /* 00016 * Copyright 2009 Red Hat Inc., Durham, North Carolina. 00017 * All Rights Reserved. 00018 * 00019 * This library is free software; you can redistribute it and/or 00020 * modify it under the terms of the GNU Lesser General Public 00021 * License as published by the Free Software Foundation; either 00022 * version 2.1 of the License, or (at your option) any later version. 00023 * 00024 * This library is distributed in the hope that it will be useful, 00025 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00026 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00027 * Lesser General Public License for more details. 00028 * 00029 * You should have received a copy of the GNU Lesser General Public 00030 * License along with this library; if not, write to the Free Software 00031 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00032 * 00033 * Authors: 00034 * Lukas Kuklinek <lkuklinek@redhat.com> 00035 */ 00036 00037 #pragma once 00038 #ifndef OSCAP_ALLOC_H 00039 #define OSCAP_ALLOC_H 00040 00041 #include <stdlib.h> 00042 #include "public/oscap.h" 00043 00044 #if defined(NDEBUG) 00046 // Do not use, we keep this just for ABI compatibility, use malloc instead 00047 OSCAP_DEPRECATED(void *__oscap_alloc(size_t s)); 00048 00049 // Do not use, we keep this just for ABI compatibility, use calloc instead 00050 OSCAP_DEPRECATED(void *__oscap_calloc(size_t n, size_t s)); 00051 00052 // Do not use, we keep this just for ABI compatibility, use realloc instead 00053 OSCAP_DEPRECATED(void *__oscap_realloc(void *p, size_t s)); 00054 00055 // Do not use, we keep this just for ABI compatibility, use realloc instead 00056 OSCAP_DEPRECATED(void *__oscap_reallocf(void *p, size_t s)); 00057 00058 // Do not use, we keep this just for ABI compatibility, use free instead 00059 OSCAP_DEPRECATED(void __oscap_free(void *p)); 00061 #endif 00062 00064 #define oscap_talloc(T) ((T *) malloc(sizeof(T))) 00066 00067 #endif /* OSCAP_ALLOC_H */