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

Version Path
rhodes-3.1.1 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.1.1.beta platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.1.0 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.1.0.beta.5 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.1.0.beta.4 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.1.0.beta.3 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.1.0.beta.2 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.1.0.beta.1 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.2 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.2.beta.1 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.1 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.1.beta.8 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.1.beta.7 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.1.beta.6 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.1.beta.5 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.1.beta.4 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.1.beta.3 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.1.beta.2 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.0 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.0.0.beta.7 platform/shared/ruby/ext/geolocation/geolocation.i