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