37 lines
881 B
Objective-C
37 lines
881 B
Objective-C
//
|
|
// HSStreamDeckManager.h
|
|
// Hammerspoon
|
|
//
|
|
// Created by Chris Jones on 06/09/2017.
|
|
// Copyright © 2017 Hammerspoon. All rights reserved.
|
|
//
|
|
|
|
@import Foundation;
|
|
@import IOKit;
|
|
@import IOKit.hid;
|
|
|
|
@import LuaSkin;
|
|
|
|
#import "HSStreamDeckDevice.h"
|
|
#import "HSStreamDeckDeviceOriginal.h"
|
|
#import "HSStreamDeckDeviceOriginalV2.h"
|
|
#import "HSStreamDeckDeviceMini.h"
|
|
#import "HSStreamDeckDeviceXL.h"
|
|
#import "HSStreamDeckDeviceMk2.h"
|
|
#import "streamdeck.h"
|
|
|
|
@interface HSStreamDeckManager : NSObject
|
|
@property (nonatomic, strong) id ioHIDManager;
|
|
@property (nonatomic, strong) NSMutableArray *devices;
|
|
@property (nonatomic) int discoveryCallbackRef;
|
|
@property LSGCCanary lsCanary;
|
|
|
|
- (id)init;
|
|
- (void)doGC;
|
|
- (BOOL)startHIDManager;
|
|
- (BOOL)stopHIDManager;
|
|
- (HSStreamDeckDevice*)deviceDidConnect:(IOHIDDeviceRef)device;
|
|
- (void)deviceDidDisconnect:(IOHIDDeviceRef)device;
|
|
|
|
@end
|