Make print_server track Transport addons too. This is because some of the NewTransportAddOns(tm) can also autodetect devices, e.g. USB printers. For this, the print_server needs to keep those transport addons loaded at all times. This code now also enables dynamic Transport discovery for the Printer prefs, e.g. 'hey print_server GET Transport 0' or 'hey print_server GET Transport 'USB Port'' will now work too ;)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23927 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -35,8 +35,18 @@ THE SOFTWARE.
|
||||
#include <Directory.h>
|
||||
#include <Message.h>
|
||||
|
||||
// int transport_features; symbol name
|
||||
#define B_TRANSPORT_FEATURES_SYMBOL "transport_features"
|
||||
|
||||
// Bit values for 'transport_features'
|
||||
enum {
|
||||
B_TRANSPORT_SUPPORTS_PROBE = 1,
|
||||
B_TRANSPORT_SUPPORTS_SHARING = 2,
|
||||
};
|
||||
|
||||
// to be implemented by the transport add-on
|
||||
extern "C" BDataIO* instantiate_transport(BDirectory* printer, BMessage* msg);
|
||||
extern "C" status_t install_transport_probe(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user