sm_trie.h
author David Anderson <dvander@alliedmods.net>
Mon Jun 25 19:17:11 2007 +0000 (2007-06-25)
changeset 3 2200d290d7ce
parent 0 67dcd379a2d5
permissions -rw-r--r--
- changed some config defaults
- removed cssdm_equip_cfg
- added cssdm_enable_equipment
     1 /**
     2  * vim: set ts=4 :
     3  * ===============================================================
     4  * CS:S DM, Copyright (C) 2004-2007 AlliedModders LLC. 
     5  * By David "BAILOPAN" Anderson
     6  * All rights reserved.
     7  * ===============================================================
     8  *
     9  * This program is free software; you can redistribute it and/or modify
    10  * it under the terms of the GNU General Public License as published by
    11  * the Free Software Foundation; either version 2 of the License, or (at
    12  * your option) any later version.
    13  * 
    14  * This program is distributed in the hope that it will be useful, but
    15  * WITHOUT ANY WARRANTY; without even the implied warranty of
    16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    17  * General Public License for more details.
    18  * 
    19  * You should have received a copy of the GNU General Public License
    20  * along with this program; see the file COPYING; if not, write to the
    21  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
    22  * MA 02110-1301 USA
    23  * 
    24  * Version: $Id$
    25  */
    26 
    27 
    28 #ifndef _INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_
    29 #define _INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_
    30 
    31 struct Trie;
    32 
    33 Trie *sm_trie_create();
    34 void sm_trie_destroy(Trie *trie);
    35 bool sm_trie_insert(Trie *trie, const char *key, void *value);
    36 bool sm_trie_retrieve(Trie *trie, const char *key, void **value);
    37 bool sm_trie_delete(Trie *trie, const char *key);
    38 void sm_trie_clear(Trie *trie);
    39 
    40 #endif //_INCLUDE_SOURCEMOD_SIMPLE_TRIE_H_