Changeset 68704ab in mainline for uspace/lib
- Timestamp:
- 2022-11-09T20:40:57Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c48192e
- Parents:
- 88d828e
- Location:
- uspace/lib/wndmgt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/wndmgt/include/types/wndmgt.h
r88d828e r68704ab 87 87 /** Window caption */ 88 88 char *caption; 89 /** Window flags */ 90 unsigned flags; 89 91 } wndmgt_window_info_t; 90 92 -
uspace/lib/wndmgt/src/wndmgt.c
r88d828e r68704ab 270 270 271 271 info->caption = caption; 272 info->flags = ipc_get_arg1(&answer); 272 273 *rinfo = info; 273 274 return EOK; -
uspace/lib/wndmgt/src/wndmgt_srv.c
r88d828e r68704ab 198 198 } 199 199 200 async_answer_ 0(icall, EOK);200 async_answer_1(icall, EOK, info->flags); 201 201 wndmgt_free_window_info(info); 202 202 } -
uspace/lib/wndmgt/test/wndmgt.c
r88d828e r68704ab 281 281 PCUT_ASSERT_NOT_NULL(resp.get_window_info_rinfo); 282 282 resp.get_window_info_rinfo->caption = str_dup("Hello"); 283 resp.get_window_info_rinfo->flags = 42; 283 284 PCUT_ASSERT_NOT_NULL(resp.get_window_info_rinfo->caption); 284 285 wnd_id = 1; … … 290 291 291 292 PCUT_ASSERT_STR_EQUALS("Hello", info->caption); 293 PCUT_ASSERT_INT_EQUALS(42, info->flags); 292 294 293 295 wndmgt_free_window_info(info);
Note:
See TracChangeset
for help on using the changeset viewer.