Changeset 0cf3d5f in mainline for uspace/app/nav/types


Ignore:
Timestamp:
2025-10-10T08:45:43Z (6 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
c3db721
Parents:
cfd04c4
git-author:
Jiri Svoboda <jiri@…> (2025-10-09 18:45:33)
git-committer:
Jiri Svoboda <jiri@…> (2025-10-10 08:45:43)
Message:

Allow creating sparse files in Navigator and newfile.

Location:
uspace/app/nav/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nav/types/dlg/newfiledlg.h

    rcfd04c4 r0cf3d5f  
    3838
    3939#include <errno.h>
     40#include <ui/checkbox.h>
    4041#include <ui/entry.h>
    4142#include <ui/pbutton.h>
    4243#include <ui/window.h>
     44#include <stdbool.h>
    4345
    4446/** New File dialog */
     
    5052        /** File size text entry */
    5153        ui_entry_t *esize;
     54        /** Sparse checkbox */
     55        ui_checkbox_t *sparse;
    5256        /** OK button */
    5357        ui_pbutton_t *bok;
     
    6367typedef struct new_file_dlg_cb {
    6468        /** OK button was pressed */
    65         void (*bok)(new_file_dlg_t *, void *, const char *, const char *);
     69        void (*bok)(new_file_dlg_t *, void *, const char *, const char *, bool);
    6670        /** Cancel button was pressed */
    6771        void (*bcancel)(new_file_dlg_t *, void *);
  • uspace/app/nav/types/newfile.h

    rcfd04c4 r0cf3d5f  
    3737#define TYPES_NEWFILE_H
    3838
     39#include <stdbool.h>
    3940#include <stdint.h>
    4041
     
    4748        /** New file size */
    4849        uint64_t nbytes;
     50        /** @c true to create a sparse file */
     51        bool sparse;
    4952} navigator_new_file_job_t;
    5053
Note: See TracChangeset for help on using the changeset viewer.