Changes in uspace/srv/hid/display/main.c [4c6fd56:6fbd1f9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/main.c
r4c6fd56 r6fbd1f9 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2024 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 54 54 #include "display.h" 55 55 #include "dsops.h" 56 #include "ievent.h" 56 57 #include "input.h" 57 58 #include "main.h" … … 61 62 #include "wmclient.h" 62 63 #include "wmops.h" 64 65 const char *cfg_file_path = "/w/cfg/display.sif"; 63 66 64 67 static void display_client_conn(ipc_call_t *, void *); … … 137 140 goto error; 138 141 139 rc = ds_seat_create(disp, "Alice", &seat); 140 if (rc != EOK) 141 goto error; 142 rc = ds_display_load_cfg(disp, cfg_file_path); 143 if (rc != EOK) { 144 log_msg(LOG_DEFAULT, LVL_NOTE, 145 "Starting with fresh configuration."); 146 147 /* Create first seat */ 148 rc = ds_seat_create(disp, "Alice", &seat); 149 if (rc != EOK) 150 goto error; 151 } 142 152 143 153 rc = ds_output_create(&output); … … 147 157 output->def_display = disp; 148 158 rc = ds_output_start_discovery(output); 159 if (rc != EOK) 160 goto error; 161 162 rc = ds_ievent_init(disp); 149 163 if (rc != EOK) 150 164 goto error; … … 202 216 ds_input_close(disp); 203 217 #endif 218 ds_ievent_fini(disp); 204 219 if (output != NULL) 205 220 ds_output_destroy(output);
Note:
See TracChangeset
for help on using the changeset viewer.