The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: Check return of ipc_call_space_create_semantic_ids

authored by

Jakob Bornecrantz and committed by
Simon Zeni
88cf637e 331b5b48

+18 -16
+18 -16
src/xrt/ipc/client/ipc_client_space_overseer.c
··· 196 196 struct xrt_space_overseer * 197 197 ipc_client_space_overseer_create(struct ipc_connection *ipc_c) 198 198 { 199 - struct ipc_client_space_overseer *icspo = U_TYPED_CALLOC(struct ipc_client_space_overseer); 200 - icspo->base.create_offset_space = create_offset_space; 201 - icspo->base.create_pose_space = create_pose_space; 202 - icspo->base.locate_space = locate_space; 203 - icspo->base.locate_device = locate_device; 204 - icspo->base.destroy = destroy; 205 - icspo->ipc_c = ipc_c; 206 - 207 199 uint32_t root_id = UINT32_MAX; 208 200 uint32_t view_id = UINT32_MAX; 209 201 uint32_t local_id = UINT32_MAX; 210 202 uint32_t local_floor_id = UINT32_MAX; 211 203 uint32_t stage_id = UINT32_MAX; 212 204 uint32_t unbounded_id = UINT32_MAX; 205 + xrt_result_t xret; 213 206 214 - ipc_call_space_create_semantic_ids( // 215 - icspo->ipc_c, // 216 - &root_id, // 217 - &view_id, // 218 - &local_id, // 219 - &local_floor_id, // 220 - &stage_id, // 221 - &unbounded_id); // 207 + xret = ipc_call_space_create_semantic_ids( // 208 + ipc_c, // 209 + &root_id, // 210 + &view_id, // 211 + &local_id, // 212 + &local_floor_id, // 213 + &stage_id, // 214 + &unbounded_id); // 215 + IPC_CHK_WITH_RET(ipc_c, xret, "ipc_call_space_create_semantic_ids", NULL); 216 + 217 + struct ipc_client_space_overseer *icspo = U_TYPED_CALLOC(struct ipc_client_space_overseer); 218 + icspo->base.create_offset_space = create_offset_space; 219 + icspo->base.create_pose_space = create_pose_space; 220 + icspo->base.locate_space = locate_space; 221 + icspo->base.locate_device = locate_device; 222 + icspo->base.destroy = destroy; 223 + icspo->ipc_c = ipc_c; 222 224 223 225 #define CREATE(NAME) \ 224 226 do { \