mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
33 lines
1.3 KiB
C
33 lines
1.3 KiB
C
//
|
|
// bridge.h
|
|
// Stats
|
|
//
|
|
// Created by Serhiy Mytrovtsiy on 17/12/2024
|
|
// Using Swift 6.0
|
|
// Running on macOS 15.1
|
|
//
|
|
// Copyright © 2024 Serhiy Mytrovtsiy. All rights reserved.
|
|
//
|
|
|
|
#ifndef bridge_h
|
|
#define bridge_h
|
|
|
|
#include <CoreFoundation/CoreFoundation.h>
|
|
|
|
typedef struct IOReportSubscriptionRef* IOReportSubscriptionRef;
|
|
|
|
CFDictionaryRef IOReportCopyChannelsInGroup(CFStringRef a, CFStringRef b, uint64_t c, uint64_t d, uint64_t e);
|
|
void IOReportMergeChannels(CFDictionaryRef a, CFDictionaryRef b, CFTypeRef null);
|
|
IOReportSubscriptionRef IOReportCreateSubscription(void* a, CFMutableDictionaryRef b, CFMutableDictionaryRef* c, uint64_t d, CFTypeRef e);
|
|
CFDictionaryRef IOReportCreateSamples(IOReportSubscriptionRef a, CFMutableDictionaryRef b, CFTypeRef c);
|
|
CFDictionaryRef IOReportCreateSamplesDelta(CFDictionaryRef a, CFDictionaryRef b, CFTypeRef c);
|
|
CFStringRef IOReportChannelGetGroup(CFDictionaryRef a);
|
|
CFStringRef IOReportChannelGetSubGroup(CFDictionaryRef a);
|
|
CFStringRef IOReportChannelGetChannelName(CFDictionaryRef a);
|
|
CFStringRef IOReportChannelGetUnitLabel(CFDictionaryRef a);
|
|
int32_t IOReportStateGetCount(CFDictionaryRef a);
|
|
CFStringRef IOReportStateGetNameForIndex(CFDictionaryRef a, int32_t b);
|
|
int64_t IOReportStateGetResidency(CFDictionaryRef a, int32_t b);
|
|
|
|
#endif /* bridge_h */
|