/*******************************************************************************
 * Copyright (c) 2000, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    IBM Corporation - initial API and implementation
 *******************************************************************************/

#include "os.h"

#ifndef NO_CGPoint
void cacheCGPointFields(JNIEnv *env, jobject lpObject);
CGPoint *getCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct);
void setCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct);
#define CGPoint_sizeof() sizeof(CGPoint)
#else
#define cacheCGPointFields(a,b)
#define getCGPointFields(a,b,c) NULL
#define setCGPointFields(a,b,c)
#define CGPoint_sizeof() 0
#endif

#ifndef NO_CGRect
void cacheCGRectFields(JNIEnv *env, jobject lpObject);
CGRect *getCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct);
void setCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct);
#define CGRect_sizeof() sizeof(CGRect)
#else
#define cacheCGRectFields(a,b)
#define getCGRectFields(a,b,c) NULL
#define setCGRectFields(a,b,c)
#define CGRect_sizeof() 0
#endif

#ifndef NO_CGSize
void cacheCGSizeFields(JNIEnv *env, jobject lpObject);
CGSize *getCGSizeFields(JNIEnv *env, jobject lpObject, CGSize *lpStruct);
void setCGSizeFields(JNIEnv *env, jobject lpObject, CGSize *lpStruct);
#define CGSize_sizeof() sizeof(CGSize)
#else
#define cacheCGSizeFields(a,b)
#define getCGSizeFields(a,b,c) NULL
#define setCGSizeFields(a,b,c)
#define CGSize_sizeof() 0
#endif

#ifndef NO_NSAffineTransformStruct
void cacheNSAffineTransformStructFields(JNIEnv *env, jobject lpObject);
NSAffineTransformStruct *getNSAffineTransformStructFields(JNIEnv *env, jobject lpObject, NSAffineTransformStruct *lpStruct);
void setNSAffineTransformStructFields(JNIEnv *env, jobject lpObject, NSAffineTransformStruct *lpStruct);
#define NSAffineTransformStruct_sizeof() sizeof(NSAffineTransformStruct)
#else
#define cacheNSAffineTransformStructFields(a,b)
#define getNSAffineTransformStructFields(a,b,c) NULL
#define setNSAffineTransformStructFields(a,b,c)
#define NSAffineTransformStruct_sizeof() 0
#endif

#ifndef NO_NSDecimal
void cacheNSDecimalFields(JNIEnv *env, jobject lpObject);
NSDecimal *getNSDecimalFields(JNIEnv *env, jobject lpObject, NSDecimal *lpStruct);
void setNSDecimalFields(JNIEnv *env, jobject lpObject, NSDecimal *lpStruct);
#define NSDecimal_sizeof() sizeof(NSDecimal)
#else
#define cacheNSDecimalFields(a,b)
#define getNSDecimalFields(a,b,c) NULL
#define setNSDecimalFields(a,b,c)
#define NSDecimal_sizeof() 0
#endif

#ifndef NO_NSPoint
void cacheNSPointFields(JNIEnv *env, jobject lpObject);
NSPoint *getNSPointFields(JNIEnv *env, jobject lpObject, NSPoint *lpStruct);
void setNSPointFields(JNIEnv *env, jobject lpObject, NSPoint *lpStruct);
#define NSPoint_sizeof() sizeof(NSPoint)
#else
#define cacheNSPointFields(a,b)
#define getNSPointFields(a,b,c) NULL
#define setNSPointFields(a,b,c)
#define NSPoint_sizeof() 0
#endif

#ifndef NO_NSRange
void cacheNSRangeFields(JNIEnv *env, jobject lpObject);
NSRange *getNSRangeFields(JNIEnv *env, jobject lpObject, NSRange *lpStruct);
void setNSRangeFields(JNIEnv *env, jobject lpObject, NSRange *lpStruct);
#define NSRange_sizeof() sizeof(NSRange)
#else
#define cacheNSRangeFields(a,b)
#define getNSRangeFields(a,b,c) NULL
#define setNSRangeFields(a,b,c)
#define NSRange_sizeof() 0
#endif

#ifndef NO_NSRect
void cacheNSRectFields(JNIEnv *env, jobject lpObject);
NSRect *getNSRectFields(JNIEnv *env, jobject lpObject, NSRect *lpStruct);
void setNSRectFields(JNIEnv *env, jobject lpObject, NSRect *lpStruct);
#define NSRect_sizeof() sizeof(NSRect)
#else
#define cacheNSRectFields(a,b)
#define getNSRectFields(a,b,c) NULL
#define setNSRectFields(a,b,c)
#define NSRect_sizeof() 0
#endif

#ifndef NO_NSSize
void cacheNSSizeFields(JNIEnv *env, jobject lpObject);
NSSize *getNSSizeFields(JNIEnv *env, jobject lpObject, NSSize *lpStruct);
void setNSSizeFields(JNIEnv *env, jobject lpObject, NSSize *lpStruct);
#define NSSize_sizeof() sizeof(NSSize)
#else
#define cacheNSSizeFields(a,b)
#define getNSSizeFields(a,b,c) NULL
#define setNSSizeFields(a,b,c)
#define NSSize_sizeof() 0
#endif

#ifndef NO_NSSwappedDouble
void cacheNSSwappedDoubleFields(JNIEnv *env, jobject lpObject);
NSSwappedDouble *getNSSwappedDoubleFields(JNIEnv *env, jobject lpObject, NSSwappedDouble *lpStruct);
void setNSSwappedDoubleFields(JNIEnv *env, jobject lpObject, NSSwappedDouble *lpStruct);
#define NSSwappedDouble_sizeof() sizeof(NSSwappedDouble)
#else
#define cacheNSSwappedDoubleFields(a,b)
#define getNSSwappedDoubleFields(a,b,c) NULL
#define setNSSwappedDoubleFields(a,b,c)
#define NSSwappedDouble_sizeof() 0
#endif

#ifndef NO_NSSwappedFloat
void cacheNSSwappedFloatFields(JNIEnv *env, jobject lpObject);
NSSwappedFloat *getNSSwappedFloatFields(JNIEnv *env, jobject lpObject, NSSwappedFloat *lpStruct);
void setNSSwappedFloatFields(JNIEnv *env, jobject lpObject, NSSwappedFloat *lpStruct);
#define NSSwappedFloat_sizeof() sizeof(NSSwappedFloat)
#else
#define cacheNSSwappedFloatFields(a,b)
#define getNSSwappedFloatFields(a,b,c) NULL
#define setNSSwappedFloatFields(a,b,c)
#define NSSwappedFloat_sizeof() 0
#endif

#ifndef NO_objc_super
void cacheobjc_superFields(JNIEnv *env, jobject lpObject);
struct objc_super *getobjc_superFields(JNIEnv *env, jobject lpObject, struct objc_super *lpStruct);
void setobjc_superFields(JNIEnv *env, jobject lpObject, struct objc_super *lpStruct);
#define objc_super_sizeof() sizeof(objc_super)
#else
#define cacheobjc_superFields(a,b)
#define getobjc_superFields(a,b,c) NULL
#define setobjc_superFields(a,b,c)
#define objc_super_sizeof() 0
#endif

