btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / print / PrintTransportAddOn.h
blobed1616ef49bfd01e11ce6712370bf0cda5d1dcdf
1 /*
3 PrintTransportAddOn
5 Copyright (c) 2003, 04 OpenBeOS.
7 Author:
8 Michael Pfeiffer
10 Permission is hereby granted, free of charge, to any person obtaining a copy of
11 this software and associated documentation files (the "Software"), to deal in
12 the Software without restriction, including without limitation the rights to
13 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
14 of the Software, and to permit persons to whom the Software is furnished to do
15 so, subject to the following conditions:
17 The above copyright notice and this permission notice shall be included in all
18 copies or substantial portions of the Software.
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26 THE SOFTWARE.
30 #ifndef _PRINT_TRANSPORT_ADD_ON_H
31 #define _PRINT_TRANSPORT_ADD_ON_H
33 #include <image.h>
34 #include <DataIO.h>
35 #include <Directory.h>
36 #include <Message.h>
38 #define B_TRANSPORT_LIST_PORTS_SYMBOL "list_transport_ports"
39 #define B_TRANSPORT_FEATURES_SYMBOL "transport_features"
41 // Bit values for 'transport_features'
42 enum {
43 B_TRANSPORT_IS_HOTPLUG = 1,
44 B_TRANSPORT_IS_NETWORK = 2,
47 // to be implemented by the transport add-on
48 extern "C" BDataIO* instantiate_transport(BDirectory* printer, BMessage* msg);
49 extern "C" status_t list_transport_ports(BMessage* msg);
51 #endif