summaryrefslogtreecommitdiff
path: root/src/dom.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-12-21 22:18:10 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-12-21 22:18:10 +0000
commit83f3338663c4969eebefd8c2c43bd3fc43587fdd (patch)
treee48ba69628c5ba793533094e308c1fce9acb21aa /src/dom.c
parent4ade8ad1c7b23e6eeeee6681acbdb43fb10cab43 (diff)
downloadlibdom-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/dom.c')
-rw-r--r--src/dom.c69
1 files changed, 0 insertions, 69 deletions
diff --git a/src/dom.c b/src/dom.c
deleted file mode 100644
index b163d28..0000000
--- a/src/dom.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * 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>
- */
-
-#include <stdbool.h>
-
-#include <dom/dom.h>
-
-#include "utils/namespace.h"
-
-static bool __initialised;
-
-/**
- * Initialise the dom library
- *
- * \param alloc Pointer to memory (de)allocation function
- * \param pw Pointer to client-specific private data
- * \return DOM_NO_ERR on success.
- *
- * This must be the first DOM library method called.
- */
-dom_exception dom_initialise(dom_alloc alloc, void *pw)
-{
- dom_exception err;
-
- /* Ensure we only initialise once */
- if (__initialised) {
- return DOM_NO_ERR;
- }
-
- err = _dom_namespace_initialise(alloc, pw);
- if (err != DOM_NO_ERR) {
- return err;
- }
-
- __initialised = true;
-
- return DOM_NO_ERR;
-}
-
-/**
- * Finalise the dom library
- *
- * \return DOM_NO_ERR on success.
- *
- * This must be the last DOM library method called.
- */
-dom_exception dom_finalise(void)
-{
- dom_exception err;
-
- /* Ensure we only finalise once */
- if (__initialised == false) {
- return DOM_NO_ERR;
- }
-
- err = _dom_namespace_finalise();
- if (err != DOM_NO_ERR) {
- return err;
- }
-
- __initialised = false;
-
- return DOM_NO_ERR;
-}
-