OSDN Git Service

Initial revision
[pf3gnuchains/sourceware.git] / tk / macosx / tkMacOSXUtil.h
1 /*
2  * tkMacOSXUtil.h --
3  *
4  *      Declarations of utility functions from the MoreFiles package.
5  *  
6  *      FIXME: We should be able to replace all these with FSRef calls
7  *      much more simply.
8  *
9  *      Copyright 2001, Apple Computer, Inc.
10  *
11  *      The following terms apply to all files originating from Apple
12  *      Computer, Inc. ("Apple") and associated with the software
13  *      unless explicitly disclaimed in individual files.
14  *
15  *
16  *      Apple hereby grants permission to use, copy, modify,
17  *      distribute, and license this software and its documentation
18  *      for any purpose, provided that existing copyright notices are
19  *      retained in all copies and that this notice is included
20  *      verbatim in any distributions. No written agreement, license,
21  *      or royalty fee is required for any of the authorized
22  *      uses. Modifications to this software may be copyrighted by
23  *      their authors and need not follow the licensing terms
24  *      described here, provided that the new terms are clearly
25  *      indicated on the first page of each file where they apply.
26  *
27  *
28  *      IN NO EVENT SHALL APPLE, THE AUTHORS OR DISTRIBUTORS OF THE
29  *      SOFTWARE BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL,
30  *      INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
31  *      THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
32  *      EVEN IF APPLE OR THE AUTHORS HAVE BEEN ADVISED OF THE
33  *      POSSIBILITY OF SUCH DAMAGE.  APPLE, THE AUTHORS AND
34  *      DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
35  *      BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
36  *      FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS
37  *      SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, AND APPLE,THE
38  *      AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
39  *      MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
40  *
41  *      GOVERNMENT USE: If you are acquiring this software on behalf
42  *      of the U.S. government, the Government shall have only
43  *      "Restricted Rights" in the software and related documentation
44  *      as defined in the Federal Acquisition Regulations (FARs) in
45  *      Clause 52.227.19 (c) (2).  If you are acquiring the software
46  *      on behalf of the Department of Defense, the software shall be
47  *      classified as "Commercial Computer Software" and the
48  *      Government shall have only "Restricted Rights" as defined in
49  *      Clause 252.227-7013 (c) (1) of DFARs.  Notwithstanding the
50  *      foregoing, the authors grant the U.S. Government and others
51  *      acting in its behalf permission to use and distribute the
52  *      software in accordance with the terms specified in this
53  *      license.
54  */
55
56 #ifndef TK_MAC_UTIL_H
57 #define TK_MAC_UTIL_H
58
59 #include <Carbon/Carbon.h>
60
61 OSErr FSpPathFromLocation(FSSpec *spec, int *length, Handle *fullPath);
62 OSErr FSpLocationFromPath(int length, const char *path, FSSpecPtr fileSpecPtr);
63 OSErr FSpGetDirectoryID(const FSSpec *spec, long *theDirID, Boolean *isDirectory);
64
65 #endif