added more debug information

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2218 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2002-12-10 18:18:50 +00:00
parent a3d1f07f83
commit ced4130fee
11 changed files with 159 additions and 27 deletions
+23
View File
@@ -4,6 +4,7 @@
#include <MediaDefs.h>
#include <MediaFormats.h>
#include <Autolock.h>
#include <string.h>
#include "NotificationManager.h"
#include "ServerInterface.h"
#include "DataExchange.h"
@@ -46,6 +47,7 @@ public:
bool QuitRequested();
void HandleMessage(int32 code, void *data, size_t size);
void ArgvReceived(int32 argc, char **argv);
static int32 controlthread(void *arg);
/* functionality not yet implemented
@@ -112,6 +114,27 @@ ServerApp::~ServerApp()
wait_for_thread(control_thread,&err);
}
void ServerApp::ArgvReceived(int32 argc, char **argv)
{
for (int arg = 1; arg < argc; arg++) {
if (strstr(argv[arg], "dump")) {
gAppManager->Dump();
gNodeManager->Dump();
gBufferManager->Dump();
gNotificationManager->Dump();
}
if (strstr(argv[arg], "buffer")) {
gBufferManager->Dump();
}
if (strstr(argv[arg], "node")) {
gNodeManager->Dump();
}
if (strstr(argv[arg], "quit")) {
PostMessage(B_QUIT_REQUESTED);
}
}
}
bool
ServerApp::QuitRequested()
{