2 * Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
27 Contains: Interfaces necessary to talk to uds_daemon.c.
31 Change History (most recent first):
33 $Log: uds_daemon.h,v $
34 Revision 1.3 2004/01/25 00:03:21 cheshire
35 Change to use mDNSVal16() instead of private PORT_AS_NUM() macro
37 Revision 1.2 2004/01/24 08:46:26 bradley
38 Added InterfaceID<->Index platform interfaces since they are now used by all platforms for the DNS-SD APIs.
40 Revision 1.1 2003/12/08 21:11:42 rpantos;
41 Changes necessary to support mDNSResponder on Linux.
45 #include "mDNSClientAPI.h"
48 /* Client interface: */
50 #define SRS_PORT(S) mDNSVal16((S)->RR_SRV.resrec.rdata->u.srv.port)
52 extern int udsserver_init( mDNS
*globalInstance
);
54 // takes the next scheduled event time, does idle work, and returns the updated nextevent time
55 extern mDNSs32
udsserver_idle(mDNSs32 nextevent
);
57 extern void udsserver_info(void); // print out info about current state
59 extern void udsserver_handle_configchange(void);
61 extern int udsserver_exit(void); // should be called prior to app exit
64 /* Routines that uds_daemon expects to link against: */
66 typedef void (*udsEventCallback
)(void *context
);
68 extern mStatus
udsSupportAddFDToEventLoop( int fd
, udsEventCallback callback
, void *context
);
69 extern mStatus
udsSupportRemoveFDFromEventLoop( int fd
);