ancillary(3)
π ancillary(3) β Library Functions Manual π
okay so this is the ancillary(3) page, bestie, and it's literally the support squad of the library π
nothing here is the main character exactly, but everything here is the reason the main character doesn't fall over. we got files, macros, a typedef, a giant country enum, and a whole pile of functions. let's get into it β¨
π NAME π
ancillary β Ancillary functions and macros
like... that's the whole name section. it does what it says on the tin, no cap π«Ά
π¦ SYNOPSIS π¦
π Files
file dvb-log.hβ Provides interfaces to handle libdvbv5 log messages. (your logging bestie π¬)file crc32.hβ Provides ancillary code to calculate DVB crc32 checksum.file countries.hβ Provides ancillary code to convert ISO 3166-1 country codes. π
π Macros
#define ARRAY_SIZE(x)β Calculates the number of elements of an array. lowkey the most useful one-liner in all of C.
π§ Typedefs
typedef void(* dvb_logfunc) (int level, const char *fmt,...)β typedef used bydvb_fe_open2for the log function
π Enumerations
enum dvb_country_t { ... }β ISO-3166-1 alpha-2 country code. and bestie, this enum is long. like, every country long. here's the whole roster verbatim because we do NOT skip entries in this house π«‘
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 }
π₯ Functions
void dvb_default_log (int level, const char *fmt,...)β This is the prototype of the internal log function that it is used, if the library client doesn't desire to override with something else.void atsc_time (const uint32_t start_time, struct tm *tm)β Converts an ATSC EIT formatted timestamp intostruct tm.uint32_t dvb_crc32 (uint8_t *data, size_t datalen, uint32_t crc)β Calculates the crc-32 as defined at the MPEG-TS specs.enum dvb_country_t dvb_country_a2_to_id (const char *name)β Converts an Unix-like 2-letter Country code intoenum dvb_country_t.enum dvb_country_t dvb_country_a3_to_id (const char *name)β Converts a 3-letter Country code as used by MPEG-TS tables intoenum dvb_country_t.const char * dvb_country_to_2letters (int id)β Converts anenum dvb_country_tinto Unix-like 2-letter Country code.const char * dvb_country_to_3letters (int id)β Converts anenum dvb_country_tinto a 3-letter Country code as used by MPEG-TS tables.const char * dvb_country_to_name (int id)β Converts anenum dvb_country_tinto a Country name as used by MPEG-TS tables.enum dvb_country_t dvb_guess_user_country (void)β Guess the country code from the Unix environment variables. π
πΈ Detailed Description πΈ
bestie. this section is literally empty in the source. no description. no vibes. no nothing. it's giving placeholder. we simply move on π
π Macro Definition Documentation π
#define ARRAY_SIZE( x)
Calculates the number of elements of an array. yes bestie, that's it, that's the macro, and it carries the entire codebase on its back π
Definition at line 64 of file dvb-fe.h.
π Typedef Documentation π
typedef void(* dvb_logfunc) (int level, const char *fmt,...)
typedef used by dvb_fe_open2 for the log function typedef used by dvb_fe_open2 for the log function with private context
(yes it says it twice in the source, we're not editing the source, we're just reporting the tea β)
Definition at line 44 of file dvb-log.h.
π Enumeration Type Documentation π
enum dvb_country_t
ISO-3166-1 alpha-2 country code. one enum to hold the entire planet πβ¨
Enumerator
COUNTRY_UNKNOWNβ (Unknown Country) β the "idk bestie" option πADβ Andorra.AEβ United Arab Emirates.AFβ Afghanistan.AGβ Antigua and Barbuda.AIβ Anguilla.ALβ Albania.AMβ Armenia.AOβ Angola.AQβ Antarctica. π§ iconic, actuallyARβ Argentina.ASβ American Samoa.ATβ Austria.AUβ Australia.AWβ Aruba.AXβ Aland Islands.AZβ Azerbaijan.BAβ Bosnia and Herzegovina.BBβ Barbados.BDβ Bangladesh.BEβ Belgium.BFβ Burkina Faso.BGβ Bulgaria.BHβ Bahrain.BIβ Burundi.BJβ Benin.BLβ Saint Barthelemy.BMβ Bermuda.BNβ Brunei Darussalam.BOβ Plurinational State of Bolivia.BQβ Bonaire, Saint Eustatius and Saba.BRβ Brazil.BSβ Bahamas.BTβ Bhutan.BVβ Bouvet Island.BWβ Botswana.BYβ Belarus.BZβ Belize.CAβ Canada.CCβ Cocos (Keeling) Islands.CDβ The Democratic Republic of the Congo.CFβ Central African Republic.CGβ Congo.CHβ Switzerland.CIβ Cote d'Ivoire.CKβ Cook Islands.CLβ Chile.CMβ Cameroon.CNβ China.COβ Colombia.CRβ Costa Rica.CUβ Cuba.CVβ Cape Verde.CWβ Curacao.CXβ Christmas Island. π slayCYβ Cyprus.CZβ Czech Republic.DEβ Germany.DJβ Djibouti.DKβ Denmark.DMβ Dominica.DOβ Dominican Republic.DZβ Algeria.ECβ Ecuador.EEβ Estonia.EGβ Egypt.EHβ Western Sahara.ERβ Eritrea.ESβ Spain.ETβ Ethiopia.FIβ Finland.FJβ Fiji.FKβ Falkland Islands (Malvinas) (no period in the source, we respect that π«‘)FMβ Federated States of Micronesia.FOβ Faroe Islands.FRβ France.GAβ Gabon.GBβ United Kingdom.GDβ Grenada.GEβ Georgia.GFβ French Guiana.GGβ Guernsey.GHβ Ghana.GIβ Gibraltar.GLβ Greenland.GMβ Gambia.GNβ Guinea.GPβ Guadeloupe.GQβ Equatorial Guinea.GRβ Greece.GSβ South Georgia and the South Sandwich Islands.GTβ Guatemala.GUβ Guam.GWβ Guinea-Bissau.GYβ Guyana.HKβ Hong Kong.HMβ Heard Island and McDonald Islands.HNβ Honduras.HRβ Croatia.HTβ Haiti.HUβ Hungary.IDβ Indonesia.IEβ Ireland.ILβ Israel.IMβ Isle of Man.INβ India.IOβ British Indian Ocean Territory.IQβ Iraq.IRβ Islamic Republic of Iran.ISβ Iceland.ITβ Italy.JEβ Jersey.JMβ Jamaica.JOβ Jordan.JPβ Japan.KEβ Kenya.KGβ Kyrgyzstan.KHβ Cambodia.KIβ Kiribati.KMβ Comoros.KNβ Saint Kitts and Nevis.KPβ Democratic People's Republic of Korea.KRβ Republic of Korea.KWβ Kuwait.KYβ Cayman Islands.KZβ Kazakhstan.LAβ Lao People's Democratic Republic.LBβ Lebanon.LCβ Saint Lucia.LIβ Liechtenstein.LKβ Sri Lanka.LRβ Liberia.LSβ Lesotho.LTβ Lithuania.LUβ Luxembourg.LVβ Latvia.LYβ Libyan Arab Jamahiriya.MAβ Morocco.MCβ Monaco.MDβ Republic of Moldova.MEβ Montenegro.MFβ Saint Martin (French part) (also period-less, iconic π )MGβ Madagascar.MHβ Marshall Islands.MKβ The Former Yugoslav Republic of Macedonia.MLβ Mali.MMβ Myanmar.MNβ Mongolia.MOβ Macao.MPβ Northern Mariana Islands.MQβ Martinique.MRβ Mauritania.MSβ Montserrat.MTβ Malta.MUβ Mauritius.MVβ Maldives.MWβ Malawi.MXβ Mexico.MYβ Malaysia.MZβ Mozambique.NAβ Namibia.NCβ New Caledonia.NEβ Niger.NFβ Norfolk Island.NGβ Nigeria.NIβ Nicaragua.NLβ Netherlands.NOβ Norway.NPβ Nepal.NRβ Nauru.NUβ Niue.NZβ New Zealand.OMβ Oman.PAβ Panama.PEβ Peru.PFβ French Polynesia.PGβ Papua New Guinea.PHβ Philippines.PKβ Pakistan.PLβ Poland.PMβ Saint Pierre and Miquelon.PNβ Pitcairn.PRβ Puerto Rico.PSβ Occupied Palestinian Territory.PTβ Portugal.PWβ Palau.PYβ Paraguay.QAβ Qatar.REβ Reunion.ROβ Romania.RSβ Serbia.RUβ Russian Federation.RWβ Rwanda.SAβ Saudi Arabia.SBβ Solomon Islands.SCβ Seychelles.SDβ Sudan.SEβ Sweden.SGβ Singapore.SHβ Saint Helena, Ascension and Tristan da Cunha.SIβ Slovenia.SJβ Svalbard and Jan Mayen.SKβ Slovakia.SLβ Sierra Leone.SMβ San Marino.SNβ Senegal.SOβ Somalia.SRβ Suriname.SSβ South Sudan.STβ Sao Tome and Principe.SVβ El Salvador.SXβ Sint Maarten (Dutch part) (period-less crew rise up β¨)SYβ Syrian Arab Republic.SZβ Swaziland.TCβ Turks and Caicos Islands.TDβ Chad.TFβ French Southern Territories.TGβ Togo.THβ Thailand.TJβ Tajikistan.TKβ Tokelau.TLβ Timor-Leste.TMβ Turkmenistan.TNβ Tunisia.TOβ Tonga.TRβ Turkey.TTβ Trinidad and Tobago.TVβ Tuvalu.TWβ Taiwan, Province of China.TZβ United Republic of Tanzania.UAβ Ukraine.UGβ Uganda.UMβ United States Minor Outlying Islands.USβ United States.UYβ Uruguay.UZβ Uzbekistan.VAβ Holy See (Vatican City State) (also no period, we see you π)VCβ Saint Vincent and The Grenadines.VEβ Bolivarian Republic of Venezuela.VGβ British Virgin Islands.VIβ U.S. Virgin Islands (period-less legend π«Ά)VNβ Viet Nam.VUβ Vanuatu.WFβ Wallis and Futuna.WSβ Samoa.YEβ Yemen.YTβ Mayotte.ZAβ South Africa.ZMβ Zambia.ZWβ Zimbabwe.
Definition at line 544 of file countries.h.
and that's the whole country list, every single one, no skips, no "etc." bestie π to be continued in part 2 π¦β¨
β¨ Function Documentation β¨
Okay bestie, this is the function lineup for ancillary(3) β no skips, no cuts, every single one is getting her moment. π
Let's go.
void atsc_time (const uint32_t start_time, struct tm * tm)
This one converts an ATSC EIT formatted timestamp into struct tm. It's giving timezone-girlie energy. π°οΈβ¨
Parameters:
start_timeβ event on ATSC EIT time format.tmβ pointer tostruct tmwhere the converted timestamp will be stored.
No return value in the notes, so it's a void baddie. Periodt. π
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. Cute, right? π
Parameters:
nameβ two-letter Country code.
Returns: It returns the corresponding enum dvb_country_t ID. If not found, returns COUNTRY_UNKNOWN. No cap. π«Ά
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. The three-letter serve. π
Parameters:
nameβ three-letter Country code.
Returns: It returns the corresponding enum dvb_country_t ID. If not found, returns COUNTRY_UNKNOWN. Iconic. β¨
const char * dvb_country_to_2letters (int id)
Converts an enum dvb_country_t into Unix-like 2-letter Country code. Reverse uno card, but make it geography. π
Parameters:
idβenum dvb_country_tID.
Returns: It returns the 2-letter country code string that corresponts to the Country. If not found, returns NULL. Lowkey useful. π
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. Three letters, one vibe. π¦
Parameters:
idβenum dvb_country_tID.
Returns: It returns the 3-letter country code string that corresponts to the Country. If not found, returns NULL. Slay. π
const char * dvb_country_to_name (int id)
Converts an enum dvb_country_t into a Country name as used by MPEG-TS tables. Name reveal moment. π
Parameters:
idβenum dvb_country_tID.
Returns: It returns a string with the Country name that corresponts to the country. If not found, returns NULL. Obsessed. π
uint32_t dvb_crc32 (uint8_t * data, size_t datalen, uint32_t crc)
Calculates the crc-32 as defined at the MPEG-TS specs. Math girlies, this is your main character moment. π₯
Parameters:
dataβ Pointer to the buffer to be checked.datalenβ Length of the buffer.crcβ Initial value for the crc checksum. To calculate the checksum of the entire packet at once, use0xFFFFFFFF.
No Returns section listed, so we move. π
void dvb_default_log (int level, const char * fmt, ...)
This is the prototype of the internal log function that it is used, if the library client doesn't desire to override with something else. Basically the default log bestie. π
Parameters:
levelβ level of the message, as defined atsyslog.h.fmtβ format string (same as format string onsprintf).
No return value, just logging and vibes. π
enum dvb_country_t dvb_guess_user_country (void )
Guess the country code from the Unix environment variables. Detective mode: activated. π΅οΈββοΈ
Returns: It returns the corresponding enum dvb_country_t ID. If not found, returns COUNTRY_UNKNOWN. Fr fr. π
π«Ά Author π«Ά
Generated automatically by Doxygen for libdvbv5 from the source code. π€β¨
And that's the whole function squad, bestie. This page came from libdvbv5, Version 1.32.0, and it's the ancillary(3) manual page. Mwah. π
π¦ where this page comes from
- fedora 43: libdvbv5-devel 1.32.0-1.fc43 Β· LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note
- fedora 43: libdvbv5-devel 1.32.0-1.fc43 Β· LGPL-2.1-or-later AND LGPL-2.1-or-later WITH Linux-syscall-note
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms