This file is indexed.

/usr/include/libdvbv5/countries.h is in libdvbv5-dev 1.10.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
/*
 * Copyright (C) 2006, 2007, 2008, 2009 Winfried Koehler
 * Copyright (C) 2014 Akihiro Tsukada
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. if not, see <http://www.gnu.org/licenses/>.
 *
 */

/**
 * @file countries.h
 * @ingroup ancillary
 * @brief Provides ancillary code to convert ISO 3166-1 country codes
 * @copyright GNU General Public License version 2 (GPLv2)
 * @author Winfried Koehler
 * @author Akihiro Tsukada
 *
 * @par Bug Report
 * Please submit bug reports and patches to linux-media@vger.kernel.org
 */

#ifndef _COUNTRIES_H_
#define _COUNTRIES_H_

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @enum dvb_country_t
 * @brief ISO-3166-1 alpha-2 country code
 * @ingroup ancillary
 *
 * @var COUNTRY_UNKNOWN
 *	@brief (Unknown Country)
 * @var AD
 *	@brief Andorra
 * @var AE
 *	@brief United Arab Emirates
 * @var AF
 *	@brief Afghanistan
 * @var AG
 *	@brief Antigua and Barbuda
 * @var AI
 *	@brief Anguilla
 * @var AL
 *	@brief Albania
 * @var AM
 *	@brief Armenia
 * @var AO
 *	@brief Angola
 * @var AQ
 *	@brief Antarctica
 * @var AR
 *	@brief Argentina
 * @var AS
 *	@brief American Samoa
 * @var AT
 *	@brief Austria
 * @var AU
 *	@brief Australia
 * @var AW
 *	@brief Aruba
 * @var AX
 *	@brief Aland Islands
 * @var AZ
 *	@brief Azerbaijan
 * @var BA
 *	@brief Bosnia and Herzegovina
 * @var BB
 *	@brief Barbados
 * @var BD
 *	@brief Bangladesh
 * @var BE
 *	@brief Belgium
 * @var BF
 *	@brief Burkina Faso
 * @var BG
 *	@brief Bulgaria
 * @var BH
 *	@brief Bahrain
 * @var BI
 *	@brief Burundi
 * @var BJ
 *	@brief Benin
 * @var BL
 *	@brief Saint Barthelemy
 * @var BM
 *	@brief Bermuda
 * @var BN
 *	@brief Brunei Darussalam
 * @var BO
 *	@brief Plurinational State of Bolivia
 * @var BQ
 *	@brief Bonaire, Saint Eustatius and Saba
 * @var BR
 *	@brief Brazil
 * @var BS
 *	@brief Bahamas
 * @var BT
 *	@brief Bhutan
 * @var BV
 *	@brief Bouvet Island
 * @var BW
 *	@brief Botswana
 * @var BY
 *	@brief Belarus
 * @var BZ
 *	@brief Belize
 * @var CA
 *	@brief Canada
 * @var CC
 *	@brief Cocos (Keeling) Islands
 * @var CD
 *	@brief The Democratic Republic of the Congo
 * @var CF
 *	@brief Central African Republic
 * @var CG
 *	@brief Congo
 * @var CH
 *	@brief Switzerland
 * @var CI
 *	@brief Cote d'Ivoire
 * @var CK
 *	@brief Cook Islands
 * @var CL
 *	@brief Chile
 * @var CM
 *	@brief Cameroon
 * @var CN
 *	@brief China
 * @var CO
 *	@brief Colombia
 * @var CR
 *	@brief Costa Rica
 * @var CU
 *	@brief Cuba
 * @var CV
 *	@brief Cape Verde
 * @var CW
 *	@brief Curacao
 * @var CX
 *	@brief Christmas Island
 * @var CY
 *	@brief Cyprus
 * @var CZ
 *	@brief Czech Republic
 * @var DE
 *	@brief Germany
 * @var DJ
 *	@brief Djibouti
 * @var DK
 *	@brief Denmark
 * @var DM
 *	@brief Dominica
 * @var DO
 *	@brief Dominican Republic
 * @var DZ
 *	@brief Algeria
 * @var EC
 *	@brief Ecuador
 * @var EE
 *	@brief Estonia
 * @var EG
 *	@brief Egypt
 * @var EH
 *	@brief Western Sahara
 * @var ER
 *	@brief Eritrea
 * @var ES
 *	@brief Spain
 * @var ET
 *	@brief Ethiopia
 * @var FI
 *	@brief Finland
 * @var FJ
 *	@brief Fiji
 * @var FK
 *	@brief Falkland Islands (Malvinas)
 * @var FM
 *	@brief Federated States of Micronesia
 * @var FO
 *	@brief Faroe Islands
 * @var FR
 *	@brief France
 * @var GA
 *	@brief Gabon
 * @var GB
 *	@brief United Kingdom
 * @var GD
 *	@brief Grenada
 * @var GE
 *	@brief Georgia
 * @var GF
 *	@brief French Guiana
 * @var GG
 *	@brief Guernsey
 * @var GH
 *	@brief Ghana
 * @var GI
 *	@brief Gibraltar
 * @var GL
 *	@brief Greenland
 * @var GM
 *	@brief Gambia
 * @var GN
 *	@brief Guinea
 * @var GP
 *	@brief Guadeloupe
 * @var GQ
 *	@brief Equatorial Guinea
 * @var GR
 *	@brief Greece
 * @var GS
 *	@brief South Georgia and the South Sandwich Islands
 * @var GT
 *	@brief Guatemala
 * @var GU
 *	@brief Guam
 * @var GW
 *	@brief Guinea-Bissau
 * @var GY
 *	@brief Guyana
 * @var HK
 *	@brief Hong Kong
 * @var HM
 *	@brief Heard Island and McDonald Islands
 * @var HN
 *	@brief Honduras
 * @var HR
 *	@brief Croatia
 * @var HT
 *	@brief Haiti
 * @var HU
 *	@brief Hungary
 * @var ID
 *	@brief Indonesia
 * @var IE
 *	@brief Ireland
 * @var IL
 *	@brief Israel
 * @var IM
 *	@brief Isle of Man
 * @var IN
 *	@brief India
 * @var IO
 *	@brief British Indian Ocean Territory
 * @var IQ
 *	@brief Iraq
 * @var IR
 *	@brief Islamic Republic of Iran
 * @var IS
 *	@brief Iceland
 * @var IT
 *	@brief Italy
 * @var JE
 *	@brief Jersey
 * @var JM
 *	@brief Jamaica
 * @var JO
 *	@brief Jordan
 * @var JP
 *	@brief Japan
 * @var KE
 *	@brief Kenya
 * @var KG
 *	@brief Kyrgyzstan
 * @var KH
 *	@brief Cambodia
 * @var KI
 *	@brief Kiribati
 * @var KM
 *	@brief Comoros
 * @var KN
 *	@brief Saint Kitts and Nevis
 * @var KP
 *	@brief Democratic People's Republic of Korea
 * @var KR
 *	@brief Republic of Korea
 * @var KW
 *	@brief Kuwait
 * @var KY
 *	@brief Cayman Islands
 * @var KZ
 *	@brief Kazakhstan
 * @var LA
 *	@brief Lao People's Democratic Republic
 * @var LB
 *	@brief Lebanon
 * @var LC
 *	@brief Saint Lucia
 * @var LI
 *	@brief Liechtenstein
 * @var LK
 *	@brief Sri Lanka
 * @var LR
 *	@brief Liberia
 * @var LS
 *	@brief Lesotho
 * @var LT
 *	@brief Lithuania
 * @var LU
 *	@brief Luxembourg
 * @var LV
 *	@brief Latvia
 * @var LY
 *	@brief Libyan Arab Jamahiriya
 * @var MA
 *	@brief Morocco
 * @var MC
 *	@brief Monaco
 * @var MD
 *	@brief Republic of Moldova
 * @var ME
 *	@brief Montenegro
 * @var MF
 *	@brief Saint Martin (French part)
 * @var MG
 *	@brief Madagascar
 * @var MH
 *	@brief Marshall Islands
 * @var MK
 *	@brief The Former Yugoslav Republic of Macedonia
 * @var ML
 *	@brief Mali
 * @var MM
 *	@brief Myanmar
 * @var MN
 *	@brief Mongolia
 * @var MO
 *	@brief Macao
 * @var MP
 *	@brief Northern Mariana Islands
 * @var MQ
 *	@brief Martinique
 * @var MR
 *	@brief Mauritania
 * @var MS
 *	@brief Montserrat
 * @var MT
 *	@brief Malta
 * @var MU
 *	@brief Mauritius
 * @var MV
 *	@brief Maldives
 * @var MW
 *	@brief Malawi
 * @var MX
 *	@brief Mexico
 * @var MY
 *	@brief Malaysia
 * @var MZ
 *	@brief Mozambique
 * @var NA
 *	@brief Namibia
 * @var NC
 *	@brief New Caledonia
 * @var NE
 *	@brief Niger
 * @var NF
 *	@brief Norfolk Island
 * @var NG
 *	@brief Nigeria
 * @var NI
 *	@brief Nicaragua
 * @var NL
 *	@brief Netherlands
 * @var NO
 *	@brief Norway
 * @var NP
 *	@brief Nepal
 * @var NR
 *	@brief Nauru
 * @var NU
 *	@brief Niue
 * @var NZ
 *	@brief New Zealand
 * @var OM
 *	@brief Oman
 * @var PA
 *	@brief Panama
 * @var PE
 *	@brief Peru
 * @var PF
 *	@brief French Polynesia
 * @var PG
 *	@brief Papua New Guinea
 * @var PH
 *	@brief Philippines
 * @var PK
 *	@brief Pakistan
 * @var PL
 *	@brief Poland
 * @var PM
 *	@brief Saint Pierre and Miquelon
 * @var PN
 *	@brief Pitcairn
 * @var PR
 *	@brief Puerto Rico
 * @var PS
 *	@brief Occupied Palestinian Territory
 * @var PT
 *	@brief Portugal
 * @var PW
 *	@brief Palau
 * @var PY
 *	@brief Paraguay
 * @var QA
 *	@brief Qatar
 * @var RE
 *	@brief Reunion
 * @var RO
 *	@brief Romania
 * @var RS
 *	@brief Serbia
 * @var RU
 *	@brief Russian Federation
 * @var RW
 *	@brief Rwanda
 * @var SA
 *	@brief Saudi Arabia
 * @var SB
 *	@brief Solomon Islands
 * @var SC
 *	@brief Seychelles
 * @var SD
 *	@brief Sudan
 * @var SE
 *	@brief Sweden
 * @var SG
 *	@brief Singapore
 * @var SH
 *	@brief Saint Helena, Ascension and Tristan da Cunha
 * @var SI
 *	@brief Slovenia
 * @var SJ
 *	@brief Svalbard and Jan Mayen
 * @var SK
 *	@brief Slovakia
 * @var SL
 *	@brief Sierra Leone
 * @var SM
 *	@brief San Marino
 * @var SN
 *	@brief Senegal
 * @var SO
 *	@brief Somalia
 * @var SR
 *	@brief Suriname
 * @var SS
 *	@brief South Sudan
 * @var ST
 *	@brief Sao Tome and Principe
 * @var SV
 *	@brief El Salvador
 * @var SX
 *	@brief Sint Maarten (Dutch part)
 * @var SY
 *	@brief Syrian Arab Republic
 * @var SZ
 *	@brief Swaziland
 * @var TC
 *	@brief Turks and Caicos Islands
 * @var TD
 *	@brief Chad
 * @var TF
 *	@brief French Southern Territories
 * @var TG
 *	@brief Togo
 * @var TH
 *	@brief Thailand
 * @var TJ
 *	@brief Tajikistan
 * @var TK
 *	@brief Tokelau
 * @var TL
 *	@brief Timor-Leste
 * @var TM
 *	@brief Turkmenistan
 * @var TN
 *	@brief Tunisia
 * @var TO
 *	@brief Tonga
 * @var TR
 *	@brief Turkey
 * @var TT
 *	@brief Trinidad and Tobago
 * @var TV
 *	@brief Tuvalu
 * @var TW
 *	@brief Taiwan, Province of China
 * @var TZ
 *	@brief United Republic of Tanzania
 * @var UA
 *	@brief Ukraine
 * @var UG
 *	@brief Uganda
 * @var UM
 *	@brief United States Minor Outlying Islands
 * @var US
 *	@brief United States
 * @var UY
 *	@brief Uruguay
 * @var UZ
 *	@brief Uzbekistan
 * @var VA
 *	@brief Holy See (Vatican City State)
 * @var VC
 *	@brief Saint Vincent and The Grenadines
 * @var VE
 *	@brief Bolivarian Republic of Venezuela
 * @var VG
 *	@brief British Virgin Islands
 * @var VI
 *	@brief U.S. Virgin Islands
 * @var VN
 *	@brief Viet Nam
 * @var VU
 *	@brief Vanuatu
 * @var WF
 *	@brief Wallis and Futuna
 * @var WS
 *	@brief Samoa
 * @var YE
 *	@brief Yemen
 * @var YT
 *	@brief Mayotte
 * @var ZA
 *	@brief South Africa
 * @var ZM
 *	@brief Zambia
 * @var ZW
 *	@brief Zimbabwe
 */
