Changeset b4b4dafe in mainline for uspace/srv/hid/display/test/window.c
- Timestamp:
- 2021-06-03T14:02:59Z (3 years ago)
- Children:
- 2e6394e
- Parents:
- 6baab83
- git-author:
- Jiri Svoboda <jiri@…> (2021-06-02 17:00:03)
- git-committer:
- Jiri Svoboda <jiri@…> (2021-06-03 14:02:59)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/test/window.c
r6baab83 rb4b4dafe 104 104 ds_display_t *disp; 105 105 ds_client_t *client; 106 ds_seat_t *seat; 106 107 ds_window_t *wnd; 107 108 display_wnd_params_t params; … … 113 114 114 115 rc = ds_client_create(disp, NULL, NULL, &client); 116 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 117 118 rc = ds_seat_create(disp, &seat); 115 119 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 116 120 … … 126 130 127 131 ds_window_destroy(wnd); 132 ds_seat_destroy(seat); 128 133 ds_client_destroy(client); 129 134 ds_display_destroy(disp); … … 136 141 ds_display_t *disp; 137 142 ds_client_t *client; 143 ds_seat_t *seat; 138 144 ds_window_t *wnd; 139 145 ds_window_t *rwindow; … … 152 158 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 153 159 160 rc = ds_seat_create(disp, &seat); 161 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 162 154 163 display_wnd_params_init(¶ms); 155 164 params.rect.p0.x = params.rect.p0.y = 0; … … 157 166 158 167 rc = ds_window_create(client, ¶ms, &wnd); 168 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 169 170 /* New window gets focused event */ 171 rc = ds_client_get_event(client, &rwindow, &revent); 159 172 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 160 173 … … 174 187 175 188 ds_window_destroy(wnd); 189 ds_seat_destroy(seat); 176 190 ds_client_destroy(client); 177 191 ds_display_destroy(disp); … … 184 198 ds_display_t *disp; 185 199 ds_client_t *client; 200 ds_seat_t *seat; 186 201 ds_window_t *wnd; 187 202 display_wnd_params_t params; … … 196 211 197 212 rc = ds_client_create(disp, NULL, NULL, &client); 213 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 214 215 rc = ds_seat_create(disp, &seat); 198 216 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 199 217 … … 242 260 243 261 ds_window_destroy(wnd); 262 ds_seat_destroy(seat); 244 263 ds_client_destroy(client); 245 264 ds_display_destroy(disp); … … 252 271 ds_display_t *disp; 253 272 ds_client_t *client; 273 ds_seat_t *seat; 254 274 ds_window_t *wnd; 255 275 display_wnd_params_t params; … … 264 284 265 285 rc = ds_client_create(disp, NULL, NULL, &client); 286 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 287 288 rc = ds_seat_create(disp, &seat); 266 289 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 267 290 … … 284 307 285 308 ds_window_destroy(wnd); 309 ds_seat_destroy(seat); 286 310 ds_client_destroy(client); 287 311 ds_display_destroy(disp); … … 340 364 ds_display_t *disp; 341 365 ds_client_t *client; 366 ds_seat_t *seat; 342 367 ds_window_t *wnd; 343 368 display_wnd_params_t params; … … 353 378 354 379 rc = ds_client_create(disp, NULL, NULL, &client); 380 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 381 382 rc = ds_seat_create(disp, &seat); 355 383 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 356 384 … … 597 625 598 626 ds_window_destroy(wnd); 627 ds_seat_destroy(seat); 599 628 ds_client_destroy(client); 600 629 ds_display_destroy(disp); … … 607 636 ds_display_t *disp; 608 637 ds_client_t *client; 638 ds_seat_t *seat; 609 639 ds_window_t *wnd; 610 640 display_wnd_params_t params; … … 618 648 619 649 rc = ds_client_create(disp, NULL, NULL, &client); 650 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 651 652 rc = ds_seat_create(disp, &seat); 620 653 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 621 654 … … 646 679 647 680 ds_window_destroy(wnd); 681 ds_seat_destroy(seat); 648 682 ds_client_destroy(client); 649 683 ds_display_destroy(disp);
Note:
See TracChangeset
for help on using the changeset viewer.