1 #include "PrintTransportAddOn.h"
3 // We don't support multiple instances of the same transport add-on
4 static BDataIO
* gTransport
= NULL
;
6 extern "C" _EXPORT BDataIO
*init_transport(BMessage
*msg
)
8 if (msg
== NULL
|| gTransport
!= NULL
)
11 const char *spool_path
= msg
->FindString("printer_file");
13 if (spool_path
&& *spool_path
!= '\0') {
14 BDirectory
printer(spool_path
);
16 if (printer
.InitCheck() == B_OK
) {
17 gTransport
= instantiate_transport(&printer
, msg
);
25 extern "C" _EXPORT
void exit_transport()