2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; either version 2
5 * of the License, or (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software Foundation,
14 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * The Original Code is Copyright (C) 2007 Blender Foundation.
17 * All rights reserved.
20 /** \file NOD_socket.h
25 #ifndef __NOD_SOCKET_H__
26 #define __NOD_SOCKET_H__
28 #include "DNA_listBase.h"
30 #include "BLI_utildefines.h"
34 #include "RNA_types.h"
39 struct bNodeSocket *node_add_socket_from_template(struct bNodeTree *ntree, struct bNode *node, struct bNodeSocketTemplate *stemp, int in_out);
41 void node_verify_socket_templates(struct bNodeTree *ntree, struct bNode *node);
43 void node_socket_init_default_value(struct bNodeSocket *sock);
44 void node_socket_copy_default_value(struct bNodeSocket *to, const struct bNodeSocket *from);
45 void register_standard_node_socket_types(void);