1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/**
* @file yl_opt.h
* @author Adam Piecek <piecek@cesnet.cz>
* @brief Settings options for the libyang context.
*
* Copyright (c) 2020 - 2023 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
*/
/**
* @brief Data connected with a file provided on a command line as a file path.
*/
;
/**
* @brief Create and fill the command line file data (struct cmdline_file *).
* @param[in] set Optional parameter in case the record is supposed to be added into a set.
* @param[in] in Input file handler.
* @param[in] path Filepath of the file.
* @param[in] format Format of the data file.
* @return The created command line file structure.
* @return NULL on failure
*/
struct cmdline_file *;
/**
* @brief Free the command line file data items.
* @param[in,out] rec record to free.
*/
void ;
/**
* @brief Free the command line file data (struct cmdline_file *).
* @param[in,out] cmdline_file The (struct cmdline_file *) to free.
*/
void ;
/**
* @brief Context structure to hold and pass variables in a structured form.
*/
;
/**
* @brief Erase all values in @p opt.
*
* The yl_opt.interactive item is not deleted.
*
* @param[in,out] yo Option context to erase.
*/
void ;
/**
* @brief Update @p yo according to the @p arg of the schema --format parameter.
*
* @param[in] arg Format parameter argument (for example yang, yin, ...).
* @param[out] yo yanglint options used to update.
* @return 0 on success.
*/
int ;
/**
* @brief Update @p yo according to the @p arg of the data --format parameter.
*
* @param[in] arg Format parameter argument (for example xml, json, ...).
* @param[out] yo yanglint options used to update.
* @return 0 on success.
*/
int ;
/**
* @brief Update @p yo according to the @p arg of the general --format parameter.
*
* @param[in] arg Format parameter argument (for example yang, xml, ...).
* @param[out] yo yanglint options used to update.
* @return 0 on success.
*/
int ;
/**
* @brief Update @p yo according to the @p arg of the data --type parameter.
*
* @param[in] arg Format parameter argument (for example config, rpc, ...).
* @param[out] yo yanglint options used to update.
* @return 0 on success.
*/
int ;
/**
* @brief Update @p yo according to the @p arg of the data --default parameter.
*
* @param[in] arg Format parameter argument (for example all, trim, ...).
* @param[out] yo yanglint options used to update.
* @return 0 on success.
*/
int ;
/**
* @brief Update @p yo according to the @p arg of the data --in-format parameter.
*
* @param[in] arg Format parameter argument (for example xml, json, ...).
* @param[out] yo yanglint options used to update.
* @return 0 on success.
*/
int ;
/**
* @brief Update @p yo according to the --make-implemented parameter.
*
* @param[in,out] yo yanglint options used to update.
*/
void ;
/**
* @brief Update @p yo according to the --disable-searchdir parameter.
*
* @param[in,out] yo yanglint options used to update.
*/
void ;
/**
* @brief Helper function to prepare argc, argv pair from a command line string.
*
* @param[in] cmdline Complete command line string.
* @param[out] argc_p Pointer to store argc value.
* @param[out] argv_p Pointer to store argv vector.
* @return 0 on success, non-zero on failure.
*/
int ;
/**
* @brief Destructor for the argument vector prepared by ::parse_cmdline().
*
* @param[in,out] argv Argument vector to destroy.
*/
void ;
/* YL_OPT_H_ */