blob: 057bf6e6dcd55cdc2895a9db804c36326bcd62f0 [file] [log] [blame]
Radek Krejci13a57b62019-07-19 13:04:09 +02001/**
Michal Vasko90932a92020-02-12 14:33:03 +01002 * @file printer_json.c
Radek Krejci13a57b62019-07-19 13:04:09 +02003 * @author Michal Vasko <mvasko@cesnet.cz>
4 * @author Radek Krejci <rkrejci@cesnet.cz>
Michal Vasko90932a92020-02-12 14:33:03 +01005 * @brief JSON printer for libyang data structure
Radek Krejci13a57b62019-07-19 13:04:09 +02006 *
7 * Copyright (c) 2015 - 2019 CESNET, z.s.p.o.
8 *
9 * This source code is licensed under BSD 3-Clause License (the "License").
10 * You may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * https://opensource.org/licenses/BSD-3-Clause
14 */
15
16#include "common.h"
Radek Krejci535ea9f2020-05-29 16:01:05 +020017#include "config.h"
Radek Krejci13a57b62019-07-19 13:04:09 +020018#include "tree_schema.h"
19
20/**
Radek Krejcia1911222019-07-22 17:24:50 +020021 * @brief JSON mapping of YANG modules to prefixes in values.
Radek Krejci13a57b62019-07-19 13:04:09 +020022 *
23 * Implementation of ly_clb_get_prefix.
24 */
25const char *
26json_print_get_prefix(const struct lys_module *mod, void *UNUSED(private))
27{
28 return mod->name;
29}
30