00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef GWEN_KEYSPEC_H
00030 #define GWEN_KEYSPEC_H
00031
00032 #include <gwenhywfar/gwenhywfarapi.h>
00033 #include <gwenhywfar/db.h>
00034 #include <gwenhywfar/inherit.h>
00035 #include <gwenhywfar/misc.h>
00036 #include <gwenhywfar/list2.h>
00037 #include <stdio.h>
00038
00039
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043
00044
00045 typedef struct GWEN_KEYSPEC GWEN_KEYSPEC;
00046
00047 GWEN_INHERIT_FUNCTION_LIB_DEFS(GWEN_KEYSPEC, GWENHYWFAR_API)
00048 GWEN_LIST_FUNCTION_LIB_DEFS(GWEN_KEYSPEC, GWEN_KeySpec, GWENHYWFAR_API)
00049 GWEN_LIST2_FUNCTION_LIB_DEFS(GWEN_KEYSPEC, GWEN_KeySpec, GWENHYWFAR_API)
00050 void GWEN_KeySpec_List2_freeAll(GWEN_KEYSPEC_LIST2 *ksl);
00051
00052
00053 GWENHYWFAR_API
00054 GWEN_KEYSPEC *GWEN_KeySpec_new();
00055 GWENHYWFAR_API
00056 GWEN_KEYSPEC *GWEN_KeySpec_dup(const GWEN_KEYSPEC *ks);
00057 GWENHYWFAR_API
00058 void GWEN_KeySpec_free(GWEN_KEYSPEC *ks);
00059
00060 GWENHYWFAR_API
00061 const char *GWEN_KeySpec_GetKeyType(const GWEN_KEYSPEC *ks);
00062 GWENHYWFAR_API
00063 void GWEN_KeySpec_SetKeyType(GWEN_KEYSPEC *ks,
00064 const char *s);
00065
00071 GWENHYWFAR_API
00072 int GWEN_KeySpec_GetStatus(const GWEN_KEYSPEC *ks);
00073 GWENHYWFAR_API
00074 void GWEN_KeySpec_SetStatus(GWEN_KEYSPEC *ks, int i);
00075
00076 GWENHYWFAR_API
00077 const char *GWEN_KeySpec_GetKeyName(const GWEN_KEYSPEC *ks);
00078 GWENHYWFAR_API
00079 void GWEN_KeySpec_SetKeyName(GWEN_KEYSPEC *ks,
00080 const char *s);
00081
00082 GWENHYWFAR_API
00083 const char *GWEN_KeySpec_GetOwner(const GWEN_KEYSPEC *ks);
00084 GWENHYWFAR_API
00085 void GWEN_KeySpec_SetOwner(GWEN_KEYSPEC *ks,
00086 const char *s);
00087
00088 GWENHYWFAR_API
00089 unsigned int GWEN_KeySpec_GetNumber(const GWEN_KEYSPEC *ks);
00090 GWENHYWFAR_API
00091 void GWEN_KeySpec_SetNumber(GWEN_KEYSPEC *ks,
00092 unsigned int i);
00093
00094 GWENHYWFAR_API
00095 unsigned int GWEN_KeySpec_GetVersion(const GWEN_KEYSPEC *ks);
00096 GWENHYWFAR_API
00097 void GWEN_KeySpec_SetVersion(GWEN_KEYSPEC *ks,
00098 unsigned int i);
00099
00100 GWENHYWFAR_API
00101 unsigned int GWEN_KeySpec_GetKeyLength(const GWEN_KEYSPEC *ks);
00102
00103 GWENHYWFAR_API
00104 void GWEN_KeySpec_SetKeyLength(GWEN_KEYSPEC *ks, unsigned int i);
00105
00106
00107 GWENHYWFAR_API
00108 void GWEN_KeySpec_Dump(const GWEN_KEYSPEC *ks, FILE *f, unsigned int indent);
00109
00110
00111 GWENHYWFAR_API int GWEN_KeySpec_toDb(const GWEN_KEYSPEC *ks, GWEN_DB_NODE *n);
00112 GWENHYWFAR_API GWEN_KEYSPEC *GWEN_KeySpec_fromDb(GWEN_DB_NODE *n);
00113
00114
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118
00119
00120
00121 #endif
00122
00123