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:
Ithamar R. Adema
2008-02-08 00:34:53 +00:00
parent cfc9593fa8
commit 62cb58a8ef
8 changed files with 384 additions and 1 deletions
@@ -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