diff options
Diffstat (limited to 'country.h')
-rw-r--r-- | country.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/country.h b/country.h new file mode 100644 index 00000000..616a6c26 --- /dev/null +++ b/country.h @@ -0,0 +1,12 @@ +struct country { + int id; + char *car; + char *iso2; + char *iso3; + char *name; +}; +struct country * country_get_by_id(int id); +int country_search_by_name(const char *name, int partial, int (*func)(struct country *cou, void *data), void *data); +int country_search_by_car(const char *name, int partial, int (*func)(struct country *cou, void *data), void *data); +int country_search_by_iso2(const char *name, int partial, int (*func)(struct country *cou, void *data), void *data); +int country_search_by_iso3(const char *name, int partial, int (*func)(struct country *cou, void *data), void *data); |