]>
git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/SCDynamicStoreSetSpecificPrivate.h
ab325a291519df68536fc35b3e75ca72eda72b73
2 * Copyright (c) 2001-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@
26 #ifndef _SCDYNAMICSTORESETSPECIFICPRIVATE_H
27 #define _SCDYNAMICSTORESETSPECIFICPRIVATE_H
29 #include <sys/cdefs.h>
30 #include <SystemConfiguration/SCDynamicStore.h>
36 @function SCDynamicStoreSetConsoleInformation
37 @discussion Returns information about all console users on the system.
38 @param store An SCDynamicStoreRef that should be used for communication
40 If NULL, a temporary session will be used.
41 @param user A pointer to a character buffer containing the name of
42 the current/primary "Console" session. If NULL, any current
43 "Console" session information will be reset.
44 @param uid The user ID of the current/primary "Console" user.
45 @param gid The group ID of the current/primary "Console" user.
46 @param sessions An array of dictionaries containing information about
47 each console session on the system; NULL if no sessions are
50 The contents of this array should match that of the CoreGraphics
51 CGSCopySessionList() SPI.
53 @result A boolean indicating the success (or failure) of the call.
56 SCDynamicStoreSetConsoleInformation (
57 SCDynamicStoreRef store
,
65 @function SCDynamicStoreSetConsoleUser
66 @discussion Sets the name, user ID, and group ID of the currently
68 @param store An SCDynamicStoreRef that should be used for communication
70 If NULL, a temporary session will be used.
71 @param user A pointer to a character buffer containing the name of
72 the current "Console" user. If NULL, any current "Console"
73 user information will be reset.
74 @param uid The user ID of the current "Console" user.
75 @param gid The group ID of the current "Console" user.
76 @result A boolean indicating the success (or failure) of the call.
79 SCDynamicStoreSetConsoleUser (
80 SCDynamicStoreRef store
,
88 #endif /* _SCDYNAMICSTORESETSPECIFICPRIVATE_H */