country.h File Reference

This file includes functions to related with country info. More...

#include <stddef.h>
#include <stdbool.h>
#include "platform.h"
Include dependency graph for country.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ast_country_t
 Country info definition. More...
 

Typedefs

typedef ast_country_t(* ast_icao_addr_get_country_func_t) (const unsigned int icao_addr)
 Function prototype of getting country info from ICAO 24-bit address. More...
 
typedef const char *(* ast_get_national_flag_func_t) (const char *country_code2)
 Function prototype of getting national flag image link from ISO 2-letter country code. More...
 

Functions

void ast_reg_callback_icao_addr_get_country (ast_icao_addr_get_country_func_t callback)
 Registry callback function of ast_icao_addr_get_country_func_t. More...
 
void ast_reg_callback_get_national_flag (ast_get_national_flag_func_t callback)
 Registry callback function of ast_get_national_flag_func_t. More...
 

Detailed Description

This file includes functions to related with country info.

Typedef Documentation

◆ ast_get_national_flag_func_t

typedef const char*(* ast_get_national_flag_func_t) (const char *country_code2)

Function prototype of getting national flag image link from ISO 2-letter country code.

◆ ast_icao_addr_get_country_func_t

typedef ast_country_t(* ast_icao_addr_get_country_func_t) (const unsigned int icao_addr)

Function prototype of getting country info from ICAO 24-bit address.

Function Documentation

◆ ast_reg_callback_get_national_flag()

void ast_reg_callback_get_national_flag ( ast_get_national_flag_func_t  callback)

Registry callback function of ast_get_national_flag_func_t.

◆ ast_reg_callback_icao_addr_get_country()

void ast_reg_callback_icao_addr_get_country ( ast_icao_addr_get_country_func_t  callback)

Registry callback function of ast_icao_addr_get_country_func_t.