1 // Generated Code - DO NOT EDIT !! 2 // generated by 'emugen' 3 #ifndef __magma_client_context_t_h 4 #define __magma_client_context_t_h 5 6 #include "magma_client_proc.h" 7 8 #include "magma_types.h" 9 10 11 struct magma_client_context_t { 12 13 magma_device_import_client_proc_t magma_device_import; 14 magma_device_release_client_proc_t magma_device_release; 15 magma_device_query_client_proc_t magma_device_query; 16 magma_device_query_fudge_client_proc_t magma_device_query_fudge; 17 magma_device_create_connection_client_proc_t magma_device_create_connection; 18 magma_connection_release_client_proc_t magma_connection_release; 19 magma_connection_get_error_client_proc_t magma_connection_get_error; 20 magma_connection_create_context_client_proc_t magma_connection_create_context; 21 magma_connection_release_context_client_proc_t magma_connection_release_context; 22 magma_connection_create_buffer_client_proc_t magma_connection_create_buffer; 23 magma_connection_release_buffer_client_proc_t magma_connection_release_buffer; 24 magma_connection_import_buffer_client_proc_t magma_connection_import_buffer; 25 magma_connection_create_semaphore_client_proc_t magma_connection_create_semaphore; 26 magma_connection_release_semaphore_client_proc_t magma_connection_release_semaphore; 27 magma_connection_import_semaphore_client_proc_t magma_connection_import_semaphore; 28 magma_connection_perform_buffer_op_client_proc_t magma_connection_perform_buffer_op; 29 magma_connection_map_buffer_client_proc_t magma_connection_map_buffer; 30 magma_connection_unmap_buffer_client_proc_t magma_connection_unmap_buffer; 31 magma_connection_execute_command_client_proc_t magma_connection_execute_command; 32 magma_connection_execute_command_fudge_client_proc_t magma_connection_execute_command_fudge; 33 magma_connection_execute_immediate_commands_client_proc_t magma_connection_execute_immediate_commands; 34 magma_connection_execute_immediate_commands_fudge_client_proc_t magma_connection_execute_immediate_commands_fudge; 35 magma_connection_flush_client_proc_t magma_connection_flush; 36 magma_connection_get_notification_channel_handle_client_proc_t magma_connection_get_notification_channel_handle; 37 magma_connection_read_notification_channel_client_proc_t magma_connection_read_notification_channel; 38 magma_buffer_clean_cache_client_proc_t magma_buffer_clean_cache; 39 magma_buffer_set_cache_policy_client_proc_t magma_buffer_set_cache_policy; 40 magma_buffer_get_cache_policy_client_proc_t magma_buffer_get_cache_policy; 41 magma_buffer_set_name_client_proc_t magma_buffer_set_name; 42 magma_buffer_set_name_fudge_client_proc_t magma_buffer_set_name_fudge; 43 magma_buffer_get_info_client_proc_t magma_buffer_get_info; 44 magma_buffer_get_handle_client_proc_t magma_buffer_get_handle; 45 magma_buffer_export_client_proc_t magma_buffer_export; 46 magma_semaphore_signal_client_proc_t magma_semaphore_signal; 47 magma_semaphore_reset_client_proc_t magma_semaphore_reset; 48 magma_semaphore_export_client_proc_t magma_semaphore_export; 49 magma_poll_client_proc_t magma_poll; 50 magma_initialize_tracing_client_proc_t magma_initialize_tracing; 51 magma_initialize_logging_client_proc_t magma_initialize_logging; 52 magma_connection_enable_performance_counter_access_client_proc_t magma_connection_enable_performance_counter_access; 53 magma_connection_enable_performance_counters_client_proc_t magma_connection_enable_performance_counters; 54 magma_connection_create_performance_counter_buffer_pool_client_proc_t magma_connection_create_performance_counter_buffer_pool; 55 magma_connection_release_performance_counter_buffer_pool_client_proc_t magma_connection_release_performance_counter_buffer_pool; 56 magma_connection_add_performance_counter_buffer_offsets_to_pool_client_proc_t magma_connection_add_performance_counter_buffer_offsets_to_pool; 57 magma_connection_remove_performance_counter_buffer_from_pool_client_proc_t magma_connection_remove_performance_counter_buffer_from_pool; 58 magma_connection_dump_performance_counters_client_proc_t magma_connection_dump_performance_counters; 59 magma_connection_clear_performance_counters_client_proc_t magma_connection_clear_performance_counters; 60 magma_connection_read_performance_counter_completion_client_proc_t magma_connection_read_performance_counter_completion; 61 magma_virt_connection_create_image_client_proc_t magma_virt_connection_create_image; 62 magma_virt_connection_get_image_info_client_proc_t magma_virt_connection_get_image_info; ~magma_client_context_tmagma_client_context_t63 virtual ~magma_client_context_t() {} 64 65 typedef magma_client_context_t *CONTEXT_ACCESSOR_TYPE(void); 66 static void setContextAccessor(CONTEXT_ACCESSOR_TYPE *f); 67 int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData); setErrormagma_client_context_t68 virtual void setError(unsigned int error){ (void)error; } getErrormagma_client_context_t69 virtual unsigned int getError(){ return 0; } 70 }; 71 72 #endif 73