Monado OpenXR Runtime
ipc_server_callbacks Struct Reference
Collaboration diagram for ipc_server_callbacks:

Data Fields

void(* init_failed )(xrt_result_t xret, void *data)
 The IPC server failed to init. More...
 
void(* mainloop_entering )(struct ipc_server *s, struct xrt_instance *xinst, void *data)
 The service has completed init and is entering its mainloop. More...
 
void(* mainloop_leaving )(struct ipc_server *s, struct xrt_instance *xinst, void *data)
 The service is leaving the mainloop, after this callback returns the IPC server will destroy all resources created. More...
 
void(* client_connected )(struct ipc_server *s, uint32_t client_id, void *data)
 A new client has connected to the IPC server. More...
 
void(* client_disconnected )(struct ipc_server *s, uint32_t client_id, void *data)
 A client has disconnected from the IPC server. More...
 

Field Documentation

◆ client_connected

void(* ipc_server_callbacks::client_connected) (struct ipc_server *s, uint32_t client_id, void *data)

A new client has connected to the IPC server.

param s The IPC server. param client_id The ID of the newly connected client. param data User data given passed into the main function.

◆ client_disconnected

void(* ipc_server_callbacks::client_disconnected) (struct ipc_server *s, uint32_t client_id, void *data)

A client has disconnected from the IPC server.

param s The IPC server. param client_id The ID of the newly connected client. param data User data given passed into the main function.

◆ init_failed

void(* ipc_server_callbacks::init_failed) (xrt_result_t xret, void *data)

The IPC server failed to init.

Parameters
[in]xretThe error code generated during init.
[in]dataUser data given passed into the main function.

Referenced by ipc_server_main().

◆ mainloop_entering

void(* ipc_server_callbacks::mainloop_entering) (struct ipc_server *s, struct xrt_instance *xinst, void *data)

The service has completed init and is entering its mainloop.

Parameters
[in]sThe IPC server.
[in]xinstInstance that was created by the IPC server.
[in]dataUser data given passed into the main function.

◆ mainloop_leaving

void(* ipc_server_callbacks::mainloop_leaving) (struct ipc_server *s, struct xrt_instance *xinst, void *data)

The service is leaving the mainloop, after this callback returns the IPC server will destroy all resources created.

Parameters
[in]sThe IPC server.
[in]xinstInstance that was created by the IPC server.
[in]dataUser data given passed into the main function.

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