From db7b2ef386dbf89647afbf4ad55c0454ec0dc767 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sun, 2 Jul 2023 11:37:56 +0200 Subject: [PATCH] Cleanup: remove unnecessary "struct" in declaration --- source/blender/nodes/NOD_geometry.hh | 69 ++++++++++++++-------------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/source/blender/nodes/NOD_geometry.hh b/source/blender/nodes/NOD_geometry.hh index 40ad7f4ef25..d91ee352fe7 100644 --- a/source/blender/nodes/NOD_geometry.hh +++ b/source/blender/nodes/NOD_geometry.hh @@ -6,7 +6,7 @@ #include "BKE_node.h" -extern struct bNodeTreeType *ntreeType_Geometry; +extern bNodeTreeType *ntreeType_Geometry; void register_node_type_geo_custom_group(bNodeType *ntype); @@ -14,16 +14,16 @@ void register_node_type_geo_custom_group(bNodeType *ntype); /** \name Simulation Input Node * \{ */ -struct bNode *NOD_geometry_simulation_input_get_paired_output( - struct bNodeTree *node_tree, const struct bNode *simulation_input_node); +bNode *NOD_geometry_simulation_input_get_paired_output(bNodeTree *node_tree, + const bNode *simulation_input_node); /** * Pair a simulation input node with an output node. * \return True if pairing the node was successful. */ -bool NOD_geometry_simulation_input_pair_with_output(const struct bNodeTree *node_tree, - struct bNode *simulation_input_node, - const struct bNode *simulation_output_node); +bool NOD_geometry_simulation_input_pair_with_output(const bNodeTree *node_tree, + bNode *simulation_input_node, + const bNode *simulation_output_node); /** \} */ @@ -37,42 +37,43 @@ bool NOD_geometry_simulation_output_item_socket_type_supported(eNodeSocketDataty * Set a unique item name. * \return True if the unique name differs from the original name. */ -bool NOD_geometry_simulation_output_item_set_unique_name(struct NodeGeometrySimulationOutput *sim, - struct NodeSimulationItem *item, +bool NOD_geometry_simulation_output_item_set_unique_name(NodeGeometrySimulationOutput *sim, + NodeSimulationItem *item, const char *name, const char *defname); /** * Find the node owning this simulation state item. */ -bNode *NOD_geometry_simulation_output_find_node_by_item(struct bNodeTree *ntree, - const struct NodeSimulationItem *item); +bNode *NOD_geometry_simulation_output_find_node_by_item(bNodeTree *ntree, + const NodeSimulationItem *item); -bool NOD_geometry_simulation_output_contains_item(struct NodeGeometrySimulationOutput *sim, - const struct NodeSimulationItem *item); -struct NodeSimulationItem *NOD_geometry_simulation_output_get_active_item( - struct NodeGeometrySimulationOutput *sim); -void NOD_geometry_simulation_output_set_active_item(struct NodeGeometrySimulationOutput *sim, - struct NodeSimulationItem *item); -struct NodeSimulationItem *NOD_geometry_simulation_output_find_item( - struct NodeGeometrySimulationOutput *sim, const char *name); -struct NodeSimulationItem *NOD_geometry_simulation_output_add_item( - struct NodeGeometrySimulationOutput *sim, short socket_type, const char *name); -struct NodeSimulationItem *NOD_geometry_simulation_output_insert_item( - struct NodeGeometrySimulationOutput *sim, short socket_type, const char *name, int index); -struct NodeSimulationItem *NOD_geometry_simulation_output_add_item_from_socket( - struct NodeGeometrySimulationOutput *sim, - const struct bNode *from_node, - const struct bNodeSocket *from_sock); -struct NodeSimulationItem *NOD_geometry_simulation_output_insert_item_from_socket( - struct NodeGeometrySimulationOutput *sim, - const struct bNode *from_node, - const struct bNodeSocket *from_sock, +bool NOD_geometry_simulation_output_contains_item(NodeGeometrySimulationOutput *sim, + const NodeSimulationItem *item); +NodeSimulationItem *NOD_geometry_simulation_output_get_active_item( + NodeGeometrySimulationOutput *sim); +void NOD_geometry_simulation_output_set_active_item(NodeGeometrySimulationOutput *sim, + NodeSimulationItem *item); +NodeSimulationItem *NOD_geometry_simulation_output_find_item(NodeGeometrySimulationOutput *sim, + const char *name); +NodeSimulationItem *NOD_geometry_simulation_output_add_item(NodeGeometrySimulationOutput *sim, + short socket_type, + const char *name); +NodeSimulationItem *NOD_geometry_simulation_output_insert_item(NodeGeometrySimulationOutput *sim, + short socket_type, + const char *name, + int index); +NodeSimulationItem *NOD_geometry_simulation_output_add_item_from_socket( + NodeGeometrySimulationOutput *sim, const bNode *from_node, const bNodeSocket *from_sock); +NodeSimulationItem *NOD_geometry_simulation_output_insert_item_from_socket( + NodeGeometrySimulationOutput *sim, + const bNode *from_node, + const bNodeSocket *from_sock, int index); -void NOD_geometry_simulation_output_remove_item(struct NodeGeometrySimulationOutput *sim, - struct NodeSimulationItem *item); -void NOD_geometry_simulation_output_clear_items(struct NodeGeometrySimulationOutput *sim); -void NOD_geometry_simulation_output_move_item(struct NodeGeometrySimulationOutput *sim, +void NOD_geometry_simulation_output_remove_item(NodeGeometrySimulationOutput *sim, + NodeSimulationItem *item); +void NOD_geometry_simulation_output_clear_items(NodeGeometrySimulationOutput *sim); +void NOD_geometry_simulation_output_move_item(NodeGeometrySimulationOutput *sim, int from_index, int to_index);