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