aboutsummaryrefslogtreecommitdiffstats
path: root/src/static_nodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/static_nodes.h')
-rw-r--r--src/static_nodes.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/static_nodes.h b/src/static_nodes.h
deleted file mode 100644
index 467d846f..00000000
--- a/src/static_nodes.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- Copyright 2019-2020 David Robillard <d@drobilla.net>
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-
-#ifndef SERD_STATIC_NODES_H
-#define SERD_STATIC_NODES_H
-
-#include "serd/serd.h"
-
-#include "namespaces.h"
-#include "node.h"
-
-typedef struct StaticNode {
- SerdNode node;
- char buf[sizeof(NS_XSD "base64Binary") + sizeof(SerdNode)];
-} StaticNode;
-
-#define DEFINE_XSD_NODE(name) \
- static const StaticNode serd_xsd_##name = { \
- {sizeof(NS_XSD #name) - 1, 0, SERD_URI}, NS_XSD #name};
-
-DEFINE_XSD_NODE(base64Binary)
-DEFINE_XSD_NODE(boolean)
-DEFINE_XSD_NODE(decimal)
-DEFINE_XSD_NODE(double)
-DEFINE_XSD_NODE(float)
-DEFINE_XSD_NODE(integer)
-
-#endif // SERD_STATIC_NODES_H