]> git.saurik.com Git - apple/configd.git/blob - configd.tproj/pattern.h
configd-84.tar.gz
[apple/configd.git] / configd.tproj / pattern.h
1 /*
2 * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
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
13 * file.
14 *
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.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25
26 /*
27 * Modification History
28 *
29 * April 23, 2003 Allan Nathanson <ajn@apple.com>
30 * - initial revision
31 */
32
33
34 #ifndef _S_PATTERN_H
35 #define _S_PATTERN_H
36
37 #include <sys/cdefs.h>
38
39 __BEGIN_DECLS
40
41 Boolean patternCompile (CFStringRef pattern,
42 regex_t *preg,
43 CFStringRef *error);
44
45 CFMutableArrayRef patternCopy (CFStringRef pattern);
46
47 CFMutableArrayRef patternNew (CFStringRef pattern);
48
49 Boolean patternAddSession (CFStringRef pattern,
50 CFNumberRef sessionNum);
51
52 void patternRemoveSession (CFStringRef pattern,
53 CFNumberRef sessionNum);
54
55 void patternAddKey (CFStringRef key);
56
57 void patternRemoveKey (CFStringRef key);
58
59 __END_DECLS
60
61 #endif /* !_S_PATTERN_H */