• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Generated Code - DO NOT EDIT !!
2 // generated by 'emugen'
3 
4 
5 #include <string.h>
6 #include "magma_server_context.h"
7 
8 
9 #include <stdio.h>
10 
initDispatchByName(void * (* getProc)(const char *,void * userData),void * userData)11 int magma_server_context_t::initDispatchByName(void *(*getProc)(const char *, void *userData), void *userData)
12 {
13 	magma_device_import = (magma_device_import_server_proc_t) getProc("magma_device_import", userData);
14 	magma_device_release = (magma_device_release_server_proc_t) getProc("magma_device_release", userData);
15 	magma_device_query = (magma_device_query_server_proc_t) getProc("magma_device_query", userData);
16 	magma_device_query_fudge = (magma_device_query_fudge_server_proc_t) getProc("magma_device_query_fudge", userData);
17 	magma_device_create_connection = (magma_device_create_connection_server_proc_t) getProc("magma_device_create_connection", userData);
18 	magma_connection_release = (magma_connection_release_server_proc_t) getProc("magma_connection_release", userData);
19 	magma_connection_get_error = (magma_connection_get_error_server_proc_t) getProc("magma_connection_get_error", userData);
20 	magma_connection_create_context = (magma_connection_create_context_server_proc_t) getProc("magma_connection_create_context", userData);
21 	magma_connection_release_context = (magma_connection_release_context_server_proc_t) getProc("magma_connection_release_context", userData);
22 	magma_connection_create_buffer = (magma_connection_create_buffer_server_proc_t) getProc("magma_connection_create_buffer", userData);
23 	magma_connection_release_buffer = (magma_connection_release_buffer_server_proc_t) getProc("magma_connection_release_buffer", userData);
24 	magma_connection_import_buffer = (magma_connection_import_buffer_server_proc_t) getProc("magma_connection_import_buffer", userData);
25 	magma_connection_create_semaphore = (magma_connection_create_semaphore_server_proc_t) getProc("magma_connection_create_semaphore", userData);
26 	magma_connection_release_semaphore = (magma_connection_release_semaphore_server_proc_t) getProc("magma_connection_release_semaphore", userData);
27 	magma_connection_import_semaphore = (magma_connection_import_semaphore_server_proc_t) getProc("magma_connection_import_semaphore", userData);
28 	magma_connection_perform_buffer_op = (magma_connection_perform_buffer_op_server_proc_t) getProc("magma_connection_perform_buffer_op", userData);
29 	magma_connection_map_buffer = (magma_connection_map_buffer_server_proc_t) getProc("magma_connection_map_buffer", userData);
30 	magma_connection_unmap_buffer = (magma_connection_unmap_buffer_server_proc_t) getProc("magma_connection_unmap_buffer", userData);
31 	magma_connection_execute_command = (magma_connection_execute_command_server_proc_t) getProc("magma_connection_execute_command", userData);
32 	magma_connection_execute_command_fudge = (magma_connection_execute_command_fudge_server_proc_t) getProc("magma_connection_execute_command_fudge", userData);
33 	magma_connection_execute_immediate_commands = (magma_connection_execute_immediate_commands_server_proc_t) getProc("magma_connection_execute_immediate_commands", userData);
34 	magma_connection_execute_immediate_commands_fudge = (magma_connection_execute_immediate_commands_fudge_server_proc_t) getProc("magma_connection_execute_immediate_commands_fudge", userData);
35 	magma_connection_flush = (magma_connection_flush_server_proc_t) getProc("magma_connection_flush", userData);
36 	magma_connection_get_notification_channel_handle = (magma_connection_get_notification_channel_handle_server_proc_t) getProc("magma_connection_get_notification_channel_handle", userData);
37 	magma_connection_read_notification_channel = (magma_connection_read_notification_channel_server_proc_t) getProc("magma_connection_read_notification_channel", userData);
38 	magma_buffer_clean_cache = (magma_buffer_clean_cache_server_proc_t) getProc("magma_buffer_clean_cache", userData);
39 	magma_buffer_set_cache_policy = (magma_buffer_set_cache_policy_server_proc_t) getProc("magma_buffer_set_cache_policy", userData);
40 	magma_buffer_get_cache_policy = (magma_buffer_get_cache_policy_server_proc_t) getProc("magma_buffer_get_cache_policy", userData);
41 	magma_buffer_set_name = (magma_buffer_set_name_server_proc_t) getProc("magma_buffer_set_name", userData);
42 	magma_buffer_set_name_fudge = (magma_buffer_set_name_fudge_server_proc_t) getProc("magma_buffer_set_name_fudge", userData);
43 	magma_buffer_get_info = (magma_buffer_get_info_server_proc_t) getProc("magma_buffer_get_info", userData);
44 	magma_buffer_get_handle = (magma_buffer_get_handle_server_proc_t) getProc("magma_buffer_get_handle", userData);
45 	magma_buffer_export = (magma_buffer_export_server_proc_t) getProc("magma_buffer_export", userData);
46 	magma_semaphore_signal = (magma_semaphore_signal_server_proc_t) getProc("magma_semaphore_signal", userData);
47 	magma_semaphore_reset = (magma_semaphore_reset_server_proc_t) getProc("magma_semaphore_reset", userData);
48 	magma_semaphore_export = (magma_semaphore_export_server_proc_t) getProc("magma_semaphore_export", userData);
49 	magma_poll = (magma_poll_server_proc_t) getProc("magma_poll", userData);
50 	magma_initialize_tracing = (magma_initialize_tracing_server_proc_t) getProc("magma_initialize_tracing", userData);
51 	magma_initialize_logging = (magma_initialize_logging_server_proc_t) getProc("magma_initialize_logging", userData);
52 	magma_connection_enable_performance_counter_access = (magma_connection_enable_performance_counter_access_server_proc_t) getProc("magma_connection_enable_performance_counter_access", userData);
53 	magma_connection_enable_performance_counters = (magma_connection_enable_performance_counters_server_proc_t) getProc("magma_connection_enable_performance_counters", userData);
54 	magma_connection_create_performance_counter_buffer_pool = (magma_connection_create_performance_counter_buffer_pool_server_proc_t) getProc("magma_connection_create_performance_counter_buffer_pool", userData);
55 	magma_connection_release_performance_counter_buffer_pool = (magma_connection_release_performance_counter_buffer_pool_server_proc_t) getProc("magma_connection_release_performance_counter_buffer_pool", userData);
56 	magma_connection_add_performance_counter_buffer_offsets_to_pool = (magma_connection_add_performance_counter_buffer_offsets_to_pool_server_proc_t) getProc("magma_connection_add_performance_counter_buffer_offsets_to_pool", userData);
57 	magma_connection_remove_performance_counter_buffer_from_pool = (magma_connection_remove_performance_counter_buffer_from_pool_server_proc_t) getProc("magma_connection_remove_performance_counter_buffer_from_pool", userData);
58 	magma_connection_dump_performance_counters = (magma_connection_dump_performance_counters_server_proc_t) getProc("magma_connection_dump_performance_counters", userData);
59 	magma_connection_clear_performance_counters = (magma_connection_clear_performance_counters_server_proc_t) getProc("magma_connection_clear_performance_counters", userData);
60 	magma_connection_read_performance_counter_completion = (magma_connection_read_performance_counter_completion_server_proc_t) getProc("magma_connection_read_performance_counter_completion", userData);
61 	magma_virt_connection_create_image = (magma_virt_connection_create_image_server_proc_t) getProc("magma_virt_connection_create_image", userData);
62 	magma_virt_connection_get_image_info = (magma_virt_connection_get_image_info_server_proc_t) getProc("magma_virt_connection_get_image_info", userData);
63 	return 0;
64 }
65 
66