Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

mediumheader.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: mediumheader.h,v $
00003                              -------------------
00004     cvs         : $Id: mediumheader.h,v 1.1 2005/08/05 20:33:12 aquamaniac Exp $
00005     begin       : Mon Mar 01 2004
00006     copyright   : (C) 2004 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *          Please see toplevel file COPYING for license details           *
00011  ***************************************************************************/
00012 
00013 
00014 #ifndef AH_MEDIUMHEADER_H
00015 #define AH_MEDIUMHEADER_H
00016 
00017 #include <gwenhywfar/buffer.h>
00018 
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 typedef struct AH_MEDIUMHEADER AH_MEDIUMHEADER;
00025 
00026 #define AH_MEDIUMHEADER_SIZE 128
00027 
00028 
00029 AH_MEDIUMHEADER *AH_MediumHeader_new(const char *mtype,
00030                                      GWEN_TYPE_UINT32 vmajor,
00031                                      GWEN_TYPE_UINT32 vminor);
00032 
00033 void AH_MediumHeader_free(AH_MEDIUMHEADER *mh);
00034 
00035 
00036 AH_MEDIUMHEADER *AH_MediumHeader_FromBuffer(GWEN_BUFFER *hbuf);
00037 
00038 void AH_MediumHeader_ToBuffer(AH_MEDIUMHEADER *mh, GWEN_BUFFER *hbuf);
00039 
00040 
00041 const char *AH_MediumHeader_GetMediumType(const AH_MEDIUMHEADER *mh);
00042 GWEN_TYPE_UINT32 AH_MediumHeader_GetMajorVersion(const AH_MEDIUMHEADER *mh);
00043 GWEN_TYPE_UINT32 AH_MediumHeader_GetMinorVersion(const AH_MEDIUMHEADER *mh);
00044 
00045 
00046 
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050 
00051 
00052 
00053 #endif /* AH_MEDIUMHEADER_H */

Generated on Thu Oct 6 14:49:08 2005 for aqbanking by  doxygen 1.4.4