27 lines
687 B
Objective-C
27 lines
687 B
Objective-C
#ifndef MMStorageTelemetryProvider_h
|
|
#define MMStorageTelemetryProvider_h
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <sys/mount.h>
|
|
#import "MMTelemetryProvider.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
* MMStorageTelemetryProvider
|
|
* Samples mounted disk volumes, APFS containers, used/free storage capacity,
|
|
* and mount filesystem attributes.
|
|
*/
|
|
@interface MMStorageTelemetryProvider : NSObject <MMTelemetryProvider>
|
|
|
|
/**
|
|
* Static parser method for converting statfs structures into volume dictionaries.
|
|
*/
|
|
+ (NSArray<NSDictionary<NSString *, id> *> *)parseStatFSBuffer:(const struct statfs *)buffer count:(int)count;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
#endif /* MMStorageTelemetryProvider_h */
|