Sha256: 358529f01c21850a2c1b4edac5815bab28d5f059457f68061b272b3716e04ab4
Contents?: true
Size: 1.21 KB
Versions: 74
Compression:
Stored size: 1.21 KB
Contents
/* geolocation.i */ %module GeoLocation %{ /* Put header files here or function declarations like below */ #define latitude rho_geo_latitude extern double rho_geo_latitude(); #define longitude rho_geo_longitude extern double rho_geo_longitude(); #define known_position rho_geo_known_position extern int rho_geo_known_position(); #define set_view_notification rho_geo_set_view_notification extern void rho_geo_set_view_notification( const char *url, char* params, int timeout_sec); #define set_notification rho_geo_set_notification extern void rho_geo_set_notification( const char *url, char* params, int timeout_sec); #define haversine_distance rho_geo_haversine_distance extern double rho_geo_haversine_distance(double lat1, double lon1, double lat2, double lon2); %} %predicate known_position(); %typemap(default) int timeout_sec { $1 = 0; } %typemap(default) char* params { $1 = 0; } extern double latitude(); extern double longitude(); extern int known_position(); extern void set_view_notification( const char *url, char* params, int timeout_sec); extern void set_notification( const char *url, char* params, int timeout_sec); extern double haversine_distance(double lat1, double lon1, double lat2, double lon2);
Version data entries
74 entries across 74 versions & 1 rubygems