Changeset aeb3037 in mainline for uspace/srv
- Timestamp:
- 2020-03-18T17:27:18Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0680854
- Parents:
- 1a1271d
- git-author:
- Jiri Svoboda <jiri@…> (2020-03-18 16:57:15)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-03-18 17:27:18)
- Location:
- uspace/srv/hid/display
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/display.c
r1a1271d raeb3037 84 84 gfx_color_delete(disp->bg_color); 85 85 free(disp); 86 } 87 88 /** Get display information. 89 * 90 * @param disp Display 91 */ 92 void ds_display_get_info(ds_display_t *disp, display_info_t *info) 93 { 94 info->rect = disp->rect; 86 95 } 87 96 -
uspace/srv/hid/display/display.h
r1a1271d raeb3037 37 37 #define DISPLAY_H 38 38 39 #include <display/info.h> 39 40 #include <errno.h> 40 41 #include <gfx/context.h> … … 49 50 extern errno_t ds_display_create(gfx_context_t *, ds_display_t **); 50 51 extern void ds_display_destroy(ds_display_t *); 52 extern void ds_display_get_info(ds_display_t *, display_info_t *); 51 53 extern void ds_display_add_client(ds_display_t *, ds_client_t *); 52 54 extern void ds_display_remove_client(ds_client_t *); -
uspace/srv/hid/display/dsops.c
r1a1271d raeb3037 52 52 gfx_rect_t *); 53 53 static errno_t disp_get_event(void *, sysarg_t *, display_wnd_ev_t *); 54 static errno_t disp_get_info(void *, display_info_t *); 54 55 55 56 display_ops_t display_srv_ops = { … … 59 60 .window_resize_req = disp_window_resize_req, 60 61 .window_resize = disp_window_resize, 61 .get_event = disp_get_event 62 .get_event = disp_get_event, 63 .get_info = disp_get_info 62 64 }; 63 65 … … 168 170 } 169 171 172 static errno_t disp_get_info(void *arg, display_info_t *info) 173 { 174 ds_client_t *client = (ds_client_t *) arg; 175 176 log_msg(LOG_DEFAULT, LVL_DEBUG, "disp_get_info()"); 177 178 ds_display_get_info(client->display, info); 179 return EOK; 180 } 181 170 182 /** @} 171 183 */
Note:
See TracChangeset
for help on using the changeset viewer.