cdf/Innie

Compilation error

startergo opened this issue · 2 comments

@cdf I tried to fix the path to the new SDK, but this error is still present and the compilation fails:

//
//  kern_innie.hpp
//  Innie
//
//  Copyright © 2020 cdf. All rights reserved.
//

#ifndef kern_innie_hpp
#define kern_innie_hpp

#include <Library/LegacyIOService.h>.                         _### **'Library/LegacyIOService.h' file not found**_
#include <IOKit/IODeviceTreeSupport.h>

class INNIE {
public:
    void init();
    void deinit();
    
private:
    void internalizeDevices();
    void updateIcon(IORegistryEntry *propEntry);
    void updateInterconnect(IORegistryEntry *propEntry);
    void updateProtocolCharacteristics(IORegistryEntry *propEntry);
    
    struct ClassCode {
        enum : uint32_t {
            SATADevice     = 0x010601,
            NVMeDevice     = 0x010802,
        };
    };

};

#endif /* kern_innie */
cdf commented

Try replacing <Library/LegacyIOService.h> by <IOKit/IOService.h>.

Works. Requested pull.