result.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: result.h,v $
00003                              -------------------
00004     cvs         : $Id: result.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 #ifndef AH_RESULT_H
00014 #define AH_RESULT_H
00015 
00016 #include <gwenhywfar/misc.h>
00017 
00018 #include <stdio.h>
00019 
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00025 typedef struct AH_RESULT AH_RESULT;
00026 
00027 
00028 GWEN_LIST_FUNCTION_DEFS(AH_RESULT, AH_Result);
00029 
00030 
00031 AH_RESULT *AH_Result_new(int code,
00032                          const char *text,
00033                          const char *ref,
00034                          const char *param,
00035                          int isMsgResult);
00036 void AH_Result_free(AH_RESULT *r);
00037 
00038 int AH_Result_GetCode(const AH_RESULT *r);
00039 const char *AH_Result_GetText(const AH_RESULT *r);
00040 const char *AH_Result_GetRef(const AH_RESULT *r);
00041 const char *AH_Result_GetParam(const AH_RESULT *r);
00042 
00043 int AH_Result_IsError(const AH_RESULT *r);
00044 int AH_Result_IsWarning(const AH_RESULT *r);
00045 int AH_Result_IsInfo(const AH_RESULT *r);
00046 int AH_Result_IsOk(const AH_RESULT *r);
00047 int AH_Result_IsMsgResult(const AH_RESULT *r);
00048 
00049 void AH_Result_Dump(const AH_RESULT *r, FILE *f, unsigned int insert);
00050 
00051 
00052 #ifdef __cplusplus
00053 }
00054 #endif
00055 
00056 
00057 #endif /* AH_RESULT_H */
00058 
00059 
00060 
00061 

Generated on Sat Jan 7 04:22:41 2006 for aqbanking by  doxygen 1.4.6