Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/main.c

    r6fbd1f9 r4c6fd56  
    11/*
    2  * Copyright (c) 2024 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    5454#include "display.h"
    5555#include "dsops.h"
    56 #include "ievent.h"
    5756#include "input.h"
    5857#include "main.h"
     
    6261#include "wmclient.h"
    6362#include "wmops.h"
    64 
    65 const char *cfg_file_path = "/w/cfg/display.sif";
    6663
    6764static void display_client_conn(ipc_call_t *, void *);
     
    140137                goto error;
    141138
    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         }
     139        rc = ds_seat_create(disp, "Alice", &seat);
     140        if (rc != EOK)
     141                goto error;
    152142
    153143        rc = ds_output_create(&output);
     
    157147        output->def_display = disp;
    158148        rc = ds_output_start_discovery(output);
    159         if (rc != EOK)
    160                 goto error;
    161 
    162         rc = ds_ievent_init(disp);
    163149        if (rc != EOK)
    164150                goto error;
     
    216202                ds_input_close(disp);
    217203#endif
    218         ds_ievent_fini(disp);
    219204        if (output != NULL)
    220205                ds_output_destroy(output);
Note: See TracChangeset for help on using the changeset viewer.