Changeset 9546146 in mainline for uspace/srv/hid/display/cfgops.c


Ignore:
Timestamp:
2024-08-23T18:02:06Z (4 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
4af6fb1
Parents:
ca95ccd
Message:

Persistently store display/seat configuration.

File:
1 edited

Legend:

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

    rca95ccd r9546146  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4141#include "display.h"
    4242#include "idevcfg.h"
     43#include "main.h"
    4344#include "seat.h"
    4445#include "cfgclient.h"
     
    181182
    182183        (void) ds_display_paint(cfgclient->display, NULL);
     184        (void) ds_display_save_cfg(cfgclient->display, cfg_file_path);
    183185        ds_display_unlock(cfgclient->display);
    184186
     
    218220
    219221        (void) ds_display_paint(cfgclient->display, NULL);
    220         ds_display_unlock(cfgclient->display);
     222        (void) ds_display_save_cfg(cfgclient->display, cfg_file_path);
     223        ds_display_unlock(cfgclient->display);
     224
    221225        return EOK;
    222226}
     
    254258        (void)idevcfg;
    255259
     260        (void) ds_display_save_cfg(cfgclient->display, cfg_file_path);
    256261        ds_display_unlock(cfgclient->display);
    257262        return EOK;
     
    287292
    288293        ds_idevcfg_destroy(idevcfg);
     294        (void) ds_display_save_cfg(cfgclient->display, cfg_file_path);
    289295        ds_display_unlock(cfgclient->display);
    290296        return EOK;
Note: See TracChangeset for help on using the changeset viewer.