Changeset 2309891 in mainline for uspace/lib/fmgt/include


Ignore:
Timestamp:
2025-12-14T17:15:57Z (7 weeks ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
79b77ce
Parents:
144fafd
Message:

Copy files (Navigator and command line).

TODO Overwrite query, new I/O error types.

Location:
uspace/lib/fmgt/include
Files:
1 added
2 edited

Legend:

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

    r144fafd r2309891  
    4242#include <stddef.h>
    4343#include <stdint.h>
     44#include "fmgt/copy.h"
    4445#include "fmgt/flist.h"
    4546#include "fmgt/newfile.h"
     
    5253extern void fmgt_destroy(fmgt_t *);
    5354extern void fmgt_set_init_update(fmgt_t *, bool);
     55extern const char *fmgt_basename(const char *);
     56extern bool fmgt_is_dir(const char *);
    5457
    5558#endif
  • uspace/lib/fmgt/include/types/fmgt.h

    r144fafd r2309891  
    140140/** File system tree walk callbacks */
    141141typedef struct {
    142         errno_t (*dir_enter)(void *, const char *);
    143         errno_t (*dir_leave)(void *, const char *);
    144         errno_t (*file)(void *, const char *);
     142        errno_t (*dir_enter)(void *, const char *, const char *);
     143        errno_t (*dir_leave)(void *, const char *, const char *);
     144        errno_t (*file)(void *, const char *, const char *);
    145145} fmgt_walk_cb_t;
    146146
     
    149149        /** List of files or directories (walk roots) */
    150150        fmgt_flist_t *flist;
     151        /** Destination path */
     152        const char *dest;
     153        /** Copy files into destination directory. */
     154        bool into_dest;
    151155        /** Callbacks */
    152156        fmgt_walk_cb_t *cb;
Note: See TracChangeset for help on using the changeset viewer.