2 * Copyright (C) 2020 NetDEF, Inc.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along
15 * with this program; see the file COPYING; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 #include <libyang/libyang.h>
29 #include "pathd/path_debug.h"
31 THREAD_DATA
char _debug_buff
[DEBUG_BUFF_SIZE
];
34 * Gives the string representation of an srte_protocol_origin enum value.
36 * @param origin The enum value to convert to string
37 * @return a constant string representation of the enum value
39 const char *srte_protocol_origin_name(enum srte_protocol_origin origin
)
42 case SRTE_ORIGIN_UNDEFINED
:
44 case SRTE_ORIGIN_PCEP
:
48 case SRTE_ORIGIN_LOCAL
:
56 * Gives the string representation of an srte_candidate_type enum value.
58 * @param origin The enum value to convert to string
59 * @return a constant string representation of the enum value
61 const char *srte_candidate_type_name(enum srte_candidate_type type
)
64 case SRTE_CANDIDATE_TYPE_EXPLICIT
:
66 case SRTE_CANDIDATE_TYPE_DYNAMIC
:
68 case SRTE_CANDIDATE_TYPE_UNDEFINED
:
76 * Gives the string representation of an objfun_type enum value.
78 * @param origin The enum value to convert to string
79 * @return a constant string representation of the enum value
81 const char *objfun_type_name(enum objfun_type type
)
84 case OBJFUN_UNDEFINED
: