2019-10-03 02:58:05 +00:00
|
|
|
function void
|
|
|
|
system_api_fill_vtable(API_VTable_system *vtable){
|
2019-10-03 17:57:44 +00:00
|
|
|
vtable->get_path = system_get_path;
|
2019-10-03 02:58:05 +00:00
|
|
|
vtable->get_canonical = system_get_canonical;
|
|
|
|
vtable->get_file_list = system_get_file_list;
|
|
|
|
vtable->quick_file_attributes = system_quick_file_attributes;
|
|
|
|
vtable->load_handle = system_load_handle;
|
|
|
|
vtable->load_attributes = system_load_attributes;
|
|
|
|
vtable->load_file = system_load_file;
|
|
|
|
vtable->load_close = system_load_close;
|
|
|
|
vtable->save_file = system_save_file;
|
|
|
|
vtable->load_library = system_load_library;
|
|
|
|
vtable->release_library = system_release_library;
|
|
|
|
vtable->get_proc = system_get_proc;
|
|
|
|
vtable->now_time = system_now_time;
|
2020-03-11 10:33:54 +00:00
|
|
|
vtable->now_date_time_universal = system_now_date_time_universal;
|
|
|
|
vtable->local_date_time_from_universal = system_local_date_time_from_universal;
|
|
|
|
vtable->universal_date_time_from_local = system_universal_date_time_from_local;
|
2019-10-03 02:58:05 +00:00
|
|
|
vtable->wake_up_timer_create = system_wake_up_timer_create;
|
|
|
|
vtable->wake_up_timer_release = system_wake_up_timer_release;
|
|
|
|
vtable->wake_up_timer_set = system_wake_up_timer_set;
|
|
|
|
vtable->signal_step = system_signal_step;
|
|
|
|
vtable->sleep = system_sleep;
|
2020-02-08 00:50:35 +00:00
|
|
|
vtable->get_clipboard = system_get_clipboard;
|
2019-10-03 02:58:05 +00:00
|
|
|
vtable->post_clipboard = system_post_clipboard;
|
2020-02-08 00:50:35 +00:00
|
|
|
vtable->set_clipboard_catch_all = system_set_clipboard_catch_all;
|
|
|
|
vtable->get_clipboard_catch_all = system_get_clipboard_catch_all;
|
2019-10-03 02:58:05 +00:00
|
|
|
vtable->cli_call = system_cli_call;
|
|
|
|
vtable->cli_begin_update = system_cli_begin_update;
|
|
|
|
vtable->cli_update_step = system_cli_update_step;
|
|
|
|
vtable->cli_end_update = system_cli_end_update;
|
|
|
|
vtable->open_color_picker = system_open_color_picker;
|
|
|
|
vtable->get_screen_scale_factor = system_get_screen_scale_factor;
|
|
|
|
vtable->thread_launch = system_thread_launch;
|
|
|
|
vtable->thread_join = system_thread_join;
|
|
|
|
vtable->thread_free = system_thread_free;
|
|
|
|
vtable->thread_get_id = system_thread_get_id;
|
2019-10-21 02:02:58 +00:00
|
|
|
vtable->acquire_global_frame_mutex = system_acquire_global_frame_mutex;
|
|
|
|
vtable->release_global_frame_mutex = system_release_global_frame_mutex;
|
2019-10-03 02:58:05 +00:00
|
|
|
vtable->mutex_make = system_mutex_make;
|
|
|
|
vtable->mutex_acquire = system_mutex_acquire;
|
|
|
|
vtable->mutex_release = system_mutex_release;
|
|
|
|
vtable->mutex_free = system_mutex_free;
|
|
|
|
vtable->condition_variable_make = system_condition_variable_make;
|
|
|
|
vtable->condition_variable_wait = system_condition_variable_wait;
|
|
|
|
vtable->condition_variable_signal = system_condition_variable_signal;
|
|
|
|
vtable->condition_variable_free = system_condition_variable_free;
|
|
|
|
vtable->memory_allocate = system_memory_allocate;
|
|
|
|
vtable->memory_set_protection = system_memory_set_protection;
|
|
|
|
vtable->memory_free = system_memory_free;
|
2019-11-22 05:37:11 +00:00
|
|
|
vtable->memory_annotation = system_memory_annotation;
|
2019-10-03 02:58:05 +00:00
|
|
|
vtable->show_mouse_cursor = system_show_mouse_cursor;
|
|
|
|
vtable->set_fullscreen = system_set_fullscreen;
|
|
|
|
vtable->is_fullscreen = system_is_fullscreen;
|
2019-10-10 00:07:38 +00:00
|
|
|
vtable->get_keyboard_modifiers = system_get_keyboard_modifiers;
|
2019-10-03 02:58:05 +00:00
|
|
|
}
|
|
|
|
#if defined(DYNAMIC_LINK_API)
|
|
|
|
function void
|
|
|
|
system_api_read_vtable(API_VTable_system *vtable){
|
2019-10-03 17:57:44 +00:00
|
|
|
system_get_path = vtable->get_path;
|
2019-10-03 02:58:05 +00:00
|
|
|
system_get_canonical = vtable->get_canonical;
|
|
|
|
system_get_file_list = vtable->get_file_list;
|
|
|
|
system_quick_file_attributes = vtable->quick_file_attributes;
|
|
|
|
system_load_handle = vtable->load_handle;
|
|
|
|
system_load_attributes = vtable->load_attributes;
|
|
|
|
system_load_file = vtable->load_file;
|
|
|
|
system_load_close = vtable->load_close;
|
|
|
|
system_save_file = vtable->save_file;
|
|
|
|
system_load_library = vtable->load_library;
|
|
|
|
system_release_library = vtable->release_library;
|
|
|
|
system_get_proc = vtable->get_proc;
|
|
|
|
system_now_time = vtable->now_time;
|
2020-03-11 10:33:54 +00:00
|
|
|
system_now_date_time_universal = vtable->now_date_time_universal;
|
|
|
|
system_local_date_time_from_universal = vtable->local_date_time_from_universal;
|
|
|
|
system_universal_date_time_from_local = vtable->universal_date_time_from_local;
|
2019-10-03 02:58:05 +00:00
|
|
|
system_wake_up_timer_create = vtable->wake_up_timer_create;
|
|
|
|
system_wake_up_timer_release = vtable->wake_up_timer_release;
|
|
|
|
system_wake_up_timer_set = vtable->wake_up_timer_set;
|
|
|
|
system_signal_step = vtable->signal_step;
|
|
|
|
system_sleep = vtable->sleep;
|
2020-02-08 00:50:35 +00:00
|
|
|
system_get_clipboard = vtable->get_clipboard;
|
2019-10-03 02:58:05 +00:00
|
|
|
system_post_clipboard = vtable->post_clipboard;
|
2020-02-08 00:50:35 +00:00
|
|
|
system_set_clipboard_catch_all = vtable->set_clipboard_catch_all;
|
|
|
|
system_get_clipboard_catch_all = vtable->get_clipboard_catch_all;
|
2019-10-03 02:58:05 +00:00
|
|
|
system_cli_call = vtable->cli_call;
|
|
|
|
system_cli_begin_update = vtable->cli_begin_update;
|
|
|
|
system_cli_update_step = vtable->cli_update_step;
|
|
|
|
system_cli_end_update = vtable->cli_end_update;
|
|
|
|
system_open_color_picker = vtable->open_color_picker;
|
|
|
|
system_get_screen_scale_factor = vtable->get_screen_scale_factor;
|
|
|
|
system_thread_launch = vtable->thread_launch;
|
|
|
|
system_thread_join = vtable->thread_join;
|
|
|
|
system_thread_free = vtable->thread_free;
|
|
|
|
system_thread_get_id = vtable->thread_get_id;
|
2019-10-21 02:02:58 +00:00
|
|
|
system_acquire_global_frame_mutex = vtable->acquire_global_frame_mutex;
|
|
|
|
system_release_global_frame_mutex = vtable->release_global_frame_mutex;
|
2019-10-03 02:58:05 +00:00
|
|
|
system_mutex_make = vtable->mutex_make;
|
|
|
|
system_mutex_acquire = vtable->mutex_acquire;
|
|
|
|
system_mutex_release = vtable->mutex_release;
|
|
|
|
system_mutex_free = vtable->mutex_free;
|
|
|
|
system_condition_variable_make = vtable->condition_variable_make;
|
|
|
|
system_condition_variable_wait = vtable->condition_variable_wait;
|
|
|
|
system_condition_variable_signal = vtable->condition_variable_signal;
|
|
|
|
system_condition_variable_free = vtable->condition_variable_free;
|
|
|
|
system_memory_allocate = vtable->memory_allocate;
|
|
|
|
system_memory_set_protection = vtable->memory_set_protection;
|
|
|
|
system_memory_free = vtable->memory_free;
|
2019-11-22 05:37:11 +00:00
|
|
|
system_memory_annotation = vtable->memory_annotation;
|
2019-10-03 02:58:05 +00:00
|
|
|
system_show_mouse_cursor = vtable->show_mouse_cursor;
|
|
|
|
system_set_fullscreen = vtable->set_fullscreen;
|
|
|
|
system_is_fullscreen = vtable->is_fullscreen;
|
2019-10-10 00:07:38 +00:00
|
|
|
system_get_keyboard_modifiers = vtable->get_keyboard_modifiers;
|
2019-10-03 02:58:05 +00:00
|
|
|
}
|
|
|
|
#undef DYNAMIC_LINK_API
|
|
|
|
#endif
|