diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-12 21:24:08 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-12 21:24:08 +0000 |
commit | 0448f3de0bc3e9aa71bd095e87fd1cc2584e0a99 (patch) | |
tree | 9ad95bcba5e6f988763835f24b40e773551f53f6 /include/dom/bootstrap/implregistry.h | |
parent | 92311b20c73b13766fb93c123c67e5045356ff49 (diff) | |
download | libdom-0448f3de0bc3e9aa71bd095e87fd1cc2584e0a99.tar.gz libdom-0448f3de0bc3e9aa71bd095e87fd1cc2584e0a99.tar.bz2 |
Add DOMImplementation, DOMImplementationList
Add DOMImplementationRegistry
Define DOMImplementationSource and provide API to allow their registration
This little lot should permit some kind of sensible DOM bootstrapping.
svn path=/trunk/dom/; revision=3403
Diffstat (limited to 'include/dom/bootstrap/implregistry.h')
-rw-r--r-- | include/dom/bootstrap/implregistry.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/dom/bootstrap/implregistry.h b/include/dom/bootstrap/implregistry.h new file mode 100644 index 0000000..1e93ea6 --- /dev/null +++ b/include/dom/bootstrap/implregistry.h @@ -0,0 +1,30 @@ +/* + * This file is part of libdom. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org> + */ + +#ifndef dom_bootstrap_implregistry_h_ +#define dom_bootstrap_implregistry_h_ + +#include <dom/core/exceptions.h> +#include <dom/functypes.h> + +struct dom_implementation; +struct dom_implementation_list; +struct dom_string; + +/* Retrieve a DOM implementation from the registry */ +dom_exception dom_implregistry_get_dom_implementation( + struct dom_string *features, + struct dom_implementation **impl, + dom_alloc alloc, void *pw); + +/* Get a list of DOM implementations that support the requested features */ +dom_exception dom_implregistry_get_dom_implementation_list( + struct dom_string *features, + struct dom_implementation_list **list, + dom_alloc alloc, void *pw); + +#endif |