1 //===-- CFBundle.h ----------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Created by Greg Clayton on 1/16/08.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_CFBUNDLE_H
14 #define LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_CFBUNDLE_H
18 class CFBundle
: public CFReleaser
<CFBundleRef
> {
20 // Constructors and Destructors
21 CFBundle(const char *path
= NULL
);
22 CFBundle(const CFBundle
&rhs
);
23 CFBundle
&operator=(const CFBundle
&rhs
);
25 bool SetPath(const char *path
);
27 CFStringRef
GetIdentifier() const;
29 CFURLRef
CopyExecutableURL() const;
32 CFReleaser
<CFURLRef
> m_bundle_url
;
35 #endif // LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_CFBUNDLE_H