enum dvb_country_t {
    COUNTRY_UNKNOWN,

    AD,
    AE,
    AF,
    AG,
    AI,
    AL,
    AM,
    AO,
    AQ,
    AR,
    AS,
    AT,
    AU,
    AW,
    AX,
    AZ,
    BA,
    BB,
    BD,
    BE,
    BF,
    BG,
    BH,
    BI,
    BJ,
    BL,
    BM,
    BN,
    BO,
    BQ,
    BR,
    BS,
    BT,
    BV,
    BW,
    BY,
    BZ,
    CA,
    CC,
    CD,
    CF,
    CG,
    CH,
    CI,
    CK,
    CL,
    CM,
    CN,
    CO,
    CR,
    CU,
    CV,
    CW,
    CX,
    CY,
    CZ,
    DE,
    DJ,
    DK,
    DM,
    DO,
    DZ,
    EC,
    EE,
    EG,
    EH,
    ER,
    ES,
    ET,
    FI,
    FJ,
    FK,
    FM,
    FO,
    FR,
    GA,
    GB,
    GD,
    GE,
    GF,
    GG,
    GH,
    GI,
    GL,
    GM,
    GN,
    GP,
    GQ,
    GR,
    GS,
    GT,
    GU,
    GW,
    GY,
    HK,
    HM,
    HN,
    HR,
    HT,
    HU,
    ID,
    IE,
    IL,
    IM,
    IN,
    IO,
    IQ,
    IR,
    IS,
    IT,
    JE,
    JM,
    JO,
    JP,
    KE,
    KG,
    KH,
    KI,
    KM,
    KN,
    KP,
    KR,
    KW,
    KY,
    KZ,
    LA,
    LB,
    LC,
    LI,
    LK,
    LR,
    LS,
    LT,
    LU,
    LV,
    LY,
    MA,
    MC,
    MD,
    ME,
    MF,
    MG,
    MH,
    MK,
    ML,
    MM,
    MN,
    MO,
    MP,
    MQ,
    MR,
    MS,
    MT,
    MU,
    MV,
    MW,
    MX,
    MY,
    MZ,
    NA,
    NC,
    NE,
    NF,
    NG,
    NI,
    NL,
    NO,
    NP,
    NR,
    NU,
    NZ,
    OM,
    PA,
    PE,
    PF,
    PG,
    PH,
    PK,
    PL,
    PM,
    PN,
    PR,
    PS,
    PT,
    PW,
    PY,
    QA,
    RE,
    RO,
    RS,
    RU,
    RW,
    SA,
    SB,
    SC,
    SD,
    SE,
    SG,
    SH,
    SI,
    SJ,
    SK,
    SL,
    SM,
    SN,
    SO,
    SR,
    SS,
    ST,
    SV,
    SX,
    SY,
    SZ,
    TC,
    TD,
    TF,
    TG,
    TH,
    TJ,
    TK,
    TL,
    TM,
    TN,
    TO,
    TR,
    TT,
    TV,
    TW,
    TZ,
    UA,
    UG,
    UM,
    US,
    UY,
    UZ,
    VA,
    VC,
    VE,
    VG,
    VI,
    VN,
    VU,
    WF,
    WS,
    YE,
    YT,
    ZA,
    ZM,
    ZW,
};

