opuntiaOS - an operating system targeting x86 and ARMv7
1# Copyright (C) 2020-2022 The opuntiaOS Project Authors. 2# + Contributed by Nikita Melekhin <nimelehin@gmail.com> 3# 4# Use of this source code is governed by a BSD-style license that can be 5# found in the LICENSE file. 6 7class IRManager(): 8 def __init__(self, parser): 9 self.parser = parser 10 11 def platform_name(self): 12 return self.parser.data()["name"] 13 14 def device_count(self): 15 return len(self.parser.data()["devices"]) 16 17 def device_list(self): 18 return self.parser.data()["devices"]