Sha256: 3ccdfba0ceda9fb8cd3f1cb6b3192f53ce9f677b28cf52dd9e6bdfe0c7446d11

Contents?: true

Size: 1.4 KB

Versions: 13

Compression:

Stored size: 1.4 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 accuracy rho_geo_accuracy
extern float rho_geo_accuracy();

#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);

#define turnoff rho_geoimpl_turngpsoff
extern void rho_geoimpl_turngpsoff();

%}

%predicate known_position();
%typemap(default) int timeout_sec {
 $1 = -1;
}
%typemap(default) char* params {
 $1 = 0;
}

extern double latitude();
extern double longitude();
extern float  accuracy();
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);
extern void   turnoff();

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rhodes-3.2.3 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.2 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.2.beta platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.1 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.0 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.0.beta.9 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.0.beta.8 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.0.beta.7 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.0.beta.6 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.0.beta.5 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.0.beta.4 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.0.beta.2 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-3.2.0.beta.1 platform/shared/ruby/ext/geolocation/geolocation.i