Changeset 29e7cc7 in mainline for uspace/app/sysinst/sysinst.h


Ignore:
Timestamp:
2025-04-18T15:14:10Z (2 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
e77c3ed
Parents:
800d188 (diff), 25fdb2d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'upstream/master' into helenraid

File:
1 moved

Legend:

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

    r800d188 r29e7cc7  
    11/*
    2  * Copyright (c) 2006 Josef Cejka
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @file
     29/** @addtogroup sysinst
     30 * @{
     31 */
     32/**
     33 * @file System installer
    3034 */
    3135
    32 #ifndef BOOT_PRINTF_CORE_H_
    33 #define BOOT_PRINTF_CORE_H_
     36#ifndef SYSINST_H
     37#define SYSINST_H
    3438
    35 #include <stddef.h>
    36 #include <stdarg.h>
     39#include <futil.h>
     40#include <gfx/color.h>
     41#include <system.h>
     42#include <ui/fixed.h>
     43#include <ui/label.h>
     44#include <ui/ui.h>
     45#include <ui/window.h>
    3746
    38 /** Structure for specifying output methods for different printf clones. */
     47/** Installation progress window. */
    3948typedef struct {
    40         /* String output function, returns number of printed characters or EOF */
    41         int (*str_write)(const char *, size_t, void *);
     49        ui_window_t *window;
     50        ui_fixed_t *fixed;
     51        ui_label_t *label;
     52        ui_label_t *action;
     53} sysinst_progress_t;
    4254
    43         /* User data - output stream specification, state, locks, etc. */
    44         void *data;
    45 } printf_spec_t;
    46 
    47 extern int printf_core(const char *, printf_spec_t *, va_list);
     55/** System installer. */
     56typedef struct {
     57        ui_t *ui;
     58        ui_window_t *bgwindow;
     59        gfx_color_t *bg_color;
     60        sysinst_progress_t *progress;
     61        system_t *system;
     62        futil_t *futil;
     63        char errmsg[128];
     64} sysinst_t;
    4865
    4966#endif
Note: See TracChangeset for help on using the changeset viewer.