Loading mtp/mtp_MtpServer.cpp +8 −5 Original line number Diff line number Diff line Loading @@ -35,16 +35,17 @@ void twmtp_MtpServer::start() { setup(); if (setup() == 0) { add_storage(); server->run(); } } void twmtp_MtpServer::set_storages(storages* mtpstorages) { stores = mtpstorages; } void twmtp_MtpServer::setup() int twmtp_MtpServer::setup() { #define USB_MTP_DEVICE "/dev/mtp_usb" usePtp = false; Loading @@ -60,8 +61,10 @@ void twmtp_MtpServer::setup() refserver = server; MTPI("created new mtpserver object\n"); } else { MTPE("could not open MTP driver, errno: %d", errno); MTPE("could not open MTP driver, errno: %d\n", errno); return -1; } return 0; } void twmtp_MtpServer::run() Loading mtp/mtp_MtpServer.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ typedef std::vector<storage*> storages; class twmtp_MtpServer { public: void start(); void setup(); int setup(); void run(); void cleanup(); void send_object_added(int handle); Loading Loading
mtp/mtp_MtpServer.cpp +8 −5 Original line number Diff line number Diff line Loading @@ -35,16 +35,17 @@ void twmtp_MtpServer::start() { setup(); if (setup() == 0) { add_storage(); server->run(); } } void twmtp_MtpServer::set_storages(storages* mtpstorages) { stores = mtpstorages; } void twmtp_MtpServer::setup() int twmtp_MtpServer::setup() { #define USB_MTP_DEVICE "/dev/mtp_usb" usePtp = false; Loading @@ -60,8 +61,10 @@ void twmtp_MtpServer::setup() refserver = server; MTPI("created new mtpserver object\n"); } else { MTPE("could not open MTP driver, errno: %d", errno); MTPE("could not open MTP driver, errno: %d\n", errno); return -1; } return 0; } void twmtp_MtpServer::run() Loading
mtp/mtp_MtpServer.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ typedef std::vector<storage*> storages; class twmtp_MtpServer { public: void start(); void setup(); int setup(); void run(); void cleanup(); void send_object_added(int handle); Loading