Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sysinst/sysinst.h

    r629b480 r2c21595  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2026 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3737#define SYSINST_H
    3838
    39 #include <futil.h>
     39#include <fibril_synch.h>
     40#include <fmgt.h>
    4041#include <gfx/color.h>
    4142#include <loc.h>
     43#include <stdbool.h>
    4244#include <system.h>
    4345#include <ui/fixed.h>
     
    5254        ui_label_t *label;
    5355        ui_label_t *action;
     56        ui_label_t *progress;
    5457} sysinst_progress_t;
     58
     59/** Installer operation */
     60typedef enum {
     61        /** initial OS installation */
     62        sio_install,
     63        /** OS upgrade */
     64        sio_upgrade
     65} sysinst_oper_t;
    5566
    5667/** System installer. */
     
    6374        /** Service ID of destination partition. */
    6475        sysarg_t psvc_id;
    65         futil_t *futil;
     76        /** operation being performed */
     77        sysinst_oper_t oper;
     78        fmgt_t *fmgt;
     79        /** @c true after user responds to interactive query. */
     80        bool responded;
     81        /** Signalled when @c responded changes */
     82        fibril_condvar_t responded_cv;
     83        /** Synchronize access to @c responded */
     84        fibril_mutex_t responded_lock;
     85        /** User decided to quit installation. */
     86        bool quit;
    6687        char errmsg[128];
     88        /** Allow overwriting files in current copy operation. */
     89        bool overwrite;
    6790} sysinst_t;
    6891
Note: See TracChangeset for help on using the changeset viewer.