Changeset fd777a2 in mainline for uspace/srv/hid/display/client.c
- Timestamp:
- 2019-11-29T23:58:15Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 879d7245
- Parents:
- cf32dbd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/client.c
rcf32dbd rfd777a2 93 93 * @param client client 94 94 * @param wnd Window 95 * @return EOK on success, ENOMEM if there are no free window identifiers 96 */ 97 errno_t ds_client_add_window(ds_client_t *client, ds_window_t *wnd) 95 */ 96 void ds_client_add_window(ds_client_t *client, ds_window_t *wnd) 98 97 { 99 98 assert(wnd->client == NULL); 100 assert(!link_used(&wnd->l windows));99 assert(!link_used(&wnd->lcwindows)); 101 100 102 101 wnd->client = client; 103 102 wnd->id = client->display->next_wnd_id++; 104 list_append(&wnd->lwindows, &client->windows); 105 106 return EOK; 103 list_append(&wnd->lcwindows, &client->windows); 107 104 } 108 105 … … 122 119 } 123 120 124 list_remove(&wnd->l windows);121 list_remove(&wnd->lcwindows); 125 122 wnd->client = NULL; 126 123 } … … 162 159 return NULL; 163 160 164 return list_get_instance(link, ds_window_t, l windows);161 return list_get_instance(link, ds_window_t, lcwindows); 165 162 } 166 163 … … 172 169 ds_window_t *ds_client_next_window(ds_window_t *wnd) 173 170 { 174 link_t *link = list_next(&wnd->l windows, &wnd->client->windows);171 link_t *link = list_next(&wnd->lcwindows, &wnd->client->windows); 175 172 176 173 if (link == NULL) 177 174 return NULL; 178 175 179 return list_get_instance(link, ds_window_t, l windows);176 return list_get_instance(link, ds_window_t, lcwindows); 180 177 } 181 178
Note:
See TracChangeset
for help on using the changeset viewer.