Renaming TransportAddOn.[cpp|h] into PrintTransportAddOn.[cpp|h], as "Transport"
is not enough explicit. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3771 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -11,9 +11,9 @@ StaticLibrary
|
|||||||
;
|
;
|
||||||
|
|
||||||
StaticLibrary
|
StaticLibrary
|
||||||
transportaddon
|
printtransportaddon
|
||||||
:
|
:
|
||||||
TransportAddOn.cpp
|
PrintTransportAddOn.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
#include "TransportAddOn.h"
|
|
||||||
|
|
||||||
static BDataIO* gTransport = NULL;
|
|
||||||
|
|
||||||
extern "C" _EXPORT BDataIO *init_transport(BMessage *msg) {
|
|
||||||
if (msg != NULL && gTransport == NULL) {
|
|
||||||
const char* printer_name = msg->FindString("printer_name");
|
|
||||||
if (printer_name && *printer_name != '\0') {
|
|
||||||
BDirectory printer(printer_name);
|
|
||||||
if (printer.InitCheck() == B_OK) {
|
|
||||||
gTransport = instanciate_transport(&printer, msg);
|
|
||||||
return gTransport;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
extern "C" _EXPORT void exit_transport() {
|
|
||||||
if (gTransport) {
|
|
||||||
delete gTransport; gTransport = NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -9,6 +9,6 @@ Addon Parallel\ Port
|
|||||||
: print_transport.cpp
|
: print_transport.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
LinkSharedOSLibs Parallel\ Port : be libtransportaddon.a
|
LinkSharedOSLibs Parallel\ Port : be libprinttransportaddon.a
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ Addon Serial\ Port
|
|||||||
: print_transport.cpp
|
: print_transport.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
LinkSharedOSLibs Serial\ Port : be libtransportaddon.a
|
LinkSharedOSLibs Serial\ Port : be libprinttransportaddon.a
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ Addon USB\ Port : print transport :
|
|||||||
print_transport.cpp
|
print_transport.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
LinkSharedOSLibs USB\ Port : be libtransportaddon.a ;
|
LinkSharedOSLibs USB\ Port : be libprinttransportaddon.a ;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user