State.h revision 3182effd150f2e0381d7c6867236737ac69ad846
1//===-- State.h -------------------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10#ifndef liblldb_State_h_ 11#define liblldb_State_h_ 12 13// C Includes 14// C++ Includes 15// Other libraries and framework includes 16// Project includes 17#include "lldb/lldb-private.h" 18 19namespace lldb_private { 20 21//------------------------------------------------------------------ 22/// Converts a StateType to a C string. 23/// 24/// @param[in] state 25/// The StateType object to convert. 26/// 27/// @return 28/// A NULL terminated C string that describes \a state. The 29/// returned string comes from constant string buffers and does 30/// not need to be freed. 31//------------------------------------------------------------------ 32const char * 33StateAsCString (lldb::StateType state); 34 35bool 36StateIsRunningState (lldb::StateType state); 37 38bool 39StateIsStoppedState (lldb::StateType state); 40 41const char * 42GetPermissionsAsCString (uint32_t permissions); 43 44} // namespace lldb_private 45 46#endif // liblldb_State_h_ 47