vfs: check userland buffers before reading them.
[haiku.git] / headers / private / print / PrintAddOnServerProtocol.h
bloba957093f38cbda8c2a5e8ca6a0d839f1e6b65ac5
1 /*
2 * Copyright 2010 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Pfeiffer
7 */
8 #ifndef PRINT_ADD_ON_SERVER_PROTOCOL_H
9 #define PRINT_ADD_ON_SERVER_PROTOCOL_H
11 extern const char* kPrintAddOnServerApplicationSignature;
13 extern const char* kPrintAddOnServerStatusAttribute;
14 extern const char* kPrinterDriverAttribute;
15 extern const char* kPrinterNameAttribute;
16 extern const char* kPrinterFolderAttribute;
17 extern const char* kPrintJobFileAttribute;
18 extern const char* kPrintSettingsAttribute;
20 enum {
21 // message constants for the five corresponding
22 // printer driver add-on hook functions
23 kMessageAddPrinter = 'PSad',
24 // Request:
25 // BString kPrinterDriverAttribute
26 // BString kPrinterNameAttribute
27 // Reply:
28 // int32 kPrintAddOnServerStatusAttribute
30 kMessageConfigPage = 'PScp',
31 // Request:
32 // BString kPrinterDriverAttribute
33 // BString kPrinterFolderAttribute
34 // BMessage kPrintSettingsAttribute
35 // Reply:
36 // int32 kPrintAddOnServerStatusAttribute
37 // BMessage kPrintSettingsAttribute (if status is B_OK)
39 kMessageConfigJob = 'PScj',
40 // Request:
41 // BString kPrinterDriverAttribute
42 // BString kPrinterFolderAttribute
43 // BMessage kPrintSettingsAttribute
44 // Reply:
45 // int32 kPrintAddOnServerStatusAttribute
46 // BMessage kPrintSettingsAttribute (if status is B_OK)
48 kMessageDefaultSettings = 'PSds',
49 // Request:
50 // BString kPrinterDriverAttribute
51 // BString kPrinterFolderAttribute
52 // Reply:
53 // int32 kPrintAddOnServerStatusAttribute
54 // BMessage kPrintSettingsAttribute (if status is B_OK)
56 kMessageTakeJob = 'PStj',
57 // Request:
58 // BString kPrinterDriverAttribute
59 // BString kPrintJobFileAttribute
60 // BString kPrinterFolderAttribute
61 // Reply:
62 // int32 kPrintAddOnServerStatusAttribute
65 #endif