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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user