]> git.saurik.com Git - apple/shell_cmds.git/blame - id/open_directory.h
shell_cmds-207.11.1.tar.gz
[apple/shell_cmds.git] / id / open_directory.h
CommitLineData
41a2c555
A
1#include <OpenDirectory/OpenDirectory.h>
2
3ODNodeRef CreateNode(void);
4
5ODRecordRef CopyGroupRecordWithGID(ODNodeRef, gid_t);
6
7ODRecordRef CopyUserRecordWithUID(ODNodeRef, uid_t);
8ODRecordRef CopyUserRecordWithUsername(ODNodeRef, char *);
9
10CFArrayRef CopyGroupRecordsForUser(ODNodeRef, ODRecordRef, CFIndex);
11
12CFStringRef CopyAttrFromRecord(ODRecordRef record, CFStringRef attribute);
13int GetIntAttrFromRecord(ODRecordRef record, CFStringRef attribute, int *output);
14uid_t GetUIDFromRecord(ODRecordRef);
15gid_t GetGIDFromRecord(ODRecordRef);
16
17int cfprintf(FILE *file, const char *format, ...);
18int cprintf(const char *format, ...);