Monado OpenXR Runtime
ipcproto.common.Arg Class Reference

Public Member Functions

def parse_array (cls, a)
 
def get_func_argument_in (self)
 
def get_func_argument_out (self)
 
def get_struct_field (self)
 
def dump (self)
 
def __init__ (self, data)
 

Data Fields

 name
 
 typename
 
 is_standard_scalar
 
 is_aggregate
 
 is_enum
 

Static Public Attributes

 SCALAR_TYPES
 
 AGGREGATE_RE = re.compile(r"((const )?struct|union) (xrt|ipc)_[a-z_]+")
 
 ENUM_RE = re.compile(r"enum xrt_[a-z_]+")
 

Detailed Description

An IPC call argument.

Constructor & Destructor Documentation

◆ __init__()

def ipcproto.common.Arg.__init__ (   self,
  data 
)
Construct an argument.

References ipcproto.common.Arg.AGGREGATE_RE, ipcproto.common.Arg.ENUM_RE, ipcproto.common.Arg.is_aggregate, ipcproto.common.Arg.is_enum, ipcproto.common.Arg.is_standard_scalar, bindings.Profile.name, u_live_stats_ns.name, xrt::auxiliary::util::Obj.name, u_var_info.name, u_var_root_info.name, comp_target.name, comp_target_factory.name, comp_window_direct_nvidia_display.name, comp_window_direct_randr_display.name, direct_wayland_lease_connector.name, comp_window_xcb_display.name, InputClass.name, v4l2_control_state.name, lighthouse_watchman.name, wmr_config_header.name, xrt_layer_data.name, xrt_input.name, xrt_output.name, xrt_binding_profile.name, xrt_device.name, xrt_builder.name, xrt_prober_entry.name, xrt_auto_prober.name, xrt_system_properties.name, xrt_tracking_origin.name, xrt_fs.name, ipc_shared_binding_profile.name, ipc_shared_device.name, ipcproto.common.Arg.name, ipcproto.common.Call.name, camera_window.name, thread.name, ipc_shared_tracking_origin.name, gui_ogl_texture.name, oxr_instance.name, oxr_action_output.name, oxr_space.name, oxr_action_ref.name, oxr_action_set_ref.name, monado.Device.name, monado.Client.name, xrt::tracking::hand::mercury::model_input_wrap.name, ipcproto.common.Arg.SCALAR_TYPES, ipcproto.common.Arg.typename, and ipcproto.common.HandleType.typename.

Member Function Documentation

◆ dump()

def ipcproto.common.Arg.dump (   self)
Dump human-readable output to standard out.

References bindings.Profile.name, u_live_stats_ns.name, xrt::auxiliary::util::Obj.name, u_var_info.name, u_var_root_info.name, comp_target.name, comp_target_factory.name, comp_window_direct_nvidia_display.name, comp_window_direct_randr_display.name, direct_wayland_lease_connector.name, comp_window_xcb_display.name, InputClass.name, v4l2_control_state.name, lighthouse_watchman.name, wmr_config_header.name, xrt_layer_data.name, xrt_input.name, xrt_output.name, xrt_binding_profile.name, xrt_device.name, xrt_builder.name, xrt_prober_entry.name, xrt_auto_prober.name, xrt_system_properties.name, xrt_tracking_origin.name, camera_window.name, xrt_fs.name, thread.name, ipc_shared_binding_profile.name, ipc_shared_device.name, ipcproto.common.Arg.name, ipcproto.common.Call.name, gui_ogl_texture.name, oxr_instance.name, oxr_action_output.name, oxr_space.name, oxr_action_ref.name, oxr_action_set_ref.name, ipc_shared_tracking_origin.name, monado.Device.name, monado.Client.name, xrt::tracking::hand::mercury::model_input_wrap.name, ipcproto.common.Arg.typename, and ipcproto.common.HandleType.typename.

◆ get_func_argument_in()

def ipcproto.common.Arg.get_func_argument_in (   self)
Get the type and name of this argument as an input parameter.

