summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Shaw <jshaw@netsurf-browser.org>2007-07-16 21:12:55 +0000
committerJames Shaw <jshaw@netsurf-browser.org>2007-07-16 21:12:55 +0000
commit8b13e2be012a8ced046f4fdd12cdb1b0ece45941 (patch)
treeb45aab04f3f419f9fc270fbf098d71c0106bd5fa
parent819d25b654fa11b812a10dfe0cf17d334e654725 (diff)
downloadlibdom-8b13e2be012a8ced046f4fdd12cdb1b0ece45941.tar.gz
libdom-8b13e2be012a8ced046f4fdd12cdb1b0ece45941.tar.bz2
Stub implementation of of dom_document_type methods
svn path=/trunk/dom/; revision=3422
-rw-r--r--include/dom/core/document_type.h21
-rw-r--r--include/dom/dom.h1
-rw-r--r--src/core/Makefile2
-rw-r--r--src/core/document_type.c19
4 files changed, 42 insertions, 1 deletions
diff --git a/include/dom/core/document_type.h b/include/dom/core/document_type.h
new file mode 100644
index 0000000..bb981a3
--- /dev/null
+++ b/include/dom/core/document_type.h
@@ -0,0 +1,21 @@
+/*
+ * 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_core_document_type_h_
+#define dom_core_document_type_h_
+
+#include <stdbool.h>
+
+#include <dom/core/exceptions.h>
+
+struct dom_string;
+struct dom_document_type;
+
+dom_exception dom_document_type_get_name(struct dom_document_type *docType,
+ struct dom_string **result);
+
+#endif
diff --git a/include/dom/dom.h b/include/dom/dom.h
index 174ad6f..4d17a3f 100644
--- a/include/dom/dom.h
+++ b/include/dom/dom.h
@@ -24,6 +24,7 @@
#include <dom/core/attr.h>
#include <dom/core/characterdata.h>
#include <dom/core/document.h>
+#include <dom/core/document_type.h>
#include <dom/core/element.h>
#include <dom/core/exceptions.h>
#include <dom/core/implementation.h>
diff --git a/src/core/Makefile b/src/core/Makefile
index bc25ed7..ee9b377 100644
--- a/src/core/Makefile
+++ b/src/core/Makefile
@@ -22,7 +22,7 @@
CFLAGS += -I$(CURDIR)
# Objects
-OBJS = attr characterdata document element implementation impllist \
+OBJS = attr characterdata document document_type element implementation impllist \
namednodemap node nodelist string text
.PHONY: clean debug distclean export release setup test
diff --git a/src/core/document_type.c b/src/core/document_type.c
new file mode 100644
index 0000000..211d600
--- /dev/null
+++ b/src/core/document_type.c
@@ -0,0 +1,19 @@
+/*
+ * 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 <dom/functypes.h>
+#include <dom/core/document_type.h>
+#include "utils/utils.h"
+
+dom_exception dom_document_type_get_name(struct dom_document_type *docType,
+ struct dom_string **result)
+{
+ UNUSED(docType);
+ UNUSED(result);
+
+ return DOM_NOT_SUPPORTED_ERR;
+}