Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-06-29 18:36:06 +0300
committerJacques Lucke <jacques@blender.org>2020-06-29 18:36:21 +0300
commit3aced11d79cd44c17732e80bf997f700df341bc4 (patch)
tree87c95d455dfa7defd1e6a0791e49886db8e5dc94 /source/blender/nodes/NOD_socket.h
parentbcf49d13e53454cf79490a7e825c4a44a0144d11 (diff)
Nodes: rename node_socket.c to node_socket.cc
I have to add some C++ code in callbacks for socket types for the new particle system.
Diffstat (limited to 'source/blender/nodes/NOD_socket.h')
-rw-r--r--source/blender/nodes/NOD_socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_socket.h b/source/blender/nodes/NOD_socket.h
index b1b1a0e40c6..ce6f0da4aee 100644
--- a/source/blender/nodes/NOD_socket.h
+++ b/source/blender/nodes/NOD_socket.h
@@ -35,6 +35,10 @@
struct bNode;
struct bNodeTree;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct bNodeSocket *node_add_socket_from_template(struct bNodeTree *ntree,
struct bNode *node,
struct bNodeSocketTemplate *stemp,
@@ -46,4 +50,8 @@ void node_socket_init_default_value(struct bNodeSocket *sock);
void node_socket_copy_default_value(struct bNodeSocket *to, const struct bNodeSocket *from);
void register_standard_node_socket_types(void);
+#ifdef __cplusplus
+}
#endif
+
+#endif /* __NOD_SOCKET_H__ */