#ifndef GEOIPH_H #define GEOIPH_H #include #include #include "config.h" #include "die.h" #if defined(HAVE_GEOIP) && defined(HAVE_LIBZ) extern void init_geoip(int enforce); extern void update_geoip(void); extern int geoip_working(void); extern const char *geoip4_city_name(struct sockaddr_in sa); extern const char *geoip6_city_name(struct sockaddr_in6 sa); extern const char *geoip4_region_name(struct sockaddr_in sa); extern const char *geoip6_region_name(struct sockaddr_in6 sa); extern const char *geoip4_country_name(struct sockaddr_in sa); extern const char *geoip6_country_name(struct sockaddr_in6 sa); extern float geoip4_longitude(struct sockaddr_in sa); extern float geoip4_latitude(struct sockaddr_in sa); extern float geoip6_longitude(struct sockaddr_in6 sa); extern float geoip6_latitude(struct sockaddr_in6 sa); extern const char *geoip4_as_name(struct sockaddr_in sa); extern const char *geoip6_as_name(struct sockaddr_in6 sa); extern void destroy_geoip(void); #else static inline void init_geoip(int enforce) { } static inline void destroy_geoip(void) { } static inline void update_geoip(void) { panic("No built-in geoip support!\n"); } static inline int geoip_working(void) { return 0; } static inline const char *geoip4_city_name(struct sockaddr_in sa) { return NULL; } static inline const char *geoip6_city_name(struct sockaddr_in6 sa) { return NULL; } static inline const char *geoip4_region_name(struct sockaddr_in sa) { return NULL; } static inline const char *geoip6_region_name(struct sockaddr_in6 sa) { return NULL; } static inline const char *geoip4_country_name(struct sockaddr_in sa) { return NULL; } static inline const char *geoip6_country_name(struct sockaddr_in6 sa) { return NULL; } static inline float geoip4_longitude(struct sockaddr_in sa) { return .0f; } static inline float geoip4_latitude(struct sockaddr_in sa) { return .0f; } static inline float geoip6_longitude(struct sockaddr_in6 sa) { return .0f; } static inline float geoip6_latitude(struct sockaddr_in6 sa) { return .0f; } static inline const char *geoip4_as_name(struct sockaddr_in sa) { return NULL; } static inline const char *geoip6_as_name(struct sockaddr_in6 sa) { return NULL; } #endif #endif /* GEOIPH_H */ 4791b276b4000b307339f269d3bf7db877d536f&id2=5d0e7705774dd412a465896d08d59a81a345c1e4'>diff
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/function/u_serial.c')