keyspec.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id: keyspec.h 978 2006-02-03 17:41:49Z aquamaniac $
00005     begin       : Sat Nov 08 2003
00006     copyright   : (C) 2003 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00024  *   MA  02111-1307  USA                                                   *
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 /* GWEN_KEYSPEC_H */
00122 
00123 

Generated on Wed Jun 21 00:59:52 2006 for gwenhywfar by  doxygen 1.4.6