Moved the miscellaneous app kit functions into the BPrivate namespace and added the function current_team() which returns the ID of the current team.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1501 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2002-10-12 22:40:21 +00:00
parent cd1a0ce832
commit 121f83dd58
3 changed files with 25 additions and 2 deletions
+2 -2
View File
@@ -613,11 +613,11 @@ void BApplication::InitData(const char* signature, status_t* error)
bool isRegistrar = (signature && !strcmp(signature, kRegistrarSignature));
// get team and thread
team_id team = Team();
thread_id thread = main_thread_for(team);
thread_id thread = BPrivate::main_thread_for(team);
// get app executable ref
entry_ref ref;
if (fInitError == B_OK)
fInitError = get_app_ref(&ref);
fInitError = BPrivate::get_app_ref(&ref);
// get the BAppFileInfo and extract the information we need
uint32 appFlags = B_REG_DEFAULT_APP_FLAGS;
if (fInitError == B_OK) {