summaryrefslogtreecommitdiff
path: root/src/country.h
blob: 9fb44363b3c3554472d2c04eb22c23515c04496a (plain)
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
struct country {
	int id;
	char *car;
	char *iso2;
	char *iso3;
	char *name;
};
struct country * country_get_by_id(int id);

#ifdef __cplusplus
extern "C"
#endif
int country_search_by_name(const char *name, int partial, int (*func)(struct country *cou, void *data), void *data);

#ifdef __cplusplus
extern "C"
#endif
int country_search_by_car(const char *name, int partial, int (*func)(struct country *cou, void *data), void *data);

#ifdef __cplusplus
extern "C"
#endif
int country_search_by_iso2(const char *name, int partial, int (*func)(struct country *cou, void *data), void *data);

#ifdef __cplusplus
extern "C"
#endif
int country_search_by_iso3(const char *name, int partial, int (*func)(struct country *cou, void *data), void *data);