• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-- PlatformRemoteAppleTV.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 #ifndef LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLETV_H
10 #define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLETV_H
11 
12 #include <string>
13 
14 #include "lldb/Utility/FileSpec.h"
15 
16 #include "llvm/Support/FileSystem.h"
17 
18 #include "PlatformRemoteDarwinDevice.h"
19 
20 class PlatformRemoteAppleTV : public PlatformRemoteDarwinDevice {
21 public:
22   PlatformRemoteAppleTV();
23 
24   // Class Functions
25   static lldb::PlatformSP CreateInstance(bool force,
26                                          const lldb_private::ArchSpec *arch);
27 
28   static void Initialize();
29 
30   static void Terminate();
31 
32   static lldb_private::ConstString GetPluginNameStatic();
33 
34   static const char *GetDescriptionStatic();
35 
36   // lldb_private::PluginInterface functions
GetPluginName()37   lldb_private::ConstString GetPluginName() override {
38     return GetPluginNameStatic();
39   }
40 
GetPluginVersion()41   uint32_t GetPluginVersion() override { return 1; }
42 
43   // lldb_private::Platform functions
44 
GetDescription()45   const char *GetDescription() override { return GetDescriptionStatic(); }
46 
47   bool GetSupportedArchitectureAtIndex(uint32_t idx,
48                                        lldb_private::ArchSpec &arch) override;
49 
50 protected:
51   llvm::StringRef GetDeviceSupportDirectoryName() override;
52   llvm::StringRef GetPlatformName() override;
53 };
54 
55 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMREMOTEAPPLETV_H
56