summaryrefslogtreecommitdiff
path: root/include/SComponent/c_node.h
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2020-11-30 14:26:55 -0800
committerGitHub <noreply@github.com>2020-11-30 17:26:55 -0500
commit937da3c59bdc36e6ade59b9ab52ff8acdc71b6de (patch)
treeb7e90e234641bd93ca6cdb781c27d497af461814 /include/SComponent/c_node.h
parent51b0260c808258f2c0b172a80d4b03180cc52e30 (diff)
SComponent c_list / c_node (#5)
* SComponent c_list / c_node * SComponent: c_tree * SComponent: start c_phase * SComponent: c_tag * SComponent: c_counter * f_pc_line / f_pc_line_tag the beginnings of the framework process system * f_pc_method_tag * SComponent: c_node_iter / c_list_iter / c_tag_iter / c_tree_iter * f_pc_draw_priority * f_pc_method_iter * f_pc_profile Also add (untested) base header classes for f_pc_base * f_pc_searcher * f_pc_create_tag * f_pc_creator * f_pc_layer skeleton * f_pc_method * f_pc_line_iter * f_pc_leaf somewhat * f_pc_delete_tag * f_pc_create_req * Fix a few non-matchings * c_phase: slight additional notes * c_node: more matching * fix build * c_node: One more matching * f_pc_line_iter: Matching * f_pc_create_req: a bit more * f_pc_load, f_pc_deletor partial * f_pc_executor partial * f: minor cleanups * f_pc_executor Co-authored-by: Pheenoh <pheenoh@gmail.com>
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