00001
00005 #ifndef dkutil_c_Hash
00006 #define dkutil_c_Hash
00007
00008 #include "dkcOSIndependent.h"
00009 #include "st.h"
00010 #include "dkcSHA.h"
00011 #include "dkcMD5.h"
00012
00013
00014
00015 #if 0//defined(__cplusplus)
00016
00017 namespace dkutil{
00018
00020 class map_st{
00021 st_table *mM;
00022 public:
00023 map_st(){
00024 mM = st_init_strtable();
00025 }
00026 bool reset(){
00027 clear();
00028 mM = st_init_strtable();
00029 }
00030 bool insert(const char *key,const char *data){
00031
00032 }
00033 void clear(){
00034 if(mM){
00035 st_free_table(mM);
00036 }
00037 }
00038 bool lookup(const char *key,char *buff,size_t size){
00039 st_lookup(m, key, &buff);
00040 }
00041
00042
00043 };
00044
00045
00046
00047 }
00048
00049
00050 #endif
00051
00052 #endif //end of include once