blob: 705d2eb9f542b79888a9b54ee5fc9a3b042a66be [file] [log] [blame]
/**
* @file printer_json.c
* @author Michal Vasko <mvasko@cesnet.cz>
* @author Radek Krejci <rkrejci@cesnet.cz>
* @brief JSON printer for libyang data structure
*
* Copyright (c) 2015 - 2019 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/BSD-3-Clause
*/
#include "common.h"
#include "config.h"
#include "tree_schema.h"
/**
* @brief JSON mapping of YANG modules to prefixes in values.
*
* Implementation of ly_get_prefix_clb.
*/
const char *
json_print_get_prefix(const struct lys_module *mod, void *UNUSED(private))
{
return mod->name;
}