blob: 1ef430940e0f485922b0c3adbc04d1d28555dbcc [file] [log] [blame]
Radek Krejci13a57b62019-07-19 13:04:09 +02001/**
2 * @file printer_xml.c
3 * @author Michal Vasko <mvasko@cesnet.cz>
4 * @author Radek Krejci <rkrejci@cesnet.cz>
5 * @brief XML printer for libyang data structure
6 *
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"
17
18#include <stdlib.h>
19#include <string.h>
20
21#include "log.h"
22#include "plugins_types.h"
23#include "printer_data.h"
24#include "printer_internal.h"
25#include "tree.h"
26#include "tree_data.h"
27#include "tree_schema.h"
28
29/**
Radek Krejcia1911222019-07-22 17:24:50 +020030 * @brief JSON mapping of YANG modules to prefixes in values.
Radek Krejci13a57b62019-07-19 13:04:09 +020031 *
32 * Implementation of ly_clb_get_prefix.
33 */
34const char *
35json_print_get_prefix(const struct lys_module *mod, void *UNUSED(private))
36{
37 return mod->name;
38}
39