revert between 56095 -> 55830 in arch
[AROS.git] / workbench / system / Wanderer / filesystems.h
blobf221636c5901e4e9e310b08784dc89e6f91e11bf
1 #ifndef WANDERER_FILESYSTEMS_H
2 #define WANDERER_FILESYSTEMS_H
4 #ifndef __AROS__
5 #include "portable_macros.h"
6 #endif
8 #include <string.h>
9 #include <stdlib.h>
10 #include <stdio.h>
11 #include <time.h>
12 #include <math.h>
13 #include <stdarg.h>
14 #include <exec/types.h>
15 #include <exec/memory.h>
16 #include <dos/dos.h>
17 #include <intuition/intuitionbase.h>
18 #include <intuition/classusr.h>
20 #ifdef __AROS__
21 #include <clib/alib_protos.h>
22 #endif
24 #include <utility/utility.h>
25 #include <dos/dosextens.h>
26 #include <libraries/mui.h>
27 #include <proto/exec.h>
28 #include <proto/dos.h>
29 #if defined(__AMIGA__) && !defined(__PPC__)
30 #define NO_INLINE_STDARG
31 #endif
32 #include <proto/muimaster.h>
34 #ifndef _PROTO_INTUITION_H
35 #include <proto/intuition.h>
36 #endif
38 /* FILEINFO CONSTANTS */
40 #define OPMODE_ASK 0
41 #define OPMODE_YES 1
42 #define OPMODE_ALL 2
43 #define OPMODE_NO 3
44 #define OPMODE_NONE 4
46 #define ACCESS_SKIP OPMODE_YES
47 #define ACCESS_BREAK OPMODE_NONE
49 #define FILEINFO_DIR 1
50 #define FILEINFO_PROTECTED 2
51 #define FILEINFO_WRITE 4
53 #define ACTION_COPY 1
54 #define ACTION_DELETE 2
55 #define ACTION_DIRTOABS 4
56 #define ACTION_MAKEDIRS 8
57 #define ACTION_GETINFO 16
58 #define ACTION_UPDATE (1 << 31)
60 #define PATH_NOINFO 0
61 #define PATH_RECURSIVE 1
62 #define PATH_NONRECURSIVE 2
65 #define PATHBUFFERSIZE 2048
66 #define COPYLEN 131072
67 #define POOLSIZE COPYLEN * 2
70 struct dCopyStruct
72 char *spath;
73 char *dpath;
74 char *file;
75 APTR userdata;
76 ULONG flags;
77 ULONG filelen;
78 ULONG actlen;
79 ULONG totallen;
80 UWORD type;
81 unsigned int difftime;
84 struct MUIDisplayObjects
86 Object *sourceObject;
87 Object *destObject;
88 Object *fileObject;
89 Object *stopObject;
90 Object *copyApp;
91 Object *performanceObject;
92 Object *win;
93 Object *gauge;
94 ULONG stopflag;
95 ULONG numfiles;
96 ULONG smallobjects;
97 UWORD action;
98 BOOL updateme;
100 unsigned long long bytes;
101 char Buffer[128];
102 char SpeedBuffer[32];
105 struct FileInfo
107 ULONG len;
108 ULONG protection;
109 char *comment;
112 struct FileEntry
114 struct FileEntry *next;
115 char name[1];
118 struct OpModes
120 struct Hook *askhook;
121 WORD deletemode;
122 WORD protectmode;
123 WORD overwritemode;
126 char *CombineString(char *format, ...);
127 void freeString(APTR pool, char *str);
129 WORD AskChoiceNew(const char *title, const char *strg, const char *gadgets, UWORD sel, BOOL centered);
130 WORD AskChoice(const char *title, const char *strg, const char *gadgets, UWORD sel);
131 WORD AskChoiceCentered(const char *title, const char *strg, const char *gadgets, UWORD sel);
133 BOOL CopyContent(APTR p, char *s, char *d, BOOL makeparentdir, ULONG flags, struct Hook *displayHook, struct OpModes *opModes, APTR userdata);
135 #endif /* WANDERER_FILESYSTEMS_H */