00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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
00058
00059
00060
00061