yumapro  21.10T-9
YumaPro SDK
status_enum.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3  * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4  *
5  * Unless required by applicable law or agreed to in writing,
6  * software distributed under the License is distributed on an
7  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8  * KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations
10  * under the License.
11  */
12 #ifndef _H_status_enum
13 #define _H_status_enum
14 /* FILE: status_enum.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
28 /*********************************************************************
29 * *
30 * C H A N G E H I S T O R Y *
31 * *
32 *********************************************************************
33 
34 date init comment
35 ----------------------------------------------------------------------
36 03-jan-92 abb move statusT from global.h to here
37 18-apr-96 abb adapted for gr8cgi project
38 29-sep-13 abb split out from status.h for use without libncx
39 */
40 
41 /* YPW-1746:
42  * Some customer C files including this file before including
43  * procdefs.h; Used to work in 18.10 branch but YPACK is now
44  * used from procdefs.h
45  */
46 #ifndef _H_procdefs
47 #include "procdefs.h"
48 #endif
49 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 /*********************************************************************
55 * *
56 * C O N S T A N T S *
57 * *
58 *********************************************************************/
59 
60 
72 /* group the error messages by severity */
73 #define ERR_INT_BASE 0 /* really 2, hold 'NO_ERR' here */
74 #define ERR_FIRST_INT 2
75 #define ERR_SYS_BASE 100
76 #define ERR_USR_BASE 200
77 #define ERR_WARN_BASE 1000 // ! was 400
78 #define ERR_INFO_BASE 2000 // ! was 900
79 
80 /* for backward compatability */
81 #define statusT status_t
82 
103 #define SET_ERROR(E) set_error(__FILE__, __LINE__, E, 0)
104 
105 
114 #define IS_INT_ERR(E) (((E) > 0) && ((E) < ERR_SYS_BASE))
115 
116 
125 #define IS_SYS_ERR(E) (((E) >= ERR_SYS_BASE) && ((E) < ERR_USR_BASE))
126 
127 
136 #define IS_USR_ERR(E) (((E) >= ERR_USR_BASE) && ((E) < ERR_WARN_BASE))
137 
138 
147 #define IS_WARN_ERR(E) (((E) >= ERR_WARN_BASE) && ((E) < ERR_INFO_BASE))
148 
149 
158 #define IS_INFO_ERR(E) (((E) >= ERR_INFO_BASE) && ((E) < ERR_LAST_INFO))
159 
160 
161 
162 /********************************************************************
163 * *
164 * T Y P E S *
165 * *
166 *********************************************************************/
167 
169 typedef enum errtyp_t_
170 {
177 } errtyp_t;
178 
179 
186 typedef enum status_t_
187 {
191  /* internal errors start at 2 */
192  ERR_INTERNAL_PTR=ERR_FIRST_INT,
212  ERR_FIL_OPEN=ERR_SYS_BASE,
238  /* user errors start at 200 */
239  ERR_NO_CFGFILE=ERR_USR_BASE,
489  ERR_MAKFILE_DUP_SRC=ERR_WARN_BASE,
550  ERR_PARS_SECDONE=ERR_INFO_BASE,
560 } YPACK status_t;
561 
562 
566 #ifdef __cplusplus
567 } /* end extern 'C' */
568 #endif
569 
570 #endif /* _H_status_enum */
396
Definition: status_enum.h:439
012
Definition: status_enum.h:202
238
Definition: status_enum.h:277
314
Definition: status_enum.h:357
351
Definition: status_enum.h:394
307
Definition: status_enum.h:350
335
Definition: status_enum.h:378
424
Definition: status_enum.h:469
362
Definition: status_enum.h:405
434
Definition: status_enum.h:481
1002
Definition: status_enum.h:491
259
Definition: status_enum.h:300
1021
Definition: status_enum.h:510
271
Definition: status_enum.h:312
309
Definition: status_enum.h:352
394
Definition: status_enum.h:437
1010
Definition: status_enum.h:499
398
Definition: status_enum.h:441
393
Definition: status_enum.h:436
1025
Definition: status_enum.h:514
1038
Definition: status_enum.h:527
329
Definition: status_enum.h:372
318
Definition: status_enum.h:361
297
Definition: status_enum.h:340
363
Definition: status_enum.h:406
1017
Definition: status_enum.h:506
299
Definition: status_enum.h:342
2002
Definition: status_enum.h:552
399
Definition: status_enum.h:442
311
Definition: status_enum.h:354
111
Definition: status_enum.h:223
1018
Definition: status_enum.h:507
266
Definition: status_enum.h:307
366
Definition: status_enum.h:409
1048
Definition: status_enum.h:537
211
Definition: status_enum.h:250
206
Definition: status_enum.h:245
102
Definition: status_enum.h:214
239
Definition: status_enum.h:278
319
Definition: status_enum.h:362
414
Definition: status_enum.h:457
332
Definition: status_enum.h:375
385
Definition: status_enum.h:428
397
Definition: status_enum.h:440
120
Definition: status_enum.h:232
294
Definition: status_enum.h:337
1058 - not really used
Definition: status_enum.h:547
354
Definition: status_enum.h:397
308
Definition: status_enum.h:351
383
Definition: status_enum.h:426
224
Definition: status_enum.h:263
433
Definition: status_enum.h:480
223
Definition: status_enum.h:262
346
Definition: status_enum.h:389
1004
Definition: status_enum.h:493
242
Definition: status_enum.h:281
292
Definition: status_enum.h:335
1020
Definition: status_enum.h:509
428
Definition: status_enum.h:473
333
Definition: status_enum.h:376
265
Definition: status_enum.h:306
278
Definition: status_enum.h:321
381
Definition: status_enum.h:424
304
Definition: status_enum.h:347
009
Definition: status_enum.h:199
1042
Definition: status_enum.h:531
359
Definition: status_enum.h:402
410
Definition: status_enum.h:453
230
Definition: status_enum.h:269
1003
Definition: status_enum.h:492
232
Definition: status_enum.h:271
internal error
Definition: status_enum.h:172
423
Definition: status_enum.h:468
1005
Definition: status_enum.h:494
122
Definition: status_enum.h:234
216
Definition: status_enum.h:255
1043
Definition: status_enum.h:532
103
Definition: status_enum.h:215
237
Definition: status_enum.h:276
270
Definition: status_enum.h:311
203
Definition: status_enum.h:242
261
Definition: status_enum.h:302
1036
Definition: status_enum.h:525
1014
Definition: status_enum.h:503
1047
Definition: status_enum.h:536
1013
Definition: status_enum.h:502
361
Definition: status_enum.h:404
119
Definition: status_enum.h:231
118
Definition: status_enum.h:230
402
Definition: status_enum.h:445
1045
Definition: status_enum.h:534
1011
Definition: status_enum.h:500
1049
Definition: status_enum.h:538
312
Definition: status_enum.h:355
1039
Definition: status_enum.h:528
235
Definition: status_enum.h:274
409
Definition: status_enum.h:452
272
Definition: status_enum.h:313
438 – not really used
Definition: status_enum.h:486
382
Definition: status_enum.h:425
252
Definition: status_enum.h:291
432
Definition: status_enum.h:479
367
Definition: status_enum.h:410
233
Definition: status_enum.h:272
005
Definition: status_enum.h:195
352
Definition: status_enum.h:395
1024 - NOT USED
Definition: status_enum.h:513
280
Definition: status_enum.h:323
422
Definition: status_enum.h:467
1007
Definition: status_enum.h:496
417
Definition: status_enum.h:460
356
Definition: status_enum.h:399
1046
Definition: status_enum.h:535
293
Definition: status_enum.h:336
1015
Definition: status_enum.h:504
218
Definition: status_enum.h:257
1022
Definition: status_enum.h:511
350 - 13.6
Definition: status_enum.h:393
1034
Definition: status_enum.h:523
1006
Definition: status_enum.h:495
113
Definition: status_enum.h:225
1032
Definition: status_enum.h:521
302
Definition: status_enum.h:345
256
Definition: status_enum.h:295
1031
Definition: status_enum.h:520
419
Definition: status_enum.h:462
300
Definition: status_enum.h:343
425
Definition: status_enum.h:470
258
Definition: status_enum.h:299
313
Definition: status_enum.h:356
378
Definition: status_enum.h:421
2004
Definition: status_enum.h:554
316
Definition: status_enum.h:359
262
Definition: status_enum.h:303
1035
Definition: status_enum.h:524
407
Definition: status_enum.h:450
202
Definition: status_enum.h:241
373
Definition: status_enum.h:416
115
Definition: status_enum.h:227
1050
Definition: status_enum.h:539
251
Definition: status_enum.h:290
343
Definition: status_enum.h:386
415
Definition: status_enum.h:458
379
Definition: status_enum.h:422
401
Definition: status_enum.h:444
277
Definition: status_enum.h:320
info
Definition: status_enum.h:176
system error
Definition: status_enum.h:173
267
Definition: status_enum.h:308
388
Definition: status_enum.h:431
296 - 13.6
Definition: status_enum.h:339
003
Definition: status_enum.h:193
000
Definition: status_enum.h:188
320
Definition: status_enum.h:363
236
Definition: status_enum.h:275
209
Definition: status_enum.h:248
netconf error extensions start here
Definition: status_enum.h:319
1012
Definition: status_enum.h:501
1055
Definition: status_enum.h:544
386
Definition: status_enum.h:429
245
Definition: status_enum.h:284
123
Definition: status_enum.h:235
001
Definition: status_enum.h:189
1053
Definition: status_enum.h:542
106
Definition: status_enum.h:218
347
Definition: status_enum.h:390
1056
Definition: status_enum.h:545
errtyp_t
error type
Definition: status_enum.h:169
system errors start at 100
Definition: status_enum.h:212
412
Definition: status_enum.h:455
405
Definition: status_enum.h:448
1027
Definition: status_enum.h:516
017
Definition: status_enum.h:207
207
Definition: status_enum.h:246
107
Definition: status_enum.h:219
389
Definition: status_enum.h:432
234
Definition: status_enum.h:273
273
Definition: status_enum.h:314
200
Definition: status_enum.h:239
281
Definition: status_enum.h:324
121
Definition: status_enum.h:233
240
Definition: status_enum.h:279
011
Definition: status_enum.h:201
369
Definition: status_enum.h:412
340 - obsolete
Definition: status_enum.h:383
1019
Definition: status_enum.h:508
112
Definition: status_enum.h:224
002
Definition: status_enum.h:192
353
Definition: status_enum.h:396
375
Definition: status_enum.h:418
342
Definition: status_enum.h:385
303
Definition: status_enum.h:346
006
Definition: status_enum.h:196
286
Definition: status_enum.h:329
104
Definition: status_enum.h:216
1008
Definition: status_enum.h:497
2005
Definition: status_enum.h:555
1016
Definition: status_enum.h:505
status_t
global error return code
Definition: status_enum.h:186
2006
Definition: status_enum.h:556
243
Definition: status_enum.h:282
427
Definition: status_enum.h:472
291
Definition: status_enum.h:334
226
Definition: status_enum.h:265
016
Definition: status_enum.h:206
328
Definition: status_enum.h:371
2008 - not really used
Definition: status_enum.h:558
212
Definition: status_enum.h:251
ietf-subscribed-notifications errors (421 - 428)
Definition: status_enum.h:466
295
Definition: status_enum.h:338
435
Definition: status_enum.h:482
263
Definition: status_enum.h:304
377
Definition: status_enum.h:420
105
Definition: status_enum.h:217
1051
Definition: status_enum.h:540
322
Definition: status_enum.h:365
416
Definition: status_enum.h:459
253
Definition: status_enum.h:292
436
Definition: status_enum.h:483
403
Definition: status_enum.h:446
345
Definition: status_enum.h:388
008
Definition: status_enum.h:198
391
Definition: status_enum.h:434
370
Definition: status_enum.h:413
1026
Definition: status_enum.h:515
324
Definition: status_enum.h:367
430
Definition: status_enum.h:477
250
Definition: status_enum.h:289
392
Definition: status_enum.h:435
437
Definition: status_enum.h:484
1044
Definition: status_enum.h:533
1029
Definition: status_enum.h:518
357
Definition: status_enum.h:400
210
Definition: status_enum.h:249
371
Definition: status_enum.h:414
331
Definition: status_enum.h:374
018 – used by the C++ API
Definition: status_enum.h:208
387
Definition: status_enum.h:430
004
Definition: status_enum.h:194
374
Definition: status_enum.h:417
2003
Definition: status_enum.h:553
019 – not really used
Definition: status_enum.h:209
114
Definition: status_enum.h:226
325
Definition: status_enum.h:368
249
Definition: status_enum.h:288
283
Definition: status_enum.h:326
372
Definition: status_enum.h:415
2001
Definition: status_enum.h:551
285
Definition: status_enum.h:328
116
Definition: status_enum.h:228
305
Definition: status_enum.h:348
323
Definition: status_enum.h:366
284
Definition: status_enum.h:327
231
Definition: status_enum.h:270
264
Definition: status_enum.h:305
247
Definition: status_enum.h:286
413
Definition: status_enum.h:456
244
Definition: status_enum.h:283
355
Definition: status_enum.h:398
110
Definition: status_enum.h:222
205
Definition: status_enum.h:244
1030
Definition: status_enum.h:519
255
Definition: status_enum.h:294
015
Definition: status_enum.h:205
289
Definition: status_enum.h:332
220
Definition: status_enum.h:259
014
Definition: status_enum.h:204
288
Definition: status_enum.h:331
336 - 13.1
Definition: status_enum.h:379
system info return codes start at 2000 (was 900)
Definition: status_enum.h:550
215
Definition: status_enum.h:254
310 - 13.5
Definition: status_enum.h:353
287
Definition: status_enum.h:330
user error
Definition: status_enum.h:174
380
Definition: status_enum.h:423
406
Definition: status_enum.h:449
1040
Definition: status_enum.h:529
109
Definition: status_enum.h:221
334
Definition: status_enum.h:377
349
Definition: status_enum.h:392
344
Definition: status_enum.h:387
1033
Definition: status_enum.h:522
1009
Definition: status_enum.h:498
241
Definition: status_enum.h:280
1028
Definition: status_enum.h:517
219
Definition: status_enum.h:258
395
Definition: status_enum.h:438
124 – not really used
Definition: status_enum.h:236
warning
Definition: status_enum.h:175
227
Definition: status_enum.h:266
101
Definition: status_enum.h:213
007
Definition: status_enum.h:197
not set
Definition: status_enum.h:171
1057
Definition: status_enum.h:546
298
Definition: status_enum.h:341
321
Definition: status_enum.h:364
ietf-yang-push errors (429 - 437)
Definition: status_enum.h:476
420
Definition: status_enum.h:463
254
Definition: status_enum.h:293
408
Definition: status_enum.h:451
269
Definition: status_enum.h:310
418
Definition: status_enum.h:461
268
Definition: status_enum.h:309
368
Definition: status_enum.h:411
341 - 13.8
Definition: status_enum.h:384
013
Definition: status_enum.h:203
1037
Definition: status_enum.h:526
204
Definition: status_enum.h:243
2007
Definition: status_enum.h:557
411
Definition: status_enum.h:454
290
Definition: status_enum.h:333
317
Definition: status_enum.h:360
337 - 13.2
Definition: status_enum.h:380
364
Definition: status_enum.h:407
404
Definition: status_enum.h:447
301
Definition: status_enum.h:344
228
Definition: status_enum.h:267
108
Definition: status_enum.h:220
201
Definition: status_enum.h:240
010
Definition: status_enum.h:200
248
Definition: status_enum.h:287
221
Definition: status_enum.h:260
426
Definition: status_enum.h:471
400
Definition: status_enum.h:443
match netconf errors (257 - 275)
Definition: status_enum.h:298
260
Definition: status_enum.h:301
274
Definition: status_enum.h:315
214
Definition: status_enum.h:253
213
Definition: status_enum.h:252
1001
Definition: status_enum.h:490
217
Definition: status_enum.h:256
246
Definition: status_enum.h:285
306
Definition: status_enum.h:349
1052
Definition: status_enum.h:541
365
Definition: status_enum.h:408
327
Definition: status_enum.h:370
1023
Definition: status_enum.h:512
user warnings start at 1000 (was 400)
Definition: status_enum.h:489
339 - 13.4
Definition: status_enum.h:382
376
Definition: status_enum.h:419
431
Definition: status_enum.h:478
117
Definition: status_enum.h:229
330
Definition: status_enum.h:373
282
Definition: status_enum.h:325
315
Definition: status_enum.h:358
384
Definition: status_enum.h:427
390
Definition: status_enum.h:433
275
Definition: status_enum.h:316
326
Definition: status_enum.h:369
279
Definition: status_enum.h:322
358
Definition: status_enum.h:401
1054
Definition: status_enum.h:543
229
Definition: status_enum.h:268
225
Definition: status_enum.h:264
338 - 13.3
Definition: status_enum.h:381
360
Definition: status_enum.h:403
348
Definition: status_enum.h:391
222
Definition: status_enum.h:261
208
Definition: status_enum.h:247
1041 - removed; not used
Definition: status_enum.h:530