add casts to zune macros to silence some warnings
[tangerine.git] / workbench / system / Wanderer / filesystems.h
blob2eb12e37b4ef97c3a2f1d456c0a9232e9180f981
1 #ifndef WANDERER_FILESYSTEMS_H
2 #define WANDERER_FILESYSTEMS_H
4 #include <string.h>
5 #include <stdlib.h>
6 #include <stdio.h>
7 #include <time.h>
8 #include <math.h>
9 #include <stdarg.h>
10 #include <exec/types.h>
11 #include <exec/memory.h>
12 #include <dos/dos.h>
13 #include <intuition/intuitionbase.h>
14 #include <intuition/classusr.h>
15 #include <clib/alib_protos.h>
16 #include <utility/utility.h>
17 #include <dos/dosextens.h>
18 #include <libraries/mui.h>
19 #include <clib/alib_protos.h>
20 #include <proto/exec.h>
21 #include <proto/dos.h>
22 #include <proto/muimaster.h>
23 #include <proto/intuition.h>
25 /* FILEINFO CONSTANTS */
27 #define DELMODE_ASK 0
28 #define DELMODE_DELETE 1
29 #define DELMODE_ALL 2
30 #define DELMODE_NO 3
31 #define DELMODE_NONE 4
33 #define ACCESS_SKIP DELMODE_DELETE
34 #define ACCESS_BREAK DELMODE_NONE
36 #define FILEINFO_DIR 1
37 #define FILEINFO_PROTECTED 2
38 #define FILEINFO_WRITE 4
40 #define ACTION_COPY 1
41 #define ACTION_DELETE 2
42 #define ACTION_DIRTOABS 4
43 #define ACTION_MAKEDIRS 8
44 #define ACTION_GETINFO 16
45 #define ACTION_UPDATE (1 << 31)
47 #define PATH_NOINFO 0
48 #define PATH_RECURSIVE 1
49 #define PATH_NONRECURSIVE 2
52 #define PATHBUFFERSIZE 2048
53 #define COPYLEN 131072
54 #define POOLSIZE COPYLEN * 2
57 struct dCopyStruct
59 char *spath;
60 char *dpath;
61 char *file;
62 APTR userdata;
63 ULONG flags;
64 ULONG filelen;
65 ULONG actlen;
66 ULONG totallen;
67 UWORD type;
68 unsigned int difftime;
72 struct MUIDisplayObjects
74 Object *sourceObject;
75 Object *destObject;
76 Object *fileObject;
77 Object *stopObject;
78 Object *copyApp;
79 Object *performanceObject;
80 Object *win;
81 Object *gauge;
82 ULONG stopflag;
83 ULONG numfiles;
84 ULONG smallobjects;
85 UWORD action;
86 BOOL updateme;
88 unsigned long long bytes;
89 char Buffer[128];
90 char SpeedBuffer[32];
93 struct FileInfo
95 ULONG len;
96 ULONG protection;
97 char *comment;
100 struct FileEntry
102 struct FileEntry *next;
103 char name[1];
106 char *CombineString(char *format, ...);
107 void freeString(APTR pool, char *str);
109 WORD AskChoiceNew(char *title, char *strg, char *gadgets, UWORD sel, BOOL centered);
110 WORD AskChoice(char *title, char *strg, char *gadgets, UWORD sel);
111 WORD AskChoiceCentered(char *title, char *strg, char *gadgets, UWORD sel);
113 BOOL CopyContent(APTR p, char *s, char *d, BOOL makeparentdir, ULONG flags, struct Hook *displayHook, struct Hook *delHook, APTR userdata);
115 #endif /* WANDERER_FILESYSTEMS_H */