Changeset b4b4dafe in mainline for uspace/srv/hid/display/test/display.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/display.c
r6baab83 rb4b4dafe 94 94 ds_display_t *disp; 95 95 ds_client_t *client; 96 ds_seat_t *seat; 96 97 ds_window_t *w0; 97 98 ds_window_t *w1; 98 99 ds_window_t *wnd; 99 100 display_wnd_params_t params; 100 errno_t rc; 101 102 rc = ds_display_create(NULL, df_none, &disp); 103 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 104 105 rc = ds_client_create(disp, &test_ds_client_cb, NULL, &client); 101 bool called_cb = false; 102 errno_t rc; 103 104 rc = ds_display_create(NULL, df_none, &disp); 105 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 106 107 rc = ds_client_create(disp, &test_ds_client_cb, &called_cb, &client); 108 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 109 110 rc = ds_seat_create(disp, &seat); 106 111 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 107 112 … … 148 153 ds_window_destroy(w0); 149 154 ds_window_destroy(w1); 155 ds_seat_destroy(seat); 150 156 ds_client_destroy(client); 151 157 ds_display_destroy(disp); … … 157 163 ds_display_t *disp; 158 164 ds_client_t *client; 165 ds_seat_t *seat; 159 166 ds_window_t *w0; 160 167 ds_window_t *w1; … … 162 169 display_wnd_params_t params; 163 170 gfx_coord2_t pos; 164 errno_t rc; 165 166 rc = ds_display_create(NULL, df_none, &disp); 167 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 168 169 rc = ds_client_create(disp, &test_ds_client_cb, NULL, &client); 171 bool called_cb = false; 172 errno_t rc; 173 174 rc = ds_display_create(NULL, df_none, &disp); 175 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 176 177 rc = ds_client_create(disp, &test_ds_client_cb, &called_cb, &client); 178 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 179 180 rc = ds_seat_create(disp, &seat); 170 181 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 171 182 … … 198 209 ds_window_destroy(w0); 199 210 ds_window_destroy(w1); 211 ds_seat_destroy(seat); 200 212 ds_client_destroy(client); 201 213 ds_display_destroy(disp);
Note:
See TracChangeset
for help on using the changeset viewer.