AmendHub

Download

thecloud

/

SimpleSpooler

/

SpoolFiles.h

 

(View History)

thecloud   Simple Spooler 0.1 release Latest amendment: 1 on 2026-07-29

1 /*
2 * SpoolFiles.h
3 * C interface to routines for handling spool files and folders.
4 *
5 * Written by: Ken McLeod, 2026-01-14
6 * Last update: 2026-01-28
7 *
8 * This software is provided as-is, with no warranties expressed or implied,
9 * under the terms of the BSD 2-Clause License. See separate "LICENSE" file.
10 */
11
12 #ifndef __SPOOL_FILES__
13 #define __SPOOL_FILES__
14
15 #include <Types.h>
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 OSErr InitSpoolFolder(void);
22 OSErr GetSpoolFolder(short *vRefNum, long *dirID);
23 OSErr OpenSpoolFile(int printerType);
24 OSErr WriteDataToSpoolFile(long count, void *data);
25 OSErr CloseSpoolFile(long int numBytesWritten);
26 OSErr SaveDataToPrefsFile(long count, void *data);
27 OSErr CopyDataFromPrefsFile(long *count, void **data); /* caller must dispose data */
28
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif /* __SPOOL_FILES__ */