Radek Krejci | e7b9509 | 2019-05-15 11:03:07 +0200 | [diff] [blame^] | 1 | /** |
| 2 | * @file tree_data_hash.c |
| 3 | * @author Radek Krejci <rkrejci@cesnet.cz> |
| 4 | * @brief Functions to manipulate with the data node's hashes. |
| 5 | * |
| 6 | * Copyright (c) 2019 CESNET, z.s.p.o. |
| 7 | * |
| 8 | * This source code is licensed under BSD 3-Clause License (the "License"). |
| 9 | * You may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * https://opensource.org/licenses/BSD-3-Clause |
| 13 | */ |
| 14 | #include "common.h" |
| 15 | |
| 16 | #include "hash_table.h" |
| 17 | #include "tree_data.h" |
| 18 | |
| 19 | void |
| 20 | lyd_unlink_hash(struct lyd_node *node) |
| 21 | { |
| 22 | if (node->parent && node->parent->children_ht) { |
| 23 | lyht_remove(node->parent->children_ht, &node, node->hash); |
| 24 | } |
| 25 | } |