blob: 546b2fd607c07ff69a6a6bd9ed68ae5234759914 [file] [log] [blame]
Radek Krejcie7b95092019-05-15 11:03:07 +02001/**
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
19void
20lyd_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}