summaryrefslogtreecommitdiff
path: root/include/SComponent/c_node.h
diff options
context:
space:
mode:
authorunknown <pheenoh@gmail.com>2020-12-01 19:04:35 -0500
committerunknown <pheenoh@gmail.com>2020-12-01 19:04:35 -0500
commit91fc5f6f532817dca0763a6e7841ce2a75ecb54d (patch)
treedb6b63a24336b6d767ec12a195cda6520e8d77e9 /include/SComponent/c_node.h
parent1ded84de460526448c0a2f5ffc5c651f4119d21b (diff)
parentac6b191dc19ddd1f155b55890953b7564c6f7b74 (diff)
Merge branch 'master' of https://github.com/zeldaret/tp
Diffstat (limited to 'include/SComponent/c_node.h')
-rw-r--r--include/SComponent/c_node.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/SComponent/c_node.h b/include/SComponent/c_node.h
new file mode 100644
index 0000000000..73573c0bae
--- /dev/null
+++ b/include/SComponent/c_node.h
@@ -0,0 +1,29 @@
+
+#ifndef SCOMPONENT_C_NODE_H
+#define SCOMPONENT_C_NODE_H
+
+struct node_class {
+ node_class *mpPrevNode;
+ void *mpData;
+ node_class *mpNextNode;
+};
+
+extern "C" {
+
+void cNd_Join(node_class *pA, node_class *pB);
+int cNd_LengthOf(node_class *pNode);
+node_class * cNd_First(node_class *pNode);
+node_class * cNd_Last(node_class *pNode);
+node_class * cNd_Order(node_class *pNode, int idx);
+void cNd_SingleCut(node_class *pNode);
+void cNd_Cut(node_class *pNode);
+void cNd_Addition(node_class *pA, node_class *pB);
+void cNd_Insert(node_class *pA, node_class *pB);
+void cNd_SetObject(node_class *pNode, void *pData);
+void cNd_ClearObject(node_class *pNode);
+void cNd_ForcedClear(node_class *pNode);
+void cNd_Create(node_class *pNode, void *pData);
+
+};
+
+#endif