1 /** 2 * Hash table to be used by DinkC's 'sp_custom' function 3 4 * Copyright (C) 2008 Sylvain Beucler 5 6 * This file is part of GNU FreeDink 7 8 * GNU FreeDink is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation; either version 3 of the 11 * License, or (at your option) any later version. 12 13 * GNU FreeDink is distributed in the hope that it will be useful, but 14 * WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * General Public License for more details. 17 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see 20 * <http://www.gnu.org/licenses/>. 21 */ 22 23 #ifndef DINKC_SP_CUSTOM_HASH 24 #define DINKC_SP_CUSTOM_HASH 25 26 #include "hash.h" 27 28 typedef Hash_table* dinkc_sp_custom; 29 30 extern dinkc_sp_custom dinkc_sp_custom_new(); 31 extern void dinkc_sp_custom_free(dinkc_sp_custom hash); 32 extern void dinkc_sp_custom_set(dinkc_sp_custom hash, char key[200], int val); 33 extern int dinkc_sp_custom_get(dinkc_sp_custom hash, char key[200]); 34 extern void dinkc_sp_custom_clear(dinkc_sp_custom hash); 35 36 #endif 37