Add some experimental media add-on instantiating support, more debugging and bugfixes

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@744 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2002-08-13 15:21:32 +00:00
parent 9270876b99
commit 16b7eea41a
5 changed files with 33 additions and 7 deletions
+7 -1
View File
@@ -17,6 +17,8 @@
#include "ServerInterface.h"
#include "DormantNodeManager.h"
#define USER_ADDON_PATH "/boot/home/Develop/OpenBeOS/current/distro/x86.R1/beos/system/add-ons/media"
void DumpFlavorInfo(const flavor_info *info);
class MediaAddonServer : BApplication
@@ -125,7 +127,11 @@ MediaAddonServer::ReadyToRun()
DirNodeSystem = nref.node;
WatchDir(&e);
#ifdef USER_ADDON_PATH
BEntry e2(USER_ADDON_PATH);
#else
BEntry e2("/boot/home/config/add-ons/media");
#endif
e2.GetNodeRef(&nref);
DirNodeUser = nref.node;
WatchDir(&e2);
@@ -216,7 +222,7 @@ MediaAddonServer::AddOnAdded(const char *path, ino_t file_node)
addon = _DormantNodeManager->GetAddon(id);
if (addon == NULL) {
printf("failed to get add-on\n");
printf("MediaAddonServer::AddOnAdded: failed to get add-on\n");
_DormantNodeManager->UnregisterAddon(id);
return;
}