]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/source/Plugins/Process/Darwin/CFBundle.h
Fix a memory leak in if_delgroups() introduced in r334118.
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / source / Plugins / Process / Darwin / CFBundle.h
1 //===-- CFBundle.h ----------------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 //  Created by Greg Clayton on 1/16/08.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #ifndef __CFBundle_h__
14 #define __CFBundle_h__
15
16 #include "CFUtils.h"
17
18 class CFBundle : public CFReleaser<CFBundleRef> {
19 public:
20   // Constructors and Destructors
21   CFBundle(const char *path = NULL);
22   CFBundle(const CFBundle &rhs);
23   CFBundle &operator=(const CFBundle &rhs);
24   virtual ~CFBundle();
25   bool SetPath(const char *path);
26
27   CFStringRef GetIdentifier() const;
28
29   CFURLRef CopyExecutableURL() const;
30
31 protected:
32   CFReleaser<CFURLRef> m_bundle_url;
33 };
34
35 #endif // #ifndef __CFBundle_h__