Changeset aeb3037 in mainline for uspace/lib/display/src/display.c
- Timestamp:
- 2020-03-18T17:27:18Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0680854
- Parents:
- 1a1271d
- git-author:
- Jiri Svoboda <jiri@…> (2020-03-18 16:57:15)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-03-18 17:27:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/display/src/display.c
r1a1271d raeb3037 385 385 * 386 386 * @param display Display 387 * @param rwindow Place to store pointe to window that received event387 * @param rwindow Place to store pointer to window that received event 388 388 * @param event Place to store event 389 389 * @return EOK on success or an error code … … 418 418 419 419 *rwindow = window; 420 return EOK; 421 } 422 423 /** Get display information. 424 * 425 * @param display Display 426 * @param info Place to store display information 427 * @return EOK on success or an error code 428 */ 429 errno_t display_get_info(display_t *display, display_info_t *info) 430 { 431 async_exch_t *exch; 432 ipc_call_t answer; 433 aid_t req; 434 errno_t rc; 435 436 exch = async_exchange_begin(display->sess); 437 req = async_send_0(exch, DISPLAY_GET_INFO, &answer); 438 rc = async_data_read_start(exch, info, sizeof(*info)); 439 async_exchange_end(exch); 440 if (rc != EOK) { 441 async_forget(req); 442 return rc; 443 } 444 445 async_wait_for(req, &rc); 446 if (rc != EOK) 447 return rc; 448 420 449 return EOK; 421 450 }
Note:
See TracChangeset
for help on using the changeset viewer.