Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / system / Wanderer / filesystems.h
blobf6d517b228854f5d8c19ee7ab1d5227ca7e2678d
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 DELMODE_ASK 0
41 #define DELMODE_DELETE 1
42 #define DELMODE_ALL 2
43 #define DELMODE_NO 3
44 #define DELMODE_NONE 4
46 #define ACCESS_SKIP DELMODE_DELETE
47 #define ACCESS_BREAK DELMODE_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;
85 struct MUIDisplayObjects
87 Object *sourceObject;
88 Object *destObject;
89 Object *fileObject;
90 Object *stopObject;
91 Object *copyApp;
92 Object *performanceObject;
93 Object *win;
94 Object *gauge;
95 ULONG stopflag;
96 ULONG numfiles;
97 ULONG smallobjects;
98 UWORD action;
99 BOOL updateme;
101 unsigned long long bytes;
102 char Buffer[128];
103 char SpeedBuffer[32];
106 struct FileInfo
108 ULONG len;
109 ULONG protection;
110 char *comment;
113 struct FileEntry
115 struct FileEntry *next;
116 char name[1];
119 char *CombineString(char *format, ...);
120 void freeString(APTR pool, char *str);
122 WORD AskChoiceNew(char *title, char *strg, char *gadgets, UWORD sel, BOOL centered);
123 WORD AskChoice(char *title, char *strg, char *gadgets, UWORD sel);
124 WORD AskChoiceCentered(char *title, char *strg, char *gadgets, UWORD sel);
126 BOOL CopyContent(APTR p, char *s, char *d, BOOL makeparentdir, ULONG flags, struct Hook *displayHook, struct Hook *delHook, APTR userdata);
128 #endif /* WANDERER_FILESYSTEMS_H */