]> git.saurik.com Git - apple/libc.git/blobdiff - gen/NSSystemDirectories.c
Libc-498.tar.gz
[apple/libc.git] / gen / NSSystemDirectories.c
index d8935a6d33b7b2b7f5f2850325a159fef01f54e4..31ab4090b7a7a985e75365d9c1aacd3ddad051cf 100644 (file)
@@ -3,8 +3,6 @@
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
- * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
 #import <NSSystemDirectories.h>
 
 // Names of directories; index into this with NSSearchPathDirectory - 1
-#define numDirs 10
+#define numDirs 15
 static const struct {
     unsigned char invalidDomainMask;   // Domains in which this dir does not appear
     unsigned char alternateDomainMask; // Domains in which this dir uses the alternate domain path
     const char *dirPath;
 } dirInfo[numDirs] = {
     {0,   0,   "Applications"},
-    {0,   0,   "Applications/GrabBag"},
+    {0,   0,   "Applications/Demos"},
     {0,   0,   "Developer/Applications"},
     {0,   0,   "Applications/Utilities"},
-    {0,   0x8, "Library"},                     // Uses alternate form in System domain
+    {0,   0x8, "Library"},                     // Uses alternate form in System domain
     {0,   0,   "Developer"},
-    {0x9, 0,   "Users"},                       // Not valid in the System and User domains
-    {0,   0x8, "Library/Documentation"},       // Uses alternate form in System domain
-    {0xe, 0,   "Documents"},                   // Only valid in user domain
-    {0x7, 0,   "Library/CoreServices"}         // Only valid in System domain
+    {0x9, 0,   "Users"},                       // Not valid in the System and User domains
+    {0,   0x8, "Library/Documentation"},       // Uses alternate form in System domain
+    {0xe, 0,   "Documents"},                   // Only valid in user domain
+    {0x7, 0,   "Library/CoreServices"},        // Only valid in System domain
+    {0xe, 0,   "Documents/Autosaved"},         // Only valid in user domain; not public API yet
+    {0xe, 0,   "Desktop"},                     // Only valid in user domain
+    {0,   0,   "Library/Caches"},                      
+    {0,   0,   "Library/Application Support"},
+    {0xe, 0,   "Downloads"},                   // Only valid in user domain
+};
+
+// Unpublicized values for NSSearchPathDirectory
+enum {
+    NSAutosavedDocumentsDirectory = 11
 };
 
 // Ordered list of where to find applications in each domain (the numbers are NSSearchPathDirectory)