1/*
2 * Copyright (c) 1999-2004 Apple Computer, Inc.  All Rights Reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24#if !defined(__FILESYSTEM_PRIVATE__)
25#define __FILESYSTEM_PRIVATE__ 1
26
27#include <CoreFoundation/CFString.h>
28#include <CoreFoundation/CFURL.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif /* __cplusplus */
33
34/* Input:
35 * 	1. CFURLRef url: CFURLRef representation of current volume path
36 * Output:
37 * 	1. CFStringRef: Localized format name for given file system path
38 *
39 * This function returns the localized format name for given path in
40 * file system.
41 */
42extern CFStringRef _FSCopyLocalizedNameForVolumeFormatAtURL(CFURLRef url);
43
44/* Input:
45 * 	1. CFURLRef url: CFURLRef representation of current volume path
46 * Output:
47 * 	1. CFStringRef: English format name for given file system path
48 *
49 * This function returns the English format name for given path in
50 * file system.
51 */
52extern CFStringRef _FSCopyNameForVolumeFormatAtURL(CFURLRef url);
53
54/* Input:
55 * 	1. CFStringRef devnode: CFStringRef representation of /dev/diskXsXX
56 * Output:
57 * 	1. CFStringRef: Localized format name for given /dev/diskXsXX
58 * 		It returns "Unknown ( )" for the following conditions:
59 * 			1. If the devnode is mounted already.
60 *			2. If the file system is not HFS or MSDOS.
61 *
62 * This function returns the Localized format name for /dev/diskXsXX
63 */
64extern CFStringRef _FSCopyLocalizedNameForVolumeFormatAtNode(CFStringRef devnode);
65
66/* Input:
67 * 	1. CFStringRef devnode: CFStringRef representation of /dev/diskXsXX
68 * Output:
69 * 	1. CFStringRef: English format name for given /dev/diskXsXX
70 * 		It returns "Unknown ( )" for the following conditions:
71 * 			1. If the devnode is mounted already.
72 *			2. If the file system is not HFS or MSDOS.
73 *
74 * This function returns the English format name for /dev/diskXsXX
75 */
76extern CFStringRef _FSCopyNameForVolumeFormatAtNode(CFStringRef devnode);
77
78#ifdef __cplusplus
79}
80#endif /* __cplusplus */
81
82#endif /* !__FILESYSTEM_PRIVATE__ */
83