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.

This commit is contained in:
Lukas Toenne
2011-02-08 09:02:16 +00:00
parent 914e2ee01f
commit 803c7fb4d4
103 changed files with 1639 additions and 2041 deletions

View File

@@ -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 **));