00001 /*************************************************************************** 00002 $RCSfile$ 00003 ------------------- 00004 cvs : $Id: crypttoken.h 1113 2007-01-10 09:14:16Z martin $ 00005 begin : Wed Mar 16 2005 00006 copyright : (C) 2005 by Martin Preuss 00007 email : martin@libchipcard.de 00008 00009 *************************************************************************** 00010 * Please see toplevel file COPYING for license details * 00011 ***************************************************************************/ 00012 00013 00014 #ifndef GWEN_IOLAYER_MEMORY_H 00015 #define GWEN_IOLAYER_MEMORY_H 00016 00017 #include <gwenhywfar/iolayer.h> 00018 #include <gwenhywfar/buffer.h> 00019 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00025 00026 00046 00047 00052 #define GWEN_IO_LAYER_MEMORY_TYPE "memory" 00053 00065 GWENHYWFAR_API GWEN_IO_LAYER *GWEN_Io_LayerMemory_new(GWEN_BUFFER *buffer); 00066 00076 GWENHYWFAR_API GWEN_IO_LAYER *GWEN_Io_LayerMemory_fromString(const uint8_t *p, int size); 00077 00086 00092 GWENHYWFAR_API GWEN_BUFFER *GWEN_Io_LayerMemory_GetBuffer(const GWEN_IO_LAYER *io); 00093 00098 00099 #ifdef __cplusplus 00100 } 00101 #endif 00102 00103 #endif 00104 00105 00106 00107