diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 19:18:33 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2009-02-14 19:18:33 +0000 |
commit | bf44aeaf5cd7f03d3bd842c8046b7346c5035f06 (patch) | |
tree | 896fcb86e24952dfea9fa1414fdd3c59e509fa9b /include/parserutils/utils | |
parent | 0323c5c6f9f6d27b7aab2ac5da0b98e6468a4d72 (diff) | |
download | libparserutils-bf44aeaf5cd7f03d3bd842c8046b7346c5035f06.tar.gz libparserutils-bf44aeaf5cd7f03d3bd842c8046b7346c5035f06.tar.bz2 |
Remove dict, hash and rbtree from libparserutils
svn path=/trunk/libparserutils/; revision=6512
Diffstat (limited to 'include/parserutils/utils')
-rw-r--r-- | include/parserutils/utils/dict.h | 36 | ||||
-rw-r--r-- | include/parserutils/utils/hash.h | 31 |
2 files changed, 0 insertions, 67 deletions
diff --git a/include/parserutils/utils/dict.h b/include/parserutils/utils/dict.h deleted file mode 100644 index ac6050c..0000000 --- a/include/parserutils/utils/dict.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of LibParserUtils. - * Licensed under the MIT License, - * http://www.opensource.org/licenses/mit-license.php - * Copyright 2008 John-Mark Bell <jmb@netsurf-browser.org> - */ - -#ifndef parserutils_utils_dict_h_ -#define parserutils_utils_dict_h_ - -#include <parserutils/errors.h> -#include <parserutils/functypes.h> - -/** - * A dictionary entry - */ -struct parserutils_dict_entry -{ - size_t len; /**< Length of data, in bytes */ - uint8_t *data; /**< Entry data */ -}; -typedef struct parserutils_dict_entry parserutils_dict_entry; - -struct parserutils_dict; -typedef struct parserutils_dict parserutils_dict; - -parserutils_error parserutils_dict_create(parserutils_alloc alloc, void *pw, - parserutils_dict **dict); -parserutils_error parserutils_dict_destroy(parserutils_dict *dict); - -parserutils_error parserutils_dict_insert(parserutils_dict *dict, - const uint8_t *data, size_t len, - const parserutils_dict_entry **result); - -#endif - diff --git a/include/parserutils/utils/hash.h b/include/parserutils/utils/hash.h deleted file mode 100644 index 92f0236..0000000 --- a/include/parserutils/utils/hash.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * This file is part of LibParserUtils. - * Licensed under the MIT License, - * http://www.opensource.org/licenses/mit-license.php - * Copyright 2008 John-Mark Bell <jmb@netsurf-browser.org> - */ - -#ifndef parserutils_utils_hash_h_ -#define parserutils_utils_hash_h_ - -#include <parserutils/errors.h> -#include <parserutils/functypes.h> - -typedef struct parserutils_hash_entry { - uint16_t len; - const uint8_t data[]; -} parserutils_hash_entry; - -struct parserutils_hash; -typedef struct parserutils_hash parserutils_hash; - -parserutils_error parserutils_hash_create(parserutils_alloc alloc, void *pw, - parserutils_hash **hash); -parserutils_error parserutils_hash_destroy(parserutils_hash *hash); - -parserutils_error parserutils_hash_insert(parserutils_hash *hash, - const uint8_t *data, uint16_t len, - const parserutils_hash_entry **inserted); - -#endif - |