Sha256: a86d85375c8acc7100b8190be04d772dfbffaa602b4b7d20620ef4ee07d96436

Contents?: true

Size: 1013 Bytes

Versions: 6

Compression:

Stored size: 1013 Bytes

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

%}

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rhodes-1.5.5 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-1.5.4 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-1.5.3 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-1.5.2 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-1.5.1 platform/shared/ruby/ext/geolocation/geolocation.i
rhodes-1.5.0 platform/shared/ruby/ext/geolocation/geolocation.i