/**
 * @brief Converts an Unix-like 2-letter Country code into enum dvb_country_t
 * @ingroup ancillary
 *
 * @param name	two-letter Country code.
 *
 * @return It returns the corresponding enum dvb_country_t ID. If not found,
 * 		returns COUNTRY_UNKNOWN.
 */
enum dvb_country_t dvb_country_a2_to_id(const char *name);

/**
 * @brief Converts a 3-letter Country code as used by MPEG-TS tables into
 *	  enum dvb_country_t
 * @ingroup ancillary
 *
 * @param name	three-letter Country code.
 *
 * @return It returns the corresponding enum dvb_country_t ID. If not found,
 * 		returns COUNTRY_UNKNOWN.
 */
enum dvb_country_t dvb_country_a3_to_id(const char *name);

/**
 * @brief Converts an enum dvb_country_t into Unix-like 2-letter Country code
 * @ingroup ancillary
 *
 * @param id	enum dvb_country_t ID.
 *
 * @return It returns the 2-letter country code string that corresponts to the
 *	   Country. If not found, returns NULL.
 */
const char *dvb_country_to_2letters(int id);

/**
 * @brief Converts an enum dvb_country_t into a 3-letter Country code
 * 	  as used by MPEG-TS tables
 * @ingroup ancillary
 *
 * @param id	enum dvb_country_t ID.
 *
 * @return It returns the 3-letter country code string that corresponts to the
 *	   Country. If not found, returns NULL.
 */
const char *dvb_country_to_3letters(int id);

/**
 * @brief Converts an enum dvb_country_t into a Country name
 * 	  as used by MPEG-TS tables
 * @ingroup ancillary
 *
 * @param id	enum dvb_country_t ID.
 *
 * @return It returns a string with the Country name that corresponts to the
 *	   country. If not found, returns NULL.
 */
const char *dvb_country_to_name(int id);

/**
 * @brief Guess the country code from the Unix environment variables
 * @ingroup ancillary
 *
 * @return It returns the corresponding enum dvb_country_t ID. If not found,
 * 		returns COUNTRY_UNKNOWN.
 */
enum dvb_country_t dvb_guess_user_country(void);

#ifdef __cplusplus
}
#endif

#endif