]> git.droids-corp.org - protos/libecoli.git/blobdiff - lib/ecoli_node_weakref.h
save
[protos/libecoli.git] / lib / ecoli_node_weakref.h
index c29799fa09b0a3a604376fa02a8d71eb431f3867..1b6cace0f0c2d58572cc9a94994440336177ff1b 100644 (file)
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef ECOLI_NODE_BYPASS_
-#define ECOLI_NODE_BYPASS_
+#ifndef ECOLI_NODE_WEAKREF_
+#define ECOLI_NODE_WEAKREF_
 
 #include <ecoli_node.h>
 
-/* a node that just behaves like its child and that does not free
- * its child when freed.
+/* A node that just behaves like its child and that does not free
+ * its child when freed. **The child has to be freed manually**.
  *
  * useful to create cyclic graphs of nodes:
  *   creating a loop (with clones) result in something that is not
@@ -83,8 +83,6 @@
 /* on error, child is *not* freed */
 struct ec_node *ec_node_weakref(const char *id, struct ec_node *child);
 
-struct ec_node *ec_node_weakref_empty(const char *id);
-
 /* on error, child is *not* freed */
 int ec_node_weakref_set(struct ec_node *node, struct ec_node *child);