Adobe.com
Contents Suites Classes Class Index Member Index

AIMdMemory.h

Go to the documentation of this file.
00001 
00002 #ifndef __AIMdMemory__
00003 #define __AIMdMemory__
00004 
00005 /*
00006  *        Name: AIMdMemory.h
00007  *   $Revision: 1 $
00008  *      Author:
00009  *        Date:
00010  *     Purpose: Adobe Illustrator Handle-based Memory suite
00011  *
00012  *                              Provides machine-dependent (Md) memory management.
00013  *                              Uses NewHandle() in Mac OS and GlobalAlloc() in Windows
00014  *                              to allocate memory.
00015  *                              Generally deprecated, but still used for matching art
00016  *
00017  * ADOBE SYSTEMS INCORPORATED
00018  * Copyright 1986-2007 Adobe Systems Incorporated.
00019  * All rights reserved.
00020  *
00021  * NOTICE:  Adobe permits you to use, modify, and distribute this file 
00022  * in accordance with the terms of the Adobe license agreement 
00023  * accompanying it. If you have received this file from a source other 
00024  * than Adobe, then your use, modification, or distribution of it 
00025  * requires the prior written permission of Adobe.
00026  *
00027  */
00028 
00029 /*******************************************************************************
00030  **
00031  **     Imports
00032  **
00033  **/
00034 
00035 #ifndef __AITypes__
00036 #include "AITypes.h"
00037 #endif
00038 
00039 
00040 #include "AIHeaderBegin.h"
00041 
00044 /*******************************************************************************
00045  **
00046  ** Constants
00047  **
00048  **/
00049 
00050 #define kAIMdMemorySuite                "AI MdMemory Suite"
00051 #define kAIMdMemorySuiteVersion         AIAPI_VERSION(3)
00052 #define kAIMdMemoryVersion                      kAIMdMemorySuiteVersion
00053 
00054 
00055 /*******************************************************************************
00056  **
00057  ** Types
00058  **
00059  **/
00060 
00062 typedef void **AIMdMemoryHandle;
00063 
00064 /*******************************************************************************
00065  **
00066  **     Suite Record
00067  **
00068  **/
00069 
00080 typedef struct {
00085         AIAPI AIErr (*MdMemoryNewHandle) ( size_t size, AIMdMemoryHandle *hMem );
00086 
00090         AIAPI AIErr (*MdMemoryDisposeHandle) ( AIMdMemoryHandle hMem );
00091 
00096         AIAPI AIErr (*MdMemoryGetSize) ( AIMdMemoryHandle hMem, size_t *size );
00097 
00102         AIAPI AIErr (*MdMemoryResize) ( AIMdMemoryHandle hMem, size_t newSize );
00103 
00111         AIAPI AIErr (*MdMemoryLock) ( AIMdMemoryHandle hMem, void **lockedPtr );
00112 
00118         AIAPI AIErr (*MdMemoryUnLock) ( AIMdMemoryHandle hMem );
00119 
00120 } AIMdMemorySuite;
00121 
00122 
00123 #include "AIHeaderEnd.h"
00124 
00125 #endif


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks