2017-07-18 16:41:40 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 18.07.2017
|
|
|
|
*
|
|
|
|
* Code to link system functions using a name convention
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
// TODO(allen): Should auto-gen this!
|
|
|
|
|
2017-07-18 17:44:54 +00:00
|
|
|
#define SYSLINK(name) sysfunc.name = system_##name
|
2017-07-18 16:41:40 +00:00
|
|
|
|
|
|
|
internal void
|
2019-08-04 05:36:13 +00:00
|
|
|
link_system_code(void){
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(get_canonical);
|
2019-08-04 00:49:40 +00:00
|
|
|
SYSLINK(get_file_list);
|
2019-02-14 00:24:03 +00:00
|
|
|
SYSLINK(quick_file_attributes);
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(load_handle);
|
2019-02-13 23:15:22 +00:00
|
|
|
SYSLINK(load_attributes);
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(load_file);
|
|
|
|
SYSLINK(load_close);
|
|
|
|
SYSLINK(save_file);
|
|
|
|
|
|
|
|
SYSLINK(now_time);
|
2019-02-04 01:33:44 +00:00
|
|
|
SYSLINK(wake_up_timer_create);
|
|
|
|
SYSLINK(wake_up_timer_release);
|
|
|
|
SYSLINK(wake_up_timer_set);
|
2019-08-13 04:19:02 +00:00
|
|
|
SYSLINK(signal_step);
|
|
|
|
SYSLINK(sleep);
|
2017-07-18 16:41:40 +00:00
|
|
|
|
|
|
|
SYSLINK(post_clipboard);
|
|
|
|
|
|
|
|
SYSLINK(cli_call);
|
|
|
|
SYSLINK(cli_begin_update);
|
|
|
|
SYSLINK(cli_update_step);
|
|
|
|
SYSLINK(cli_end_update);
|
|
|
|
|
2019-02-24 07:22:16 +00:00
|
|
|
SYSLINK(open_color_picker);
|
|
|
|
|
2019-08-04 05:36:13 +00:00
|
|
|
SYSLINK(thread_launch);
|
|
|
|
SYSLINK(thread_join);
|
|
|
|
SYSLINK(thread_free);
|
|
|
|
SYSLINK(mutex_make);
|
|
|
|
SYSLINK(mutex_acquire);
|
|
|
|
SYSLINK(mutex_release);
|
|
|
|
SYSLINK(mutex_free);
|
|
|
|
SYSLINK(condition_variable_make);
|
|
|
|
SYSLINK(condition_variable_wait);
|
|
|
|
SYSLINK(condition_variable_signal);
|
|
|
|
SYSLINK(condition_variable_free);
|
2017-07-18 16:41:40 +00:00
|
|
|
|
|
|
|
SYSLINK(memory_allocate);
|
|
|
|
SYSLINK(memory_set_protection);
|
|
|
|
SYSLINK(memory_free);
|
2017-11-30 15:44:08 +00:00
|
|
|
|
2017-07-19 16:33:12 +00:00
|
|
|
SYSLINK(get_current_path);
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(get_4ed_path);
|
2017-11-30 15:44:08 +00:00
|
|
|
|
2017-07-18 22:09:16 +00:00
|
|
|
SYSLINK(set_fullscreen);
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(is_fullscreen);
|
|
|
|
SYSLINK(show_mouse_cursor);
|
|
|
|
}
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|