Changeset 0ce9eb8 in mainline for uspace/lib/fmgt/include


Ignore:
Timestamp:
2026-02-10T12:52:07Z (4 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
857fba8
Parents:
26a9388
git-author:
Jiri Svoboda <jiri@…> (2026-02-10 18:51:59)
git-committer:
Jiri Svoboda <jiri@…> (2026-02-10 12:52:07)
Message:

Ask user what to do if destination file exists while copying.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fmgt/include/types/fmgt.h

    r26a9388 r0ce9eb8  
    11/*
    2  * Copyright (c) 2025 Jiri Svoboda
     2 * Copyright (c) 2026 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    9090} fmgt_error_action_t;
    9191
     92/** File management file/directory exists report */
     93typedef struct {
     94        /** File name */
     95        const char *fname;
     96} fmgt_exists_t;
     97
     98/** File management file/directory exists recovery action */
     99typedef enum {
     100        /** Overwrite */
     101        fmgt_exr_overwrite,
     102        /** Skip */
     103        fmgt_exr_skip,
     104        /** Abort */
     105        fmgt_exr_abort
     106} fmgt_exists_action_t;
     107
    92108/** File management callbacks */
    93109typedef struct {
    94110        bool (*abort_query)(void *);
    95111        fmgt_error_action_t (*io_error_query)(void *, fmgt_io_error_t *);
     112        fmgt_exists_action_t (*exists_query)(void *, fmgt_exists_t *);
    96113        void (*progress)(void *, fmgt_progress_t *);
    97114} fmgt_cb_t;
Note: See TracChangeset for help on using the changeset viewer.