BMessage passed to add-on's init_transport() should be set to 'okok' on success.

2 years before I think about inspecting the BMessage returned by Be's transport add-ons :-(


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7652 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2004-05-26 15:00:37 +00:00
parent 9dad5a5bec
commit 4c87a6fe46
@@ -64,13 +64,20 @@ extern "C" _EXPORT BDataIO * init_transport
return NULL;
file = new BFile(&ref, B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE);
if ( file->InitCheck() != B_OK )
{
if ( file->InitCheck() != B_OK ) {
msg->what = 'canc'; // Indicates user cancel the panel...
delete file;
return NULL;
};
};
AddFile(file);
BPath path;
path.SetTo(&ref);
// Print transport add-ons should set to 'okok' the message on success
msg->what = 'okok';
msg->AddString("path", path.Path()); // Add path of new choosen file to transport message
return file;
}