diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-12-21 22:18:10 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-12-21 22:18:10 +0000 |
commit | 83f3338663c4969eebefd8c2c43bd3fc43587fdd (patch) | |
tree | e48ba69628c5ba793533094e308c1fce9acb21aa /src/utils/resource_mgr.h | |
parent | 4ade8ad1c7b23e6eeeee6681acbdb43fb10cab43 (diff) | |
download | libdom-83f3338663c4969eebefd8c2c43bd3fc43587fdd.tar.gz libdom-83f3338663c4969eebefd8c2c43bd3fc43587fdd.tar.bz2 |
Merge branches/jmb/dom-alloc-purge back to trunk
svn path=/trunk/libdom/; revision=13316
Diffstat (limited to 'src/utils/resource_mgr.h')
-rw-r--r-- | src/utils/resource_mgr.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/utils/resource_mgr.h b/src/utils/resource_mgr.h deleted file mode 100644 index 1b604ec..0000000 --- a/src/utils/resource_mgr.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of libdom. - * Licensed under the MIT License, - * http://www.opensource.org/licenses/mit-license.php - * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com> - */ - -#ifndef dom_utils_resource_mgr_h_ -#define dom_utils_resource_mgr_h_ - -#include <dom/functypes.h> -#include <dom/core/exceptions.h> -#include <dom/core/string.h> - -#include "hashtable.h" - -struct lwc_string_s; - -/** - * Resource manager - */ -typedef struct dom_resource_mgr { - dom_alloc alloc; - void *pw; -} dom_resource_mgr; - -void *_dom_resource_mgr_alloc(struct dom_resource_mgr *res, void *ptr, - size_t size); - -dom_exception _dom_resource_mgr_create_string(struct dom_resource_mgr *res, - const uint8_t *data, size_t len, dom_string **result); - -dom_exception _dom_resource_mgr_create_lwcstring(struct dom_resource_mgr *res, - const uint8_t *data, size_t len, struct lwc_string_s **result); - -dom_exception _dom_resource_mgr_create_string_from_lwcstring( - struct dom_resource_mgr *res, struct lwc_string_s *str, - dom_string **result); - -dom_exception _dom_resource_mgr_create_hashtable(struct dom_resource_mgr *res, - size_t chains, dom_hash_func f, struct dom_hash_table **ht); - -#endif |