-
Notifications
You must be signed in to change notification settings - Fork 183
/
TodayScripts.h
29 lines (21 loc) · 886 Bytes
/
TodayScripts.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// TodayScripts.m
// Today Scripts
//
// Created by Sam Rothenberg on 8/10/14.
// Copyright (c) 2014 Sam Rothenberg. All rights reserved.
//
#import <Foundation/Foundation.h>
extern const NSString *TodayScriptLabelKey;
extern const NSString *TodayScriptProgramKey;
extern const NSString *TodayScriptScriptKey;
extern const NSString *TodayScriptAutoRunKey;
extern const NSString *TodayScriptShowStatusKey;
// The protocol that this service will vend as its API. This header file will
// also need to be visible to the process hosting the service. Replace the API
// of this protocol with an API appropriate to the service you are vending.
typedef void (^ XPCHandler )(int status, NSString *output);
@protocol XPCHelping
- (void)launchScript:(NSDictionary *)script forUUID:(NSString *)UUID handler:(XPCHandler)handler;
- (void)terminateScriptForUUID:(NSString *)UUID;
@end