-
Notifications
You must be signed in to change notification settings - Fork 1
/
DUProtocols.h
63 lines (42 loc) · 1.2 KB
/
DUProtocols.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* DUProtocols.h
* DNSUpdate2
*
* Created by jalon on Sun Apr 08 2001.
* Copyright (c) 2001-2003 Julien Jalon. All rights reserved.
*
*/
#import <Foundation/Foundation.h>
@class DUUser;
@class DUServiceUpdater;
@class DUHost;
@class DUInterface;
#define DNSUPDATE @"DNSUPDATE Connexion"
#define KEYFILE @"/var/run/DNSUpdate_key"
@class DUUser;
@class DUServiceUpdater;
@protocol DUProxy <NSObject>
- (NSDictionary *)users;
- (oneway void)saveUsers;
- (DUUser *)addUserWithName:(NSString *)theName andPassword:(NSString *)thePassword andService:(DUServiceUpdater *)theService;
- (DUHost *)newHostWithName:(NSString *)theName andInterface:(DUInterface *)interface forUser:(DUUser *)user;
- (oneway void)removeHost:(DUHost *)host;
- (NSDictionary *)interfaces;
- (BOOL)isPaused;
- (oneway void)pause;
- (oneway void)daemonStart;
- (oneway void)quitDaemon;
- (NSDictionary *)services;
- (BOOL)registerAsApplication:idObject;
- (int)startOption;
- (oneway void)setStartOption:(int)theOption;
@end
@protocol DUGuardian
- (id <DUProxy>)getProxyWithKey:(NSString *)theKey;
@end
@protocol DUIdentify
- (BOOL)isUser;
@end
@protocol DUDaemonDelegate
- (void)setConnection:(NSConnection *)theConnection;
@end