pgpmacfilemapping.h

来自「可以实现对邮件的加密解密以及签名」· C头文件 代码 · 共 68 行

H
68
字号
/*____________________________________________________________________________
	Copyright (C) 2002 PGP Corporation
	All rights reserved.

	$Id: pgpMacFileMapping.h,v 1.5 2002/08/06 20:11:14 dallen Exp $
____________________________________________________________________________*/
#ifndef Included_pgpMacmapping_h	/* [ */
#define Included_pgpMacmapping_h

#include "pgpBase.h"


PGP_BEGIN_C_DECLARATIONS

#if PGP_OSX
#	include <CoreServices/CoreServices.h>
#elif ! PGP_MACINTOSH
	typedef unsigned long	OSType;
#endif

#if PGP_MACINTOSH || PGP_OSX	/* [ */

/* determine if turning off MacBinary is appropriate for this file */
PGPBoolean	pgpOKToEncodeFSSpecWithoutMacBinary( const struct FSSpec *spec );

/* map actual file data into mac creator/type pair */
PGPError	pgpMapFileDataToMacCreatorType( const void *data,
				OSType *creator, OSType *type );
				

/* map file name extension into mac creator/type pair */
/* name is a pascal string */
PGPError	pgpMapFileNameToMacCreatorType( const unsigned char *name,
				OSType *creator, OSType *type );


#endif	/* ] PGP_MACINTOSH */


/* map a creator/type pair to a file name extension */
/* extension is of the form "doc", "bin", etc + null char */
PGPError	pgpMapMacCreatorTypeToExtension( OSType creator, OSType type,
				char	extension[ 3 + 1 ] );

PGPBoolean	pgpIsValidExtensionForMacType( OSType creator, OSType type,
				char const * extension );
				


PGPError	pgpInitMacBinaryMappings( void );
PGPError	pgpDisposeMacBinaryMappings( void );

PGP_END_C_DECLARATIONS



#endif /* ] Included_pgpMacmapping_h */


/*__Editor_settings____

	Local Variables:
	tab-width: 4
	End:
	vi: ts=4 sw=4
	vim: si
_____________________*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?