References ipcproto.common.Arg.is_aggregate, bindings.Profile.name, u_live_stats_ns.name, xrt::auxiliary::util::Obj.name, u_var_root_info.name, comp_target.name, comp_target_factory.name, comp_window_direct_nvidia_display.name, comp_window_direct_randr_display.name, direct_wayland_lease_connector.name, comp_window_xcb_display.name, InputClass.name, v4l2_control_state.name, lighthouse_watchman.name, wmr_config_header.name, u_var_info.name, thread.name, xrt_layer_data.name, xrt_input.name, xrt_output.name, xrt_binding_profile.name, xrt_device.name, xrt_fs.name, xrt_builder.name, xrt_prober_entry.name, xrt_auto_prober.name, xrt_system_properties.name, xrt_tracking_origin.name, oxr_action_ref.name, oxr_action_set_ref.name, ipc_shared_tracking_origin.name, ipc_shared_binding_profile.name, ipc_shared_device.name, ipcproto.common.Arg.name, ipcproto.common.Call.name, gui_ogl_texture.name, camera_window.name, oxr_instance.name, oxr_action_output.name, oxr_space.name, monado.Device.name, monado.Client.name, xrt::tracking::hand::mercury::model_input_wrap.name, ipcproto.common.Arg.typename, and ipcproto.common.HandleType.typename.

◆ get_func_argument_out()

def ipcproto.common.Arg.get_func_argument_out (   self)
Get the type and name of this argument as an output parameter.

References bindings.Profile.name, u_live_stats_ns.name, xrt::auxiliary::util::Obj.name, u_var_info.name, u_var_root_info.name, comp_target.name, comp_target_factory.name, comp_window_direct_nvidia_display.name, comp_window_direct_randr_display.name, direct_wayland_lease_connector.name, comp_window_xcb_display.name, InputClass.name, v4l2_control_state.name, lighthouse_watchman.name, wmr_config_header.name, xrt_layer_data.name, xrt_input.name, xrt_output.name, xrt_binding_profile.name, xrt_device.name, xrt_builder.name, xrt_prober_entry.name, xrt_auto_prober.name, xrt_system_properties.name, xrt_tracking_origin.name, camera_window.name, xrt_fs.name, thread.name, ipc_shared_binding_profile.name, ipc_shared_device.name, ipcproto.common.Arg.name, ipcproto.common.Call.name, gui_ogl_texture.name, oxr_instance.name, oxr_action_output.name, oxr_space.name, oxr_action_ref.name, oxr_action_set_ref.name, ipc_shared_tracking_origin.name, monado.Device.name, monado.Client.name, xrt::tracking::hand::mercury::model_input_wrap.name, ipcproto.common.Arg.typename, and ipcproto.common.HandleType.typename.

◆ get_struct_field()

def ipcproto.common.Arg.get_struct_field (   self)
Get the type and name of this argument as a struct field.

References bindings.Profile.name, u_live_stats_ns.name, xrt::auxiliary::util::Obj.name, u_var_info.name, u_var_root_info.name, comp_target.name, comp_target_factory.name, comp_window_direct_nvidia_display.name, comp_window_direct_randr_display.name, direct_wayland_lease_connector.name, comp_window_xcb_display.name, InputClass.name, v4l2_control_state.name, lighthouse_watchman.name, wmr_config_header.name, xrt_layer_data.name, xrt_input.name, xrt_output.name, xrt_binding_profile.name, xrt_device.name, xrt_builder.name, xrt_prober_entry.name, xrt_auto_prober.name, xrt_system_properties.name, xrt_tracking_origin.name, camera_window.name, xrt_fs.name, thread.name, ipc_shared_binding_profile.name, ipc_shared_device.name, ipcproto.common.Arg.name, ipcproto.common.Call.name, gui_ogl_texture.name, oxr_instance.name, oxr_action_output.name, oxr_space.name, oxr_action_ref.name, oxr_action_set_ref.name, ipc_shared_tracking_origin.name, monado.Device.name, monado.Client.name, xrt::tracking::hand::mercury::model_input_wrap.name, ipcproto.common.Arg.typename, and ipcproto.common.HandleType.typename.

◆ parse_array()

def ipcproto.common.Arg.parse_array (   cls,
  a 
)
Turn an array of data into an array of Arg objects.

Field Documentation

◆ SCALAR_TYPES

ipcproto.common.Arg.SCALAR_TYPES
static
Initial value:
= set(("uint32_t",
"int64_t",
"uint64_t",
"bool",
"float"))

Referenced by ipcproto.common.Arg.__init__().


The documentation for this class was generated from the following file: