libdvbv5  1.20.0
Library to work with Digital TV devices on Linux
countries.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006, 2007, 2008, 2009 Winfried Koehler
3  * Copyright (C) 2014 Akihiro Tsukada
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation version 2.1 of the License.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. if not, see <http://www.gnu.org/licenses/>.
16  *
17  */
18 
31 #ifndef _COUNTRIES_H_
32 #define _COUNTRIES_H_
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
546 
547  AD,
548  AE,
549  AF,
550  AG,
551  AI,
552  AL,
553  AM,
554  AO,
555  AQ,
556  AR,
557  AS,
558  AT,
559  AU,
560  AW,
561  AX,
562  AZ,
563  BA,
564  BB,
565  BD,
566  BE,
567  BF,
568  BG,
569  BH,
570  BI,
571  BJ,
572  BL,
573  BM,
574  BN,
575  BO,
576  BQ,
577  BR,
578  BS,
579  BT,
580  BV,
581  BW,
582  BY,
583  BZ,
584  CA,
585  CC,
586  CD,
587  CF,
588  CG,
589  CH,
590  CI,
591  CK,
592  CL,
593  CM,
594  CN,
595  CO,
596  CR,
597  CU,
598  CV,
599  CW,
600  CX,
601  CY,
602  CZ,
603  DE,
604  DJ,
605  DK,
606  DM,
607  DO,
608  DZ,
609  EC,
610  EE,
611  EG,
612  EH,
613  ER,
614  ES,
615  ET,
616  FI,
617  FJ,
618  FK,
619  FM,
620  FO,
621  FR,
622  GA,
623  GB,
624  GD,
625  GE,
626  GF,
627  GG,
628  GH,
629  GI,
630  GL,
631  GM,
632  GN,
633  GP,
634  GQ,
635  GR,
636  GS,
637  GT,
638  GU,
639  GW,
640  GY,
641  HK,
642  HM,
643  HN,
644  HR,
645  HT,
646  HU,
647  ID,
648  IE,
649  IL,
650  IM,
651  IN,
652  IO,
653  IQ,
654  IR,
655  IS,
656  IT,
657  JE,
658  JM,
659  JO,
660  JP,
661  KE,
662  KG,
663  KH,
664  KI,
665  KM,
666  KN,
667  KP,
668  KR,
669  KW,
670  KY,
671  KZ,
672  LA,
673  LB,
674  LC,
675  LI,
676  LK,
677  LR,
678  LS,
679  LT,
680  LU,
681  LV,
682  LY,
683  MA,
684  MC,
685  MD,
686  ME,
687  MF,
688  MG,
689  MH,
690  MK,
691  ML,
692  MM,
693  MN,
694  MO,
695  MP,
696  MQ,
697  MR,
698  MS,
699  MT,
700  MU,
701  MV,
702  MW,
703  MX,
704  MY,
705  MZ,
706  NA,
707  NC,
708  NE,
709  NF,
710  NG,
711  NI,
712  NL,
713  NO,
714  NP,
715  NR,
716  NU,
717  NZ,
718  OM,
719  PA,
720  PE,
721  PF,
722  PG,
723  PH,
724  PK,
725  PL,
726  PM,
727  PN,
728  PR,
729  PS,
730  PT,
731  PW,
732  PY,
733  QA,
734  RE,
735  RO,
736  RS,
737  RU,
738  RW,
739  SA,
740  SB,
741  SC,
742  SD,
743  SE,
744  SG,
745  SH,
746  SI,
747  SJ,
748  SK,
749  SL,
750  SM,
751  SN,
752  SO,
753  SR,
754  SS,
755  ST,
756  SV,
757  SX,
758  SY,
759  SZ,
760  TC,
761  TD,
762  TF,
763  TG,
764  TH,
765  TJ,
766  TK,
767  TL,
768  TM,
769  TN,
770  TO,
771  TR,
772  TT,
773  TV,
774  TW,
775  TZ,
776  UA,
777  UG,
778  UM,
779  US,
780  UY,
781  UZ,
782  VA,
783  VC,
784  VE,
785  VG,
786  VI,
787  VN,
788  VU,
789  WF,
790  WS,
791  YE,
792  YT,
793  ZA,
794  ZM,
795  ZW,
796 };
797 
807 enum dvb_country_t dvb_country_a2_to_id(const char *name);
808 
819 enum dvb_country_t dvb_country_a3_to_id(const char *name);
820 
830 const char *dvb_country_to_2letters(int id);
831 
842 const char *dvb_country_to_3letters(int id);
843 
854 const char *dvb_country_to_name(int id);
855 
864 
865 #ifdef __cplusplus
866 }
867 #endif
868 
869 #endif
NZ
@ NZ
New Zealand.
Definition: countries.h:717
PF
@ PF
French Polynesia.
Definition: countries.h:721
SY
@ SY
Syrian Arab Republic.
Definition: countries.h:758
KG
@ KG
Kyrgyzstan.
Definition: countries.h:662
SE
@ SE
Sweden.
Definition: countries.h:743
AE
@ AE
United Arab Emirates.
Definition: countries.h:548
TJ
@ TJ
Tajikistan.
Definition: countries.h:765
IQ
@ IQ
Iraq.
Definition: countries.h:653
DK
@ DK
Denmark.
Definition: countries.h:605
CK
@ CK
Cook Islands.
Definition: countries.h:591
ZM
@ ZM
Zambia.
Definition: countries.h:794
BG
@ BG
Bulgaria.
Definition: countries.h:568
BS
@ BS
Bahamas.
Definition: countries.h:578
TG
@ TG
Togo.
Definition: countries.h:763
VU
@ VU
Vanuatu.
Definition: countries.h:788
HT
@ HT
Haiti.
Definition: countries.h:645
LK
@ LK
Sri Lanka.
Definition: countries.h:676
MS
@ MS
Montserrat.
Definition: countries.h:698
BR
@ BR
Brazil.
Definition: countries.h:577
EC
@ EC
Ecuador.
Definition: countries.h:609
BO
@ BO
Plurinational State of Bolivia.
Definition: countries.h:575
PY
@ PY
Paraguay.
Definition: countries.h:732
MW
@ MW
Malawi.
Definition: countries.h:702
GE
@ GE
Georgia.
Definition: countries.h:625
RS
@ RS
Serbia.
Definition: countries.h:736
SX
@ SX
Sint Maarten (Dutch part)
Definition: countries.h:757
CO
@ CO
Colombia.
Definition: countries.h:595
BD
@ BD
Bangladesh.
Definition: countries.h:565
MN
@ MN
Mongolia.
Definition: countries.h:693
VE
@ VE
Bolivarian Republic of Venezuela.
Definition: countries.h:784
HR
@ HR
Croatia.
Definition: countries.h:644
MP
@ MP
Northern Mariana Islands.
Definition: countries.h:695
BV
@ BV
Bouvet Island.
Definition: countries.h:580
MC
@ MC
Monaco.
Definition: countries.h:684
dvb_country_to_name
const char * dvb_country_to_name(int id)
Converts an enum dvb_country_t into a Country name as used by MPEG-TS tables.
ET
@ ET
Ethiopia.
Definition: countries.h:615
NL
@ NL
Netherlands.
Definition: countries.h:712
PH
@ PH
Philippines.
Definition: countries.h:723
TN
@ TN
Tunisia.
Definition: countries.h:769
AM
@ AM
Armenia.
Definition: countries.h:553
CD
@ CD
The Democratic Republic of the Congo.
Definition: countries.h:586
KN
@ KN
Saint Kitts and Nevis.
Definition: countries.h:666
GB
@ GB
United Kingdom.
Definition: countries.h:623
TK
@ TK
Tokelau.
Definition: countries.h:766
KW
@ KW
Kuwait.
Definition: countries.h:669
NG
@ NG
Nigeria.
Definition: countries.h:710
VG
@ VG
British Virgin Islands.
Definition: countries.h:785
LV
@ LV
Latvia.
Definition: countries.h:681
SI
@ SI
Slovenia.
Definition: countries.h:746
TH
@ TH
Thailand.
Definition: countries.h:764
VN
@ VN
Viet Nam.
Definition: countries.h:787
ME
@ ME
Montenegro.
Definition: countries.h:686
DM
@ DM
Dominica.
Definition: countries.h:606
KP
@ KP
Democratic People's Republic of Korea.
Definition: countries.h:667
dvb_country_to_2letters
const char * dvb_country_to_2letters(int id)
Converts an enum dvb_country_t into Unix-like 2-letter Country code.
GD
@ GD
Grenada.
Definition: countries.h:624
QA
@ QA
Qatar.
Definition: countries.h:733
EG
@ EG
Egypt.
Definition: countries.h:611
TO
@ TO
Tonga.
Definition: countries.h:770
BA
@ BA
Bosnia and Herzegovina.
Definition: countries.h:563
SS
@ SS
South Sudan.
Definition: countries.h:754
GH
@ GH
Ghana.
Definition: countries.h:628
PR
@ PR
Puerto Rico.
Definition: countries.h:728
JE
@ JE
Jersey.
Definition: countries.h:657
SR
@ SR
Suriname.
Definition: countries.h:753
CC
@ CC
Cocos (Keeling) Islands.
Definition: countries.h:585
PN
@ PN
Pitcairn.
Definition: countries.h:727
AQ
@ AQ
Antarctica.
Definition: countries.h:555
TT
@ TT
Trinidad and Tobago.
Definition: countries.h:772
IL
@ IL
Israel.
Definition: countries.h:649
SO
@ SO
Somalia.
Definition: countries.h:752
MZ
@ MZ
Mozambique.
Definition: countries.h:705
NC
@ NC
New Caledonia.
Definition: countries.h:707
CY
@ CY
Cyprus.
Definition: countries.h:601
BM
@ BM
Bermuda.
Definition: countries.h:573
DO
@ DO
Dominican Republic.
Definition: countries.h:607
LT
@ LT
Lithuania.
Definition: countries.h:679
AF
@ AF
Afghanistan.
Definition: countries.h:549
dvb_guess_user_country
enum dvb_country_t dvb_guess_user_country(void)
Guess the country code from the Unix environment variables.
TC
@ TC
Turks and Caicos Islands.
Definition: countries.h:760
SA
@ SA
Saudi Arabia.
Definition: countries.h:739
NR
@ NR
Nauru.
Definition: countries.h:715
ZW
@ ZW
Zimbabwe.
Definition: countries.h:795
CF
@ CF
Central African Republic.
Definition: countries.h:587
CU
@ CU
Cuba.
Definition: countries.h:597
AX
@ AX
Aland Islands.
Definition: countries.h:561
PE
@ PE
Peru.
Definition: countries.h:720
BY
@ BY
Belarus.
Definition: countries.h:582
LY
@ LY
Libyan Arab Jamahiriya.
Definition: countries.h:682
AU
@ AU
Australia.
Definition: countries.h:559
GI
@ GI
Gibraltar.
Definition: countries.h:629
MG
@ MG
Madagascar.
Definition: countries.h:688
BE
@ BE
Belgium.
Definition: countries.h:566
NP
@ NP
Nepal.
Definition: countries.h:714
MD
@ MD
Republic of Moldova.
Definition: countries.h:685
GY
@ GY
Guyana.
Definition: countries.h:640
NE
@ NE
Niger.
Definition: countries.h:708
VI
@ VI
U.S.
Definition: countries.h:786
CM
@ CM
Cameroon.
Definition: countries.h:593
MX
@ MX
Mexico.
Definition: countries.h:703
CL
@ CL
Chile.
Definition: countries.h:592
HM
@ HM
Heard Island and McDonald Islands.
Definition: countries.h:642
MH
@ MH
Marshall Islands.
Definition: countries.h:689
HK
@ HK
Hong Kong.
Definition: countries.h:641
NA
@ NA
Namibia.
Definition: countries.h:706
BH
@ BH
Bahrain.
Definition: countries.h:569
FK
@ FK
Falkland Islands (Malvinas)
Definition: countries.h:618
US
@ US
United States.
Definition: countries.h:779
LB
@ LB
Lebanon.
Definition: countries.h:673
LR
@ LR
Liberia.
Definition: countries.h:677
PK
@ PK
Pakistan.
Definition: countries.h:724
UA
@ UA
Ukraine.
Definition: countries.h:776
UZ
@ UZ
Uzbekistan.
Definition: countries.h:781
CX
@ CX
Christmas Island.
Definition: countries.h:600
HN
@ HN
Honduras.
Definition: countries.h:643
SV
@ SV
El Salvador.
Definition: countries.h:756
GR
@ GR
Greece.
Definition: countries.h:635
PM
@ PM
Saint Pierre and Miquelon.
Definition: countries.h:726
SC
@ SC
Seychelles.
Definition: countries.h:741
LC
@ LC
Saint Lucia.
Definition: countries.h:674
GS
@ GS
South Georgia and the South Sandwich Islands.
Definition: countries.h:636
MQ
@ MQ
Martinique.
Definition: countries.h:696
IO
@ IO
British Indian Ocean Territory.
Definition: countries.h:652
AW
@ AW
Aruba.
Definition: countries.h:560
ID
@ ID
Indonesia.
Definition: countries.h:647
SG
@ SG
Singapore.
Definition: countries.h:744
UY
@ UY
Uruguay.
Definition: countries.h:780
UG
@ UG
Uganda.
Definition: countries.h:777
dvb_country_to_3letters
const char * dvb_country_to_3letters(int id)
Converts an enum dvb_country_t into a 3-letter Country code as used by MPEG-TS tables.
BW
@ BW
Botswana.
Definition: countries.h:581
MV
@ MV
Maldives.
Definition: countries.h:701
GQ
@ GQ
Equatorial Guinea.
Definition: countries.h:634
CN
@ CN
China.
Definition: countries.h:594
GT
@ GT
Guatemala.
Definition: countries.h:637
KZ
@ KZ
Kazakhstan.
Definition: countries.h:671
KE
@ KE
Kenya.
Definition: countries.h:661
EE
@ EE
Estonia.
Definition: countries.h:610
AZ
@ AZ
Azerbaijan.
Definition: countries.h:562
MR
@ MR
Mauritania.
Definition: countries.h:697
GU
@ GU
Guam.
Definition: countries.h:638
NF
@ NF
Norfolk Island.
Definition: countries.h:709
DE
@ DE
Germany.
Definition: countries.h:603
LS
@ LS
Lesotho.
Definition: countries.h:678
GF
@ GF
French Guiana.
Definition: countries.h:626
dvb_country_t
dvb_country_t
ISO-3166-1 alpha-2 country code.
Definition: countries.h:544
SD
@ SD
Sudan.
Definition: countries.h:742
SJ
@ SJ
Svalbard and Jan Mayen.
Definition: countries.h:747
VC
@ VC
Saint Vincent and The Grenadines.
Definition: countries.h:783
CI
@ CI
Cote d'Ivoire.
Definition: countries.h:590
AS
@ AS
American Samoa.
Definition: countries.h:557
BJ
@ BJ
Benin.
Definition: countries.h:571
ZA
@ ZA
South Africa.
Definition: countries.h:793
IS
@ IS
Iceland.
Definition: countries.h:655
IE
@ IE
Ireland.
Definition: countries.h:648
GW
@ GW
Guinea-Bissau.
Definition: countries.h:639
SL
@ SL
Sierra Leone.
Definition: countries.h:749
GN
@ GN
Guinea.
Definition: countries.h:632
GL
@ GL
Greenland.
Definition: countries.h:630
NU
@ NU
Niue.
Definition: countries.h:716
YT
@ YT
Mayotte.
Definition: countries.h:792
CG
@ CG
Congo.
Definition: countries.h:588
SH
@ SH
Saint Helena, Ascension and Tristan da Cunha.
Definition: countries.h:745
BQ
@ BQ
Bonaire, Saint Eustatius and Saba.
Definition: countries.h:576
ST
@ ST
Sao Tome and Principe.
Definition: countries.h:755
TR
@ TR
Turkey.
Definition: countries.h:771
IM
@ IM
Isle of Man.
Definition: countries.h:650
AI
@ AI
Anguilla.
Definition: countries.h:551
JM
@ JM
Jamaica.
Definition: countries.h:658
AD
@ AD
Andorra.
Definition: countries.h:547
SN
@ SN
Senegal.
Definition: countries.h:751
KI
@ KI
Kiribati.
Definition: countries.h:664
MU
@ MU
Mauritius.
Definition: countries.h:700
CH
@ CH
Switzerland.
Definition: countries.h:589
DZ
@ DZ
Algeria.
Definition: countries.h:608
RO
@ RO
Romania.
Definition: countries.h:735
COUNTRY_UNKNOWN
@ COUNTRY_UNKNOWN
(Unknown Country)
Definition: countries.h:545
ES
@ ES
Spain.
Definition: countries.h:614
EH
@ EH
Western Sahara.
Definition: countries.h:612
TV
@ TV
Tuvalu.
Definition: countries.h:773
KH
@ KH
Cambodia.
Definition: countries.h:663
FI
@ FI
Finland.
Definition: countries.h:616
IT
@ IT
Italy.
Definition: countries.h:656
HU
@ HU
Hungary.
Definition: countries.h:646
BZ
@ BZ
Belize.
Definition: countries.h:583
CA
@ CA
Canada.
Definition: countries.h:584
dvb_country_a2_to_id
enum dvb_country_t dvb_country_a2_to_id(const char *name)
Converts an Unix-like 2-letter Country code into enum dvb_country_t.
BB
@ BB
Barbados.
Definition: countries.h:564
CV
@ CV
Cape Verde.
Definition: countries.h:598
YE
@ YE
Yemen.
Definition: countries.h:791
dvb_country_a3_to_id
enum dvb_country_t dvb_country_a3_to_id(const char *name)
Converts a 3-letter Country code as used by MPEG-TS tables into enum dvb_country_t.
TL
@ TL
Timor-Leste.
Definition: countries.h:767
WS
@ WS
Samoa.
Definition: countries.h:790
SZ
@ SZ
Swaziland.
Definition: countries.h:759
KR
@ KR
Republic of Korea.
Definition: countries.h:668
MY
@ MY
Malaysia.
Definition: countries.h:704
MF
@ MF
Saint Martin (French part)
Definition: countries.h:687
BF
@ BF
Burkina Faso.
Definition: countries.h:567
ML
@ ML
Mali.
Definition: countries.h:691
CW
@ CW
Curacao.
Definition: countries.h:599
RU
@ RU
Russian Federation.
Definition: countries.h:737
ER
@ ER
Eritrea.
Definition: countries.h:613
UM
@ UM
United States Minor Outlying Islands.
Definition: countries.h:778
IR
@ IR
Islamic Republic of Iran.
Definition: countries.h:654
PL
@ PL
Poland.
Definition: countries.h:725
PW
@ PW
Palau.
Definition: countries.h:731
TF
@ TF
French Southern Territories.
Definition: countries.h:762
SK
@ SK
Slovakia.
Definition: countries.h:748
DJ
@ DJ
Djibouti.
Definition: countries.h:604
SM
@ SM
San Marino.
Definition: countries.h:750
OM
@ OM
Oman.
Definition: countries.h:718
KM
@ KM
Comoros.
Definition: countries.h:665
FR
@ FR
France.
Definition: countries.h:621
MK
@ MK
The Former Yugoslav Republic of Macedonia.
Definition: countries.h:690
PT
@ PT
Portugal.
Definition: countries.h:730
RW
@ RW
Rwanda.
Definition: countries.h:738
CR
@ CR
Costa Rica.
Definition: countries.h:596
FJ
@ FJ
Fiji.
Definition: countries.h:617
TD
@ TD
Chad.
Definition: countries.h:761
MA
@ MA
Morocco.
Definition: countries.h:683
AO
@ AO
Angola.
Definition: countries.h:554
VA
@ VA
Holy See (Vatican City State)
Definition: countries.h:782
MT
@ MT
Malta.
Definition: countries.h:699
LA
@ LA
Lao People's Democratic Republic.
Definition: countries.h:672
BT
@ BT
Bhutan.
Definition: countries.h:579
GA
@ GA
Gabon.
Definition: countries.h:622
FO
@ FO
Faroe Islands.
Definition: countries.h:620
TW
@ TW
Taiwan, Province of China.
Definition: countries.h:774
FM
@ FM
Federated States of Micronesia.
Definition: countries.h:619
CZ
@ CZ
Czech Republic.
Definition: countries.h:602
LU
@ LU
Luxembourg.
Definition: countries.h:680
GG
@ GG
Guernsey.
Definition: countries.h:627
SB
@ SB
Solomon Islands.
Definition: countries.h:740
JO
@ JO
Jordan.
Definition: countries.h:659
BI
@ BI
Burundi.
Definition: countries.h:570
IN
@ IN
India.
Definition: countries.h:651
PG
@ PG
Papua New Guinea.
Definition: countries.h:722
BL
@ BL
Saint Barthelemy.
Definition: countries.h:572
WF
@ WF
Wallis and Futuna.
Definition: countries.h:789
BN
@ BN
Brunei Darussalam.
Definition: countries.h:574
KY
@ KY
Cayman Islands.
Definition: countries.h:670
MM
@ MM
Myanmar.
Definition: countries.h:692
TZ
@ TZ
United Republic of Tanzania.
Definition: countries.h:775
AR
@ AR
Argentina.
Definition: countries.h:556
GM
@ GM
Gambia.
Definition: countries.h:631
PA
@ PA
Panama.
Definition: countries.h:719
GP
@ GP
Guadeloupe.
Definition: countries.h:633
TM
@ TM
Turkmenistan.
Definition: countries.h:768
NO
@ NO
Norway.
Definition: countries.h:713
AT
@ AT
Austria.
Definition: countries.h:558
PS
@ PS
Occupied Palestinian Territory.
Definition: countries.h:729
AG
@ AG
Antigua and Barbuda.
Definition: countries.h:550
MO
@ MO
Macao.
Definition: countries.h:694
AL
@ AL
Albania.
Definition: countries.h:552
LI
@ LI
Liechtenstein.
Definition: countries.h:675
JP
@ JP
Japan.
Definition: countries.h:660
RE
@ RE
Reunion.
Definition: countries.h:734
NI
@ NI
Nicaragua.
Definition: countries.h:711