New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / workbench / libs / desktop / worker.h
blob225c7554d6e23453d1699d0e817e8d924958a332
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef WORKER_H
7 #define WORKER_H
9 #include <dos/dos.h>
11 #define WM_START 1
12 #define WM_STOP 2
13 #define WM_RESUME 3
15 #define WA_SCANNER 1
17 #define SCAN_BUFFER 400
19 struct WorkerContext
21 ULONG workerAction;
22 APTR(*start) (struct WorkerContext * con);
23 APTR(*resume) (struct WorkerContext * con);
24 APTR(*stop) (struct WorkerContext * con);
27 struct ScannerWorkerContext
29 struct WorkerContext swc_Context;
30 struct ExAllControl *swc_EAC;
31 BPTR swc_DirLock;
32 UBYTE *swc_DirName;
33 BOOL swc_More;
34 STRPTR swc_Buffer;
35 struct WorkerMessage *swc_CurrentRequest;
38 struct WorkerMessage
40 struct Message w_Message;
41 ULONG w_Command;
42 ULONG w_Action;
43 ULONG w_ID;
46 struct SingleResult
48 UBYTE *sr_Name;
49 struct DiskObject *sr_DiskObject;
50 UBYTE *sr_Comment;
51 BOOL sr_Script,
52 sr_Pure,
53 sr_Archive,
54 sr_Read,
55 sr_Write,
56 sr_Execute,
57 sr_Delete;
58 ULONG sr_Size;
59 struct DateStamp sr_LastModified;
60 LONG sr_Type;
63 struct WorkerScanRequest
66 The requester must complete this part of the message
68 struct WorkerMessage wsr_WMessage;
69 BPTR wsr_DirLock;
71 This part is filled in by the worker
73 BOOL wsr_More;
74 ULONG wsr_Results;
75 struct SingleResult *wsr_ResultsArray;
76 STRPTR wsr_ExAllBuffer;
79 #endif /* WORKER_H */