/*=============================================================================
	CAFilePathUtils.h
	
	$Log: CAFilePathUtils.h,v $
	Revision 1.1  2006/03/15 20:26:55  dwyatt
	moved from Source/Tests/AudioFileTools/Utility
	
	Revision 1.3  2005/09/27 19:09:57  dwyatt
	Windows
	
	Revision 1.2  2005/03/10 02:16:11  ealdrich
	Make it build on Windows
	
	Revision 1.1  2004/10/15 17:09:04  dwyatt
	initial checkin
	
	created 10/15/04, Doug Wyatt
	Copyright (c) 2004 Apple Computer, Inc.  All Rights Reserved

	$NoKeywords: $
=============================================================================*/

#ifndef __CAFilePathUtils_h__
#define __CAFilePathUtils_h__

#if !defined(__COREAUDIO_USE_FLAT_INCLUDES__)
	#include <CoreServices/CoreServices.h>
	#include <CoreFoundation/CoreFoundation.h>
#else
	#include <TargetConditionals.h>
	#include <CoreServices.h>
	#include <CoreFoundation.h>
#endif

OSStatus	PosixPathToParentFSRefAndName(const char *path, FSRef &outParentDir, CFStringRef &outFileName);
#if !TARGET_OS_WIN32
	#include <libgen.h>
#else
	char*	dirname(const char* inPath);
	char*	basename(const char* inPath);
#endif

#endif // __CAFilePathUtils_h__
