15 lines
616 B
JavaScript
15 lines
616 B
JavaScript
// Fastclock
|
|
|
|
let Fastclock = {
|
|
set_update_handler: ffi('void fastclock_set_update_cb(void(*)(userdata), userdata)'),
|
|
getHours: ffi('int fastclock_get_hours()'),
|
|
getMinutes: ffi('int fastclock_get_minutes()'),
|
|
getSeconds: ffi('int fastclock_get_seconds()'),
|
|
getName: ffi('char * fastclock_get_name()'),
|
|
getMessage: ffi('char * fastclock_get_message()'),
|
|
getServerIp: ffi('char * fastclock_get_server_ip()'),
|
|
getServerPort: ffi('int fastclock_get_server_port()'),
|
|
getSpeed: ffi('double fastclock_get_speed()'),
|
|
isActive: ffi('int fastclock_is_active()'),
|
|
isFastclock: ffi('int fastclock_is_fastclock()'),
|
|
} |