summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libcroco/cr-node-iface.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /src/3rdparty/libcroco/cr-node-iface.h
parentInitial commit. (diff)
downloadinkscape-upstream.tar.xz
inkscape-upstream.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/3rdparty/libcroco/cr-node-iface.h')
-rw-r--r--src/3rdparty/libcroco/cr-node-iface.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/3rdparty/libcroco/cr-node-iface.h b/src/3rdparty/libcroco/cr-node-iface.h
new file mode 100644
index 0000000..01898d6
--- /dev/null
+++ b/src/3rdparty/libcroco/cr-node-iface.h
@@ -0,0 +1,34 @@
+#ifndef __CR_NODE_IFACE_H__
+#define __CR_NODE_IFACE_H__
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+typedef gconstpointer CRXMLNodePtr ;
+typedef struct _CRNodeIface CRNodeIface ;
+
+struct _CRNodeIface {
+ /* Names based on DOM. */
+ CRXMLNodePtr (*getParentNode)(CRXMLNodePtr);
+ CRXMLNodePtr (*getFirstChild)(CRXMLNodePtr);
+ CRXMLNodePtr (*getNextSibling)(CRXMLNodePtr);
+ CRXMLNodePtr (*getPrevSibling)(CRXMLNodePtr);
+ char const *(*getLocalName)(CRXMLNodePtr);
+ char *(*getProp)(CRXMLNodePtr, char const *);
+
+ /* Others. */
+ void (*freePropVal)(void *);
+ gboolean (*isElementNode)(CRXMLNodePtr);
+
+#if 0
+ char const *getLang(CRXMLNodePtr);
+ /* todo: Make it easy to have the default xml rules for lang. Maybe interpret NULL
+ like this. Or provide a cr_get_xml_lang(CRNodeIface const *, CRXMLNodePtr) function. */
+#endif
+};
+
+G_END_DECLS
+
+
+#endif/*__CR_NODE_IFACE_H__*/