Changeset 3c54869 in mainline for uspace/lib/wndmgt
- Timestamp:
- 2023-01-04T20:24:44Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5d86797
- Parents:
- cdd6fc9
- Location:
- uspace/lib/wndmgt
- Files:
-
- 4 edited
-
include/types/wndmgt.h (modified) (2 diffs)
-
src/wndmgt.c (modified) (2 diffs)
-
src/wndmgt_srv.c (modified) (1 diff)
-
test/wndmgt.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/wndmgt/include/types/wndmgt.h
rcdd6fc9 r3c54869 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 89 89 /** Window flags */ 90 90 unsigned flags; 91 /** Number of foci on this window */ 92 unsigned nfocus; 91 93 } wndmgt_window_info_t; 92 94 -
uspace/lib/wndmgt/src/wndmgt.c
rcdd6fc9 r3c54869 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 271 271 info->caption = caption; 272 272 info->flags = ipc_get_arg1(&answer); 273 info->nfocus = ipc_get_arg2(&answer); 273 274 *rinfo = info; 274 275 return EOK; -
uspace/lib/wndmgt/src/wndmgt_srv.c
rcdd6fc9 r3c54869 200 200 } 201 201 202 async_answer_ 1(icall, EOK, info->flags);202 async_answer_2(icall, EOK, info->flags, info->nfocus); 203 203 wndmgt_free_window_info(info); 204 204 } -
uspace/lib/wndmgt/test/wndmgt.c
rcdd6fc9 r3c54869 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 282 282 resp.get_window_info_rinfo->caption = str_dup("Hello"); 283 283 resp.get_window_info_rinfo->flags = 42; 284 resp.get_window_info_rinfo->nfocus = 123; 284 285 PCUT_ASSERT_NOT_NULL(resp.get_window_info_rinfo->caption); 285 286 wnd_id = 1; … … 292 293 PCUT_ASSERT_STR_EQUALS("Hello", info->caption); 293 294 PCUT_ASSERT_INT_EQUALS(42, info->flags); 295 PCUT_ASSERT_INT_EQUALS(123, info->nfocus); 294 296 295 297 wndmgt_free_window_info(info);
Note:
See TracChangeset
for help on using the changeset viewer.
