This commit is contained in:
sushen339
2025-11-18 12:54:21 +08:00
parent 57ecd5ab17
commit 43fc123cb4
25 changed files with 2978 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#ifndef GEO_H
#define GEO_H
#include "common.h"
/* 查询IP的国家代码 */
int query_country_code(const char *ip, char *country_code, size_t size);
/* 获取国家名称 */
const char* get_country_name(const char *country_code);
/* 补充持久化文件中缺失的国家信息 */
void supplement_country_info(const char *current_ip);
#endif /* GEO_H */