diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-02-08 12:02:16 +0300 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-02-08 12:02:16 +0300 |
commit | 803c7fb4d49b51de750751a5707ebc57c653b959 (patch) | |
tree | 0d5fcdf6935c328dcf84f7b9f9851c4fa4370bfc /source/blender/blenkernel/BKE_node.h | |
parent | 914e2ee01f35edc60ffa20d84a198c757cfa31da (diff) |
Finished the node type definition cleanup started in r34682. All static node types should now use the node_type_* definition helpers to initialize their bNodeType structs.
Diffstat (limited to 'source/blender/blenkernel/BKE_node.h')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index 455e1739b98..ad16480bdb8 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -208,12 +208,12 @@ void nodeCopyGroup(struct bNode *gnode); /* ************** COMMON NODES *************** */ /* Init a new node type struct with default values and callbacks */ -void node_type_init(struct bNodeType *ntype, int type, const char *name, short nclass, short flag, +void node_type_base(struct bNodeType *ntype, int type, const char *name, short nclass, short flag, struct bNodeSocketType *inputs, struct bNodeSocketType *outputs); void node_type_size(struct bNodeType *ntype, int width, int minwidth, int maxwidth); +void node_type_init(struct bNodeType *ntype, void (*initfunc)(struct bNode *)); void node_type_storage(struct bNodeType *ntype, const char *storagename, - void (*initfunc)(struct bNode *), void (*freestoragefunc)(struct bNode *), void (*copystoragefunc)(struct bNode *, struct bNode *)); void node_type_exec(struct bNodeType *ntype, void (*execfunc)(void *data, struct bNode *, struct bNodeStack **, struct bNodeStack **)); |