Changeset b3eeae5 in mainline for uspace/lib/dispcfg/src/dispcfg.c
- Timestamp:
- 2023-01-15T09:24:50Z (21 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46a47c0
- Parents:
- 46b02cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/dispcfg/src/dispcfg.c
r46b02cb rb3eeae5 335 335 exch = async_exchange_begin(dispcfg->sess); 336 336 rc = async_req_1_0(exch, DISPCFG_SEAT_DELETE, seat_id); 337 338 async_exchange_end(exch); 339 return rc; 340 } 341 342 /** Assign device to seat. 343 * 344 * @param dispcfg Display configuration 345 * @param svc_id Device service ID 346 * @param seat_id Seat ID 347 * @return EOK on success or an error code 348 */ 349 errno_t dispcfg_dev_assign(dispcfg_t *dispcfg, sysarg_t svc_id, 350 sysarg_t seat_id) 351 { 352 async_exch_t *exch; 353 errno_t rc; 354 355 exch = async_exchange_begin(dispcfg->sess); 356 rc = async_req_2_0(exch, DISPCFG_DEV_ASSIGN, svc_id, seat_id); 357 358 async_exchange_end(exch); 359 return rc; 360 } 361 362 /** Unassign device from any specific seat. 363 * 364 * The device will fall back to the default seat. 365 * 366 * @param dispcfg Display configuration 367 * @param svc_id Device service ID 368 * @return EOK on success or an error code 369 */ 370 errno_t dispcfg_dev_unassign(dispcfg_t *dispcfg, sysarg_t svc_id) 371 { 372 async_exch_t *exch; 373 errno_t rc; 374 375 exch = async_exchange_begin(dispcfg->sess); 376 rc = async_req_1_0(exch, DISPCFG_DEV_UNASSIGN, svc_id); 337 377 338 378 async_exchange_end(exch);
Note:
See TracChangeset
for help on using the changeset viewer.