Changeset 0eca788 in mainline
- Timestamp:
- 2022-03-15T19:22:58Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f2b9ecf
- Parents:
- bd16113
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/uidemo/uidemo.c
rbd16113 r0eca788 1037 1037 } 1038 1038 1039 rc = ui_slider_create(ui_res, "Slide!",&demo.slider);1039 rc = ui_slider_create(ui_res, &demo.slider); 1040 1040 if (rc != EOK) { 1041 1041 printf("Error creating button.\n"); -
uspace/lib/ui/include/ui/slider.h
rbd16113 r0eca788 46 46 #include <types/ui/slider.h> 47 47 48 extern errno_t ui_slider_create(ui_resource_t *, const char *, 49 ui_slider_t **); 48 extern errno_t ui_slider_create(ui_resource_t *, ui_slider_t **); 50 49 extern void ui_slider_destroy(ui_slider_t *); 51 50 extern ui_control_t *ui_slider_ctl(ui_slider_t *); -
uspace/lib/ui/src/slider.c
rbd16113 r0eca788 88 88 * 89 89 * @param resource UI resource 90 * @param caption Caption91 90 * @param rslider Place to store pointer to new slider 92 91 * @return EOK on success, ENOMEM if out of memory 93 92 */ 94 errno_t ui_slider_create(ui_resource_t *resource, const char *caption, 95 ui_slider_t **rslider) 93 errno_t ui_slider_create(ui_resource_t *resource, ui_slider_t **rslider) 96 94 { 97 95 ui_slider_t *slider; -
uspace/lib/ui/test/slider.c
rbd16113 r0eca788 99 99 errno_t rc; 100 100 101 rc = ui_slider_create(NULL, "Hello",&slider);101 rc = ui_slider_create(NULL, &slider); 102 102 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 103 103 PCUT_ASSERT_NOT_NULL(slider); … … 119 119 errno_t rc; 120 120 121 rc = ui_slider_create(NULL, "Hello",&slider);121 rc = ui_slider_create(NULL, &slider); 122 122 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 123 123 … … 135 135 errno_t rc; 136 136 137 rc = ui_slider_create(NULL, "Hello",&slider);137 rc = ui_slider_create(NULL, &slider); 138 138 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 139 139 … … 169 169 PCUT_ASSERT_NOT_NULL(resource); 170 170 171 rc = ui_slider_create(resource, "Hello",&slider);171 rc = ui_slider_create(resource, &slider); 172 172 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 173 173 … … 199 199 PCUT_ASSERT_NOT_NULL(resource); 200 200 201 rc = ui_slider_create(resource, "Hello",&slider);201 rc = ui_slider_create(resource, &slider); 202 202 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 203 203 … … 219 219 test_cb_resp_t resp; 220 220 221 rc = ui_slider_create(NULL, "Hello",&slider);221 rc = ui_slider_create(NULL, &slider); 222 222 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 223 223 … … 260 260 PCUT_ASSERT_NOT_NULL(resource); 261 261 262 rc = ui_slider_create(resource, "Hello",&slider);262 rc = ui_slider_create(resource, &slider); 263 263 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 264 264 … … 316 316 PCUT_ASSERT_NOT_NULL(resource); 317 317 318 rc = ui_slider_create(resource, "Hello",&slider);318 rc = ui_slider_create(resource, &slider); 319 319 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 320 320 … … 380 380 PCUT_ASSERT_NOT_NULL(resource); 381 381 382 rc = ui_slider_create(resource, "Hello",&slider);382 rc = ui_slider_create(resource, &slider); 383 383 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 384 384 … … 441 441 PCUT_ASSERT_NOT_NULL(resource); 442 442 443 rc = ui_slider_create(resource, "Hello",&slider);443 rc = ui_slider_create(resource, &slider); 444 444 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 445 445
Note:
See TracChangeset
for help on using the changeset viewer.