haiku/headers/build/private/app/AppMisc.h
CodeforEvolution 2846db2e99 Implement is_app_showing_modal_window()
Also do some cleanup in private headers, I can't imagine why the build
libraries would need this function.

Change-Id: Ib08810b6efe4738dad596a735d741582a3781b28
Reviewed-on: https://review.haiku-os.org/c/1670
Reviewed-by: Ryan Leavengood <leavengood@gmail.com>
2019-08-03 00:41:10 +00:00

44 lines
897 B
C++

/*
* Copyright 2001-2019 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Ingo Weinhold, bonefish@users.sf.net
* Jacob Secunda
*/
#ifndef _APP_MISC_H
#define _APP_MISC_H
#include <Handler.h>
#include <OS.h>
#include <SupportDefs.h>
struct entry_ref;
namespace BPrivate {
status_t get_app_path(team_id team, char *buffer);
status_t get_app_path(char *buffer);
status_t get_app_ref(team_id team, entry_ref *ref, bool traverse = true);
status_t get_app_ref(entry_ref *ref, bool traverse = true);
team_id current_team();
thread_id main_thread_for(team_id team);
bool is_running_on_haiku();
} // namespace BPrivate
// _get_object_token_
/*! Return the token of a BHandler.
\param handler The BHandler.
\return the token.
*/
inline int32 _get_object_token_(const BHandler* object)
{ return object->fToken; }
#endif // _APP_MISC_H