gwenhywfar 5.11.2beta
refptr.h
Go to the documentation of this file.
1/***************************************************************************
2 $RCSfile$
3 -------------------
4 cvs : $Id$
5 begin : Sun Jan 25 2004
6 copyright : (C) 2004 by Martin Preuss
7 email : martin@libchipcard.de
8
9 ***************************************************************************
10 * *
11 * This library is free software; you can redistribute it and/or *
12 * modify it under the terms of the GNU Lesser General Public *
13 * License as published by the Free Software Foundation; either *
14 * version 2.1 of the License, or (at your option) any later version. *
15 * *
16 * This library is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
19 * Lesser General Public License for more details. *
20 * *
21 * You should have received a copy of the GNU Lesser General Public *
22 * License along with this library; if not, write to the Free Software *
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
24 * MA 02111-1307 USA *
25 * *
26 ***************************************************************************/
27
28
29#ifndef GWEN_REFPTR_H
30#define GWEN_REFPTR_H
31
32
33#include <gwenhywfar/types.h>
35
36
37#define GWEN_REFPTR_FLAGS_AUTODELETE 0x00000001
38
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
45typedef struct GWEN_REFPTR GWEN_REFPTR;
46
47
55
63
64
97void GWEN_RefPtr_SetFlags(GWEN_REFPTR *rp, uint32_t fl);
99void GWEN_RefPtr_AddFlags(GWEN_REFPTR *rp, uint32_t fl);
101void GWEN_RefPtr_DelFlags(GWEN_REFPTR *rp, uint32_t fl); /* defgroup */
105
106
107
115
151typedef void (*GWEN_REFPTR_INFO_FREE_FN)(void *dp);
152typedef void *(*GWEN_REFPTR_INFO_DUP_FN)(void *dp);
166 /* defgroup */
171 /* defgroup */
173
174#ifdef __cplusplus
175}
176#endif
177
178
179#endif
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API GWEN_REFPTR_INFO * GWEN_RefPtrInfo_new(void)
GWENHYWFAR_API void GWEN_RefPtrInfo_DelFlags(GWEN_REFPTR_INFO *rpi, uint32_t fl)
GWENHYWFAR_API void GWEN_RefPtrInfo_SetDupFn(GWEN_REFPTR_INFO *rpi, GWEN_REFPTR_INFO_DUP_FN f)
GWENHYWFAR_API void GWEN_RefPtr_free(GWEN_REFPTR *rp)
GWENHYWFAR_API uint32_t GWEN_RefPtr_GetFlags(const GWEN_REFPTR *rp)
GWENHYWFAR_API GWEN_REFPTR * GWEN_RefPtr_dup(const GWEN_REFPTR *rp)
GWENHYWFAR_API void GWEN_RefPtr_DelFlags(GWEN_REFPTR *rp, uint32_t fl)
void *(* GWEN_REFPTR_INFO_DUP_FN)(void *dp)
Definition: refptr.h:152
GWENHYWFAR_API void GWEN_RefPtr_AddFlags(GWEN_REFPTR *rp, uint32_t fl)
struct GWEN_REFPTR_INFO GWEN_REFPTR_INFO
Definition: refptr.h:44
GWENHYWFAR_API void GWEN_RefPtrInfo_SetFreeFn(GWEN_REFPTR_INFO *rpi, GWEN_REFPTR_INFO_FREE_FN f)
void(* GWEN_REFPTR_INFO_FREE_FN)(void *dp)
Definition: refptr.h:151
struct GWEN_REFPTR GWEN_REFPTR
Definition: refptr.h:45
GWENHYWFAR_API GWEN_REFPTR * GWEN_RefPtr_copy(const GWEN_REFPTR *rp)
GWENHYWFAR_API void GWEN_RefPtrInfo_free(GWEN_REFPTR_INFO *rpi)
GWENHYWFAR_API void * GWEN_RefPtr_GetData(const GWEN_REFPTR *rp)
GWENHYWFAR_API uint32_t GWEN_RefPtrInfo_GetFlags(const GWEN_REFPTR_INFO *rpi)
GWENHYWFAR_API void GWEN_RefPtr_SetData(GWEN_REFPTR *rp, void *dp, GWEN_REFPTR_INFO *rpi)
GWENHYWFAR_API void GWEN_RefPtr_SetFlags(GWEN_REFPTR *rp, uint32_t fl)
GWENHYWFAR_API void GWEN_RefPtrInfo_AddFlags(GWEN_REFPTR_INFO *rpi, uint32_t fl)
GWENHYWFAR_API void GWEN_RefPtrInfo_SetFlags(GWEN_REFPTR_INFO *rpi, uint32_t fl)
GWENHYWFAR_API void GWEN_RefPtrInfo_Attach(GWEN_REFPTR_INFO *rpi)
GWENHYWFAR_API GWEN_REFPTR * GWEN_RefPtr_new(void *dp, GWEN_REFPTR_INFO *rpi)