Back to index

im-sdk  12.3.91
SunIMMMan.h
Go to the documentation of this file.
00001 /* 
00002  * Copyright 1998 by Sun Microsystems, Inc.,
00003  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
00004  * All rights reserved.
00005  *
00006  * This software is the confidential and proprietary information
00007  * of Sun Microsystems, Inc. ("Confidential Information").  You
00008  * shall not disclose such Confidential Information and shall use
00009  * it only in accordance with the terms of the license agreement
00010  * you entered into with Sun.
00011  */
00012 
00013 #ifndef SUNIMMMAN_H
00014 #define SUNIMMMAN_H
00015 
00016 #ifndef _MIN
00017 #define _MIN(a,b) (((a) < (b)) ? (a) : (b))
00018 #endif
00019 #ifndef _MAX
00020 #define _MAX(a,b) (((a) > (b)) ? (a) : (b))
00021 #endif
00022 
00023 #ifdef  USE_XSUNIM_ADAPTER
00024 
00025 typedef enum 
00026 {
00027     RELEASE_SLOT = 0 ,
00028     ALLOC_SLOT = 1 
00029 } slot_op_t;
00030 
00031 typedef enum { FREE, BUSY } busy_;
00032 
00033 typedef struct _iml_inst_slot {
00034     struct _iml_inst_slot *next ;
00035     busy_ busy ; 
00036     int size ;
00037     char *ptr ;
00038 } iml_inst_slot_t;
00039 
00040 #define IML_MAX_SLOT_SIZE 65535
00041 #define IML_MIN_SLOT_SIZE 128
00042 
00043 #endif /* USE_XSUNIM_ADAPTER */
00044 
00045 #endif  /* SUNIMMMAN_H */