]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/helper-server.h
mDNSResponder-161.1.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / helper-server.h
1 /* -*- Mode: C; tab-width: 4 -*-
2 *
3 * Copyright (c) 2007 Apple Inc. All rights reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16
17 Change History (most recent first):
18
19 $Log: helper-server.h,v $
20 Revision 1.3 2007/09/07 22:44:03 mcguire
21 <rdar://problem/5448420> Move CFUserNotification code to mDNSResponderHelper
22
23 Revision 1.2 2007/08/23 21:39:01 cheshire
24 Made code layout style consistent with existing project style; added $Log header
25
26 Revision 1.1 2007/08/08 22:34:58 mcguire
27 <rdar://problem/5197869> Security: Run mDNSResponder as user id mdnsresponder instead of root
28 */
29
30 #ifndef H_HELPER_SERVER_H
31 #define H_HELPER_SERVER_H
32
33 extern void helplog(int, const char *, ...);
34 extern void pause_idle_timer(void);
35 extern void unpause_idle_timer(void);
36 extern void update_idle_timer(void);
37 extern uid_t mDNSResponderUID;
38 extern uid_t mDNSResponderGID;
39 extern CFRunLoopRef gRunLoop;
40 #define debug(...) debug_(__func__, __VA_ARGS__)
41 extern void debug_(const char *func, const char *fmt, ...);
42
43 #endif /* H_HELPER_SERVER_H */