forked from SamRothCA/Today-Scripts
- Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathTodayScripts.h
More file actions
Latest commit
29 lines (21 loc) · 886 Bytes
/
Copy pathTodayScripts.h
File metadata and controls
29 lines (21 loc) · 886 Bytes
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>
externconstNSString *TodayScriptLabelKey;
externconstNSString *TodayScriptProgramKey;
externconstNSString *TodayScriptScriptKey;
externconstNSString *TodayScriptAutoRunKey;
externconstNSString *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.
typedefvoid (^ XPCHandler )(int status, NSString *output);
@protocolXPCHelping
- (void)launchScript:(NSDictionary *)scriptforUUID:(NSString *)UUIDhandler:(XPCHandler)handler;
- (void)terminateScriptForUUID:(NSString *)UUID;
@end