Libinfo-222.0.4.tar.gz
[apple/libinfo.git] / membership.subproj / memberd_defines.h
1 /*
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22
23 #ifndef USER_API_DEFINES
24 #define USER_API_DEFINES
25 #import <sys/types.h>
26 #import <sys/kauth.h>
27
28 typedef struct kauth_identity_extlookup kauth_identity_extlookup;
29 typedef char* string;
30
31 typedef struct StatBlock
32 {
33 uint32_t fTotalUpTime;
34 uint32_t fTotalCallsHandled;
35 uint32_t fAverageuSecPerCall;
36 uint32_t fCacheHits;
37 uint32_t fCacheMisses;
38 uint32_t fTotalRecordLookups;
39 uint32_t fNumFailedRecordLookups;
40 uint32_t fAverageuSecPerRecordLookup;
41 uint32_t fTotalMembershipSearches;
42 uint32_t fAverageuSecPerMembershipSearch;
43 uint32_t fTotalLegacySearches;
44 uint32_t fAverageuSecPerLegacySearch;
45 uint32_t fTotalGUIDMemberSearches;
46 uint32_t fAverageuSecPerGUIDMemberSearch;
47 uint32_t fTotalNestedMemberSearches;
48 uint32_t fAverageuSecPerNestedMemberSearch;
49 } StatBlock;
50
51 typedef uint32_t GIDArray[16];
52
53 #endif