Lines 834-839
Link Here
|
834 |
} |
834 |
} |
835 |
#endif |
835 |
#endif |
836 |
|
836 |
|
|
|
837 |
#ifndef NO_CFArrayGetCount |
838 |
JNIEXPORT jintLong JNICALL OS_NATIVE(CFArrayGetCount) |
839 |
(JNIEnv *env, jclass that, jint arg0) |
840 |
{ |
841 |
jintLong rc = 0; |
842 |
OS_NATIVE_ENTER(env, that, CFArrayGetCount_FUNC); |
843 |
rc = (jintLong)CFArrayGetCount((CFArrayRef)arg0); |
844 |
OS_NATIVE_EXIT(env, that, CFArrayGetCount_FUNC); |
845 |
return rc; |
846 |
} |
847 |
#endif |
848 |
|
849 |
#ifndef NO_CFArrayGetValueAtIndex |
850 |
JNIEXPORT jintLong JNICALL OS_NATIVE(CFArrayGetValueAtIndex) |
851 |
(JNIEnv *env, jclass that, jintLong arg0, jint arg1) |
852 |
{ |
853 |
jintLong rc = 0; |
854 |
OS_NATIVE_ENTER(env, that, CFArrayGetValueAtIndex_FUNC); |
855 |
rc = (jintLong)CFArrayGetValueAtIndex((CFArrayRef)arg0, (CFIndex)arg1); |
856 |
OS_NATIVE_EXIT(env, that, CFArrayGetValueAtIndex_FUNC); |
857 |
return rc; |
858 |
} |
859 |
#endif |
860 |
|
837 |
#ifndef NO_CFAttributedStringCreate |
861 |
#ifndef NO_CFAttributedStringCreate |
838 |
JNIEXPORT jintLong JNICALL OS_NATIVE(CFAttributedStringCreate) |
862 |
JNIEXPORT jintLong JNICALL OS_NATIVE(CFAttributedStringCreate) |
839 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2) |
863 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2) |
Lines 892-897
Link Here
|
892 |
} |
916 |
} |
893 |
#endif |
917 |
#endif |
894 |
|
918 |
|
|
|
919 |
#ifndef NO_CFNumberCreate |
920 |
JNIEXPORT jintLong JNICALL OS_NATIVE(CFNumberCreate) |
921 |
(JNIEnv *env, jclass that, jintLong arg0, jint arg1, jintArray arg2) |
922 |
{ |
923 |
jint *lparg2=NULL; |
924 |
jintLong rc = 0; |
925 |
OS_NATIVE_ENTER(env, that, CFNumberCreate_FUNC); |
926 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
927 |
rc = (jintLong)CFNumberCreate((CFAllocatorRef)arg0, (CFNumberType)arg1, (const void *)lparg2); |
928 |
fail: |
929 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
930 |
OS_NATIVE_EXIT(env, that, CFNumberCreate_FUNC); |
931 |
return rc; |
932 |
} |
933 |
#endif |
934 |
|
935 |
#ifndef NO_CFNumberGetValue |
936 |
JNIEXPORT jboolean JNICALL OS_NATIVE(CFNumberGetValue) |
937 |
(JNIEnv *env, jclass that, jintLong arg0, jint arg1, jintArray arg2) |
938 |
{ |
939 |
jint *lparg2=NULL; |
940 |
jboolean rc = 0; |
941 |
OS_NATIVE_ENTER(env, that, CFNumberGetValue_FUNC); |
942 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
943 |
rc = (jboolean)CFNumberGetValue((CFNumberRef)arg0, (CFNumberType)arg1, (void *)lparg2); |
944 |
fail: |
945 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
946 |
OS_NATIVE_EXIT(env, that, CFNumberGetValue_FUNC); |
947 |
return rc; |
948 |
} |
949 |
#endif |
950 |
|
895 |
#ifndef NO_CFRange_1sizeof |
951 |
#ifndef NO_CFRange_1sizeof |
896 |
JNIEXPORT jint JNICALL OS_NATIVE(CFRange_1sizeof) |
952 |
JNIEXPORT jint JNICALL OS_NATIVE(CFRange_1sizeof) |
897 |
(JNIEnv *env, jclass that) |
953 |
(JNIEnv *env, jclass that) |
Lines 2303-2308
Link Here
|
2303 |
} |
2359 |
} |
2304 |
#endif |
2360 |
#endif |
2305 |
|
2361 |
|
|
|
2362 |
#ifndef NO_JSEvaluateScript |
2363 |
JNIEXPORT jintLong JNICALL OS_NATIVE(JSEvaluateScript) |
2364 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jintLong arg3, jint arg4, jintLongArray arg5) |
2365 |
{ |
2366 |
jintLong *lparg5=NULL; |
2367 |
jintLong rc = 0; |
2368 |
OS_NATIVE_ENTER(env, that, JSEvaluateScript_FUNC); |
2369 |
if (arg5) if ((lparg5 = (*env)->GetIntLongArrayElements(env, arg5, NULL)) == NULL) goto fail; |
2370 |
rc = (jintLong)JSEvaluateScript((JSContextRef)arg0, (JSStringRef)arg1, (JSObjectRef)arg2, (JSStringRef)arg3, arg4, (JSValueRef *)lparg5); |
2371 |
fail: |
2372 |
if (arg5 && lparg5) (*env)->ReleaseIntLongArrayElements(env, arg5, lparg5, 0); |
2373 |
OS_NATIVE_EXIT(env, that, JSEvaluateScript_FUNC); |
2374 |
return rc; |
2375 |
} |
2376 |
#endif |
2377 |
|
2378 |
#ifndef NO_JSStringCreateWithUTF8CString |
2379 |
JNIEXPORT jintLong JNICALL OS_NATIVE(JSStringCreateWithUTF8CString) |
2380 |
(JNIEnv *env, jclass that, jbyteArray arg0) |
2381 |
{ |
2382 |
jbyte *lparg0=NULL; |
2383 |
jintLong rc = 0; |
2384 |
OS_NATIVE_ENTER(env, that, JSStringCreateWithUTF8CString_FUNC); |
2385 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
2386 |
rc = (jintLong)JSStringCreateWithUTF8CString((const char *)lparg0); |
2387 |
fail: |
2388 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
2389 |
OS_NATIVE_EXIT(env, that, JSStringCreateWithUTF8CString_FUNC); |
2390 |
return rc; |
2391 |
} |
2392 |
#endif |
2393 |
|
2394 |
#ifndef NO_JSStringRelease |
2395 |
JNIEXPORT void JNICALL OS_NATIVE(JSStringRelease) |
2396 |
(JNIEnv *env, jclass that, jintLong arg0) |
2397 |
{ |
2398 |
OS_NATIVE_ENTER(env, that, JSStringRelease_FUNC); |
2399 |
JSStringRelease((JSStringRef)arg0); |
2400 |
OS_NATIVE_EXIT(env, that, JSStringRelease_FUNC); |
2401 |
} |
2402 |
#endif |
2403 |
|
2306 |
#ifndef NO_LMGetKbdType |
2404 |
#ifndef NO_LMGetKbdType |
2307 |
JNIEXPORT jbyte JNICALL OS_NATIVE(LMGetKbdType) |
2405 |
JNIEXPORT jbyte JNICALL OS_NATIVE(LMGetKbdType) |
2308 |
(JNIEnv *env, jclass that) |
2406 |
(JNIEnv *env, jclass that) |
Lines 3963-3968
Link Here
|
3963 |
} |
4061 |
} |
3964 |
#endif |
4062 |
#endif |
3965 |
|
4063 |
|
|
|
4064 |
#ifndef NO_NSOutlineViewColumnDidMoveNotification |
4065 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSOutlineViewColumnDidMoveNotification) |
4066 |
(JNIEnv *env, jclass that) |
4067 |
{ |
4068 |
jintLong rc = 0; |
4069 |
OS_NATIVE_ENTER(env, that, NSOutlineViewColumnDidMoveNotification_FUNC); |
4070 |
rc = (jintLong)NSOutlineViewColumnDidMoveNotification; |
4071 |
OS_NATIVE_EXIT(env, that, NSOutlineViewColumnDidMoveNotification_FUNC); |
4072 |
return rc; |
4073 |
} |
4074 |
#endif |
4075 |
|
3966 |
#ifndef NO_NSParagraphStyleAttributeName |
4076 |
#ifndef NO_NSParagraphStyleAttributeName |
3967 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSParagraphStyleAttributeName) |
4077 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSParagraphStyleAttributeName) |
3968 |
(JNIEnv *env, jclass that) |
4078 |
(JNIEnv *env, jclass that) |
Lines 4078-4083
Link Here
|
4078 |
} |
4188 |
} |
4079 |
#endif |
4189 |
#endif |
4080 |
|
4190 |
|
|
|
4191 |
#ifndef NO_NSPrintPagesAcross |
4192 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSPrintPagesAcross) |
4193 |
(JNIEnv *env, jclass that) |
4194 |
{ |
4195 |
jintLong rc = 0; |
4196 |
OS_NATIVE_ENTER(env, that, NSPrintPagesAcross_FUNC); |
4197 |
rc = (jintLong)NSPrintPagesAcross; |
4198 |
OS_NATIVE_EXIT(env, that, NSPrintPagesAcross_FUNC); |
4199 |
return rc; |
4200 |
} |
4201 |
#endif |
4202 |
|
4203 |
#ifndef NO_NSPrintPagesDown |
4204 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSPrintPagesDown) |
4205 |
(JNIEnv *env, jclass that) |
4206 |
{ |
4207 |
jintLong rc = 0; |
4208 |
OS_NATIVE_ENTER(env, that, NSPrintPagesDown_FUNC); |
4209 |
rc = (jintLong)NSPrintPagesDown; |
4210 |
OS_NATIVE_EXIT(env, that, NSPrintPagesDown_FUNC); |
4211 |
return rc; |
4212 |
} |
4213 |
#endif |
4214 |
|
4081 |
#ifndef NO_NSPrintPreviewJob |
4215 |
#ifndef NO_NSPrintPreviewJob |
4082 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSPrintPreviewJob) |
4216 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSPrintPreviewJob) |
4083 |
(JNIEnv *env, jclass that) |
4217 |
(JNIEnv *env, jclass that) |
Lines 4090-4095
Link Here
|
4090 |
} |
4224 |
} |
4091 |
#endif |
4225 |
#endif |
4092 |
|
4226 |
|
|
|
4227 |
#ifndef NO_NSPrintPrinterName |
4228 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSPrintPrinterName) |
4229 |
(JNIEnv *env, jclass that) |
4230 |
{ |
4231 |
jintLong rc = 0; |
4232 |
OS_NATIVE_ENTER(env, that, NSPrintPrinterName_FUNC); |
4233 |
rc = (jintLong)NSPrintPrinterName; |
4234 |
OS_NATIVE_EXIT(env, that, NSPrintPrinterName_FUNC); |
4235 |
return rc; |
4236 |
} |
4237 |
#endif |
4238 |
|
4093 |
#ifndef NO_NSPrintSaveJob |
4239 |
#ifndef NO_NSPrintSaveJob |
4094 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSPrintSaveJob) |
4240 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSPrintSaveJob) |
4095 |
(JNIEnv *env, jclass that) |
4241 |
(JNIEnv *env, jclass that) |
Lines 4270-4275
Link Here
|
4270 |
} |
4416 |
} |
4271 |
#endif |
4417 |
#endif |
4272 |
|
4418 |
|
|
|
4419 |
#ifndef NO_NSTableViewColumnDidMoveNotification |
4420 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSTableViewColumnDidMoveNotification) |
4421 |
(JNIEnv *env, jclass that) |
4422 |
{ |
4423 |
jintLong rc = 0; |
4424 |
OS_NATIVE_ENTER(env, that, NSTableViewColumnDidMoveNotification_FUNC); |
4425 |
rc = (jintLong)NSTableViewColumnDidMoveNotification; |
4426 |
OS_NATIVE_EXIT(env, that, NSTableViewColumnDidMoveNotification_FUNC); |
4427 |
return rc; |
4428 |
} |
4429 |
#endif |
4430 |
|
4273 |
#ifndef NO_NSTemporaryDirectory |
4431 |
#ifndef NO_NSTemporaryDirectory |
4274 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSTemporaryDirectory) |
4432 |
JNIEXPORT jintLong JNICALL OS_NATIVE(NSTemporaryDirectory) |
4275 |
(JNIEnv *env, jclass that) |
4433 |
(JNIEnv *env, jclass that) |
Lines 4506-4511
Link Here
|
4506 |
} |
4664 |
} |
4507 |
#endif |
4665 |
#endif |
4508 |
|
4666 |
|
|
|
4667 |
#ifndef NO_PMCopyPageFormat |
4668 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMCopyPageFormat) |
4669 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1) |
4670 |
{ |
4671 |
jintLong rc = 0; |
4672 |
OS_NATIVE_ENTER(env, that, PMCopyPageFormat_FUNC); |
4673 |
rc = (jintLong)PMCopyPageFormat((PMPageFormat)arg0, (PMPageFormat)arg1); |
4674 |
OS_NATIVE_EXIT(env, that, PMCopyPageFormat_FUNC); |
4675 |
return rc; |
4676 |
} |
4677 |
#endif |
4678 |
|
4679 |
#ifndef NO_PMCreatePageFormatWithPMPaper |
4680 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMCreatePageFormatWithPMPaper) |
4681 |
(JNIEnv *env, jclass that, jintArray arg0, jintLong arg1) |
4682 |
{ |
4683 |
jint *lparg0=NULL; |
4684 |
jintLong rc = 0; |
4685 |
OS_NATIVE_ENTER(env, that, PMCreatePageFormatWithPMPaper_FUNC); |
4686 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
4687 |
rc = (jintLong)PMCreatePageFormatWithPMPaper((PMPageFormat*)lparg0, (PMPaper)arg1); |
4688 |
fail: |
4689 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
4690 |
OS_NATIVE_EXIT(env, that, PMCreatePageFormatWithPMPaper_FUNC); |
4691 |
return rc; |
4692 |
} |
4693 |
#endif |
4694 |
|
4695 |
#ifndef NO_PMCreatePrintSettings |
4696 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMCreatePrintSettings) |
4697 |
(JNIEnv *env, jclass that, jintArray arg0) |
4698 |
{ |
4699 |
jint *lparg0=NULL; |
4700 |
jintLong rc = 0; |
4701 |
OS_NATIVE_ENTER(env, that, PMCreatePrintSettings_FUNC); |
4702 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
4703 |
rc = (jintLong)PMCreatePrintSettings((PMPrintSettings*)lparg0); |
4704 |
fail: |
4705 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
4706 |
OS_NATIVE_EXIT(env, that, PMCreatePrintSettings_FUNC); |
4707 |
return rc; |
4708 |
} |
4709 |
#endif |
4710 |
|
4711 |
#ifndef NO_PMCreateSession |
4712 |
JNIEXPORT jint JNICALL OS_NATIVE(PMCreateSession) |
4713 |
(JNIEnv *env, jclass that, jintArray arg0) |
4714 |
{ |
4715 |
jint *lparg0=NULL; |
4716 |
jint rc = 0; |
4717 |
OS_NATIVE_ENTER(env, that, PMCreateSession_FUNC); |
4718 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
4719 |
rc = (jint)PMCreateSession((PMPrintSession*)lparg0); |
4720 |
fail: |
4721 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
4722 |
OS_NATIVE_EXIT(env, that, PMCreateSession_FUNC); |
4723 |
return rc; |
4724 |
} |
4725 |
#endif |
4726 |
|
4727 |
#ifndef NO_PMGetDuplex |
4728 |
JNIEXPORT void JNICALL OS_NATIVE(PMGetDuplex) |
4729 |
(JNIEnv *env, jclass that, jintLong arg0, jintArray arg1) |
4730 |
{ |
4731 |
jint *lparg1=NULL; |
4732 |
OS_NATIVE_ENTER(env, that, PMGetDuplex_FUNC); |
4733 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4734 |
PMGetDuplex((PMPrintSettings)arg0, (PMDuplexMode*)lparg1); |
4735 |
fail: |
4736 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4737 |
OS_NATIVE_EXIT(env, that, PMGetDuplex_FUNC); |
4738 |
} |
4739 |
#endif |
4740 |
|
4741 |
#ifndef NO_PMGetPageFormatPaper |
4742 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMGetPageFormatPaper) |
4743 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
4744 |
{ |
4745 |
jint *lparg1=NULL; |
4746 |
jintLong rc = 0; |
4747 |
OS_NATIVE_ENTER(env, that, PMGetPageFormatPaper_FUNC); |
4748 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4749 |
rc = (jintLong)PMGetPageFormatPaper((PMPageFormat)arg0, (PMPaper*)lparg1); |
4750 |
fail: |
4751 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4752 |
OS_NATIVE_EXIT(env, that, PMGetPageFormatPaper_FUNC); |
4753 |
return rc; |
4754 |
} |
4755 |
#endif |
4756 |
|
4757 |
#ifndef NO_PMPageFormatGetPrinterID |
4758 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPageFormatGetPrinterID) |
4759 |
(JNIEnv *env, jclass that, jintLong arg0, jintArray arg1) |
4760 |
{ |
4761 |
jint *lparg1=NULL; |
4762 |
jintLong rc = 0; |
4763 |
OS_NATIVE_ENTER(env, that, PMPageFormatGetPrinterID_FUNC); |
4764 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4765 |
rc = (jintLong)PMPageFormatGetPrinterID((PMPageFormat)arg0, (CFStringRef*)lparg1); |
4766 |
fail: |
4767 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4768 |
OS_NATIVE_EXIT(env, that, PMPageFormatGetPrinterID_FUNC); |
4769 |
return rc; |
4770 |
} |
4771 |
#endif |
4772 |
|
4773 |
#ifndef NO_PMPaperCreateCustom |
4774 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPaperCreateCustom) |
4775 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jdouble arg3, jdouble arg4, jdoubleArray arg5, jintArray arg6) |
4776 |
{ |
4777 |
jdouble *lparg5=NULL; |
4778 |
jint *lparg6=NULL; |
4779 |
jintLong rc = 0; |
4780 |
OS_NATIVE_ENTER(env, that, PMPaperCreateCustom_FUNC); |
4781 |
if (arg5) if ((lparg5 = (*env)->GetDoubleArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4782 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
4783 |
rc = (jintLong)PMPaperCreateCustom((PMPrinter)arg0, (CFStringRef)arg1, (CFStringRef)arg2, (double)arg3, (double)arg4, (const PMPaperMargins*)lparg5, (PMPaper*)lparg6); |
4784 |
fail: |
4785 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
4786 |
if (arg5 && lparg5) (*env)->ReleaseDoubleArrayElements(env, arg5, lparg5, 0); |
4787 |
OS_NATIVE_EXIT(env, that, PMPaperCreateCustom_FUNC); |
4788 |
return rc; |
4789 |
} |
4790 |
#endif |
4791 |
|
4792 |
#ifndef NO_PMPaperCreateLocalizedName |
4793 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPaperCreateLocalizedName) |
4794 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintArray arg2) |
4795 |
{ |
4796 |
jint *lparg2=NULL; |
4797 |
jintLong rc = 0; |
4798 |
OS_NATIVE_ENTER(env, that, PMPaperCreateLocalizedName_FUNC); |
4799 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4800 |
rc = (jintLong)PMPaperCreateLocalizedName((PMPaper)arg0, (PMPrinter)arg1, (CFStringRef*)lparg2); |
4801 |
fail: |
4802 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4803 |
OS_NATIVE_EXIT(env, that, PMPaperCreateLocalizedName_FUNC); |
4804 |
return rc; |
4805 |
} |
4806 |
#endif |
4807 |
|
4808 |
#ifndef NO_PMPaperGetHeight |
4809 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPaperGetHeight) |
4810 |
(JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1) |
4811 |
{ |
4812 |
jdouble *lparg1=NULL; |
4813 |
jintLong rc = 0; |
4814 |
OS_NATIVE_ENTER(env, that, PMPaperGetHeight_FUNC); |
4815 |
if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4816 |
rc = (jintLong)PMPaperGetHeight((PMPaper)arg0, (double*)lparg1); |
4817 |
fail: |
4818 |
if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0); |
4819 |
OS_NATIVE_EXIT(env, that, PMPaperGetHeight_FUNC); |
4820 |
return rc; |
4821 |
} |
4822 |
#endif |
4823 |
|
4824 |
#ifndef NO_PMPaperGetID |
4825 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPaperGetID) |
4826 |
(JNIEnv *env, jclass that, jintLong arg0, jintArray arg1) |
4827 |
{ |
4828 |
jint *lparg1=NULL; |
4829 |
jintLong rc = 0; |
4830 |
OS_NATIVE_ENTER(env, that, PMPaperGetID_FUNC); |
4831 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4832 |
rc = (jintLong)PMPaperGetID((PMPrinter)arg0, (CFStringRef*)lparg1); |
4833 |
fail: |
4834 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4835 |
OS_NATIVE_EXIT(env, that, PMPaperGetID_FUNC); |
4836 |
return rc; |
4837 |
} |
4838 |
#endif |
4839 |
|
4840 |
#ifndef NO_PMPaperGetName |
4841 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPaperGetName) |
4842 |
(JNIEnv *env, jclass that, jintLong arg0, jintArray arg1) |
4843 |
{ |
4844 |
jint *lparg1=NULL; |
4845 |
jintLong rc = 0; |
4846 |
OS_NATIVE_ENTER(env, that, PMPaperGetName_FUNC); |
4847 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4848 |
rc = (jintLong)PMPaperGetName((PMPaper)arg0, (CFStringRef*)lparg1); |
4849 |
fail: |
4850 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4851 |
OS_NATIVE_EXIT(env, that, PMPaperGetName_FUNC); |
4852 |
return rc; |
4853 |
} |
4854 |
#endif |
4855 |
|
4856 |
#ifndef NO_PMPaperGetWidth |
4857 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPaperGetWidth) |
4858 |
(JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1) |
4859 |
{ |
4860 |
jdouble *lparg1=NULL; |
4861 |
jintLong rc = 0; |
4862 |
OS_NATIVE_ENTER(env, that, PMPaperGetWidth_FUNC); |
4863 |
if (arg1) if ((lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4864 |
rc = (jintLong)PMPaperGetWidth((PMPaper)arg0, (double*)lparg1); |
4865 |
fail: |
4866 |
if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0); |
4867 |
OS_NATIVE_EXIT(env, that, PMPaperGetWidth_FUNC); |
4868 |
return rc; |
4869 |
} |
4870 |
#endif |
4871 |
|
4872 |
#ifndef NO_PMPaperIsCustom |
4873 |
JNIEXPORT jboolean JNICALL OS_NATIVE(PMPaperIsCustom) |
4874 |
(JNIEnv *env, jclass that, jintLong arg0) |
4875 |
{ |
4876 |
jboolean rc = 0; |
4877 |
OS_NATIVE_ENTER(env, that, PMPaperIsCustom_FUNC); |
4878 |
rc = (jboolean)PMPaperIsCustom((PMPaper)arg0); |
4879 |
OS_NATIVE_EXIT(env, that, PMPaperIsCustom_FUNC); |
4880 |
return rc; |
4881 |
} |
4882 |
#endif |
4883 |
|
4884 |
#ifndef NO_PMPrintSettingsCopyKeys |
4885 |
JNIEXPORT jint JNICALL OS_NATIVE(PMPrintSettingsCopyKeys) |
4886 |
(JNIEnv *env, jclass that, jintLong arg0, jintArray arg1) |
4887 |
{ |
4888 |
jint *lparg1=NULL; |
4889 |
jint rc = 0; |
4890 |
OS_NATIVE_ENTER(env, that, PMPrintSettingsCopyKeys_FUNC); |
4891 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4892 |
rc = (jint)PMPrintSettingsCopyKeys((PMPrintSettings)arg0, (CFArrayRef*)lparg1); |
4893 |
fail: |
4894 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4895 |
OS_NATIVE_EXIT(env, that, PMPrintSettingsCopyKeys_FUNC); |
4896 |
return rc; |
4897 |
} |
4898 |
#endif |
4899 |
|
4900 |
#ifndef NO_PMPrintSettingsGetValue |
4901 |
JNIEXPORT jint JNICALL OS_NATIVE(PMPrintSettingsGetValue) |
4902 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintArray arg2) |
4903 |
{ |
4904 |
jint *lparg2=NULL; |
4905 |
jint rc = 0; |
4906 |
OS_NATIVE_ENTER(env, that, PMPrintSettingsGetValue_FUNC); |
4907 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4908 |
rc = (jint)PMPrintSettingsGetValue((PMPrintSettings)arg0, (CFStringRef)arg1, (CFTypeRef*)lparg2); |
4909 |
fail: |
4910 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4911 |
OS_NATIVE_EXIT(env, that, PMPrintSettingsGetValue_FUNC); |
4912 |
return rc; |
4913 |
} |
4914 |
#endif |
4915 |
|
4916 |
#ifndef NO_PMPrintSettingsSetValue |
4917 |
JNIEXPORT jint JNICALL OS_NATIVE(PMPrintSettingsSetValue) |
4918 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jint arg2, jboolean arg3) |
4919 |
{ |
4920 |
jint rc = 0; |
4921 |
OS_NATIVE_ENTER(env, that, PMPrintSettingsSetValue_FUNC); |
4922 |
rc = (jint)PMPrintSettingsSetValue((PMPrintSettings)arg0, (CFStringRef)arg1, (CFTypeRef)arg2, (Boolean)arg3); |
4923 |
OS_NATIVE_EXIT(env, that, PMPrintSettingsSetValue_FUNC); |
4924 |
return rc; |
4925 |
} |
4926 |
#endif |
4927 |
|
4928 |
#ifndef NO_PMPrinterCreateFromPrinterID |
4929 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPrinterCreateFromPrinterID) |
4930 |
(JNIEnv *env, jclass that, jintLong arg0) |
4931 |
{ |
4932 |
jintLong rc = 0; |
4933 |
OS_NATIVE_ENTER(env, that, PMPrinterCreateFromPrinterID_FUNC); |
4934 |
rc = (jintLong)PMPrinterCreateFromPrinterID((CFStringRef)arg0); |
4935 |
OS_NATIVE_EXIT(env, that, PMPrinterCreateFromPrinterID_FUNC); |
4936 |
return rc; |
4937 |
} |
4938 |
#endif |
4939 |
|
4940 |
#ifndef NO_PMPrinterGetMimeTypes |
4941 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPrinterGetMimeTypes) |
4942 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintArray arg2) |
4943 |
{ |
4944 |
jint *lparg2=NULL; |
4945 |
jintLong rc = 0; |
4946 |
OS_NATIVE_ENTER(env, that, PMPrinterGetMimeTypes_FUNC); |
4947 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4948 |
rc = (jintLong)PMPrinterGetMimeTypes((PMPrinter)arg0, (PMPrintSettings)arg1, (CFArrayRef*)lparg2); |
4949 |
fail: |
4950 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4951 |
OS_NATIVE_EXIT(env, that, PMPrinterGetMimeTypes_FUNC); |
4952 |
return rc; |
4953 |
} |
4954 |
#endif |
4955 |
|
4956 |
#ifndef NO_PMPrinterGetName |
4957 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPrinterGetName) |
4958 |
(JNIEnv *env, jclass that, jintLong arg0) |
4959 |
{ |
4960 |
jintLong rc = 0; |
4961 |
OS_NATIVE_ENTER(env, that, PMPrinterGetName_FUNC); |
4962 |
rc = (jintLong)PMPrinterGetName((PMPrinter)arg0); |
4963 |
OS_NATIVE_EXIT(env, that, PMPrinterGetName_FUNC); |
4964 |
return rc; |
4965 |
} |
4966 |
#endif |
4967 |
|
4968 |
#ifndef NO_PMPrinterGetOutputResolution |
4969 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPrinterGetOutputResolution) |
4970 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jdoubleArray arg2) |
4971 |
{ |
4972 |
jdouble *lparg2=NULL; |
4973 |
jintLong rc = 0; |
4974 |
OS_NATIVE_ENTER(env, that, PMPrinterGetOutputResolution_FUNC); |
4975 |
if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4976 |
rc = (jintLong)PMPrinterGetOutputResolution((PMPrinter)arg0, (PMPrintSettings)arg1, lparg2); |
4977 |
fail: |
4978 |
if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0); |
4979 |
OS_NATIVE_EXIT(env, that, PMPrinterGetOutputResolution_FUNC); |
4980 |
return rc; |
4981 |
} |
4982 |
#endif |
4983 |
|
4984 |
#ifndef NO_PMPrinterGetPaperList |
4985 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPrinterGetPaperList) |
4986 |
(JNIEnv *env, jclass that, jintLong arg0, jintArray arg1) |
4987 |
{ |
4988 |
jint *lparg1=NULL; |
4989 |
jintLong rc = 0; |
4990 |
OS_NATIVE_ENTER(env, that, PMPrinterGetPaperList_FUNC); |
4991 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4992 |
rc = (jintLong)PMPrinterGetPaperList((PMPrinter)arg0, (CFArrayRef*)lparg1); |
4993 |
fail: |
4994 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4995 |
OS_NATIVE_EXIT(env, that, PMPrinterGetPaperList_FUNC); |
4996 |
return rc; |
4997 |
} |
4998 |
#endif |
4999 |
|
5000 |
#ifndef NO_PMPrinterSetOutputResolution |
5001 |
JNIEXPORT jintLong JNICALL OS_NATIVE(PMPrinterSetOutputResolution) |
5002 |
(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jdoubleArray arg2) |
5003 |
{ |
5004 |
jdouble *lparg2=NULL; |
5005 |
jintLong rc = 0; |
5006 |
OS_NATIVE_ENTER(env, that, PMPrinterSetOutputResolution_FUNC); |
5007 |
if (arg2) if ((lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5008 |
rc = (jintLong)PMPrinterSetOutputResolution((PMPrinter)arg0, (PMPrintSettings)arg1, lparg2); |
5009 |
fail: |
5010 |
if (arg2 && lparg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0); |
5011 |
OS_NATIVE_EXIT(env, that, PMPrinterSetOutputResolution_FUNC); |
5012 |
return rc; |
5013 |
} |
5014 |
#endif |
5015 |
|
5016 |
#ifndef NO_PMRelease |
5017 |
JNIEXPORT jint JNICALL OS_NATIVE(PMRelease) |
5018 |
(JNIEnv *env, jclass that, jintLong arg0) |
5019 |
{ |
5020 |
jint rc = 0; |
5021 |
OS_NATIVE_ENTER(env, that, PMRelease_FUNC); |
5022 |
rc = (jint)PMRelease((PMObject)arg0); |
5023 |
OS_NATIVE_EXIT(env, that, PMRelease_FUNC); |
5024 |
return rc; |
5025 |
} |
5026 |
#endif |
5027 |
|
5028 |
#ifndef NO_PMSessionGetCurrentPrinter |
5029 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionGetCurrentPrinter) |
5030 |
(JNIEnv *env, jclass that, jintLong arg0, jintArray arg1) |
5031 |
{ |
5032 |
jint *lparg1=NULL; |
5033 |
jint rc = 0; |
5034 |
OS_NATIVE_ENTER(env, that, PMSessionGetCurrentPrinter_FUNC); |
5035 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5036 |
rc = (jint)PMSessionGetCurrentPrinter((PMPrintSession)arg0, (PMPrinter*)lparg1); |
5037 |
fail: |
5038 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5039 |
OS_NATIVE_EXIT(env, that, PMSessionGetCurrentPrinter_FUNC); |
5040 |
return rc; |
5041 |
} |
5042 |
#endif |
5043 |
|
5044 |
#ifndef NO_PMSetDuplex |
5045 |
JNIEXPORT void JNICALL OS_NATIVE(PMSetDuplex) |
5046 |
(JNIEnv *env, jclass that, jintLong arg0, jint arg1) |
5047 |
{ |
5048 |
OS_NATIVE_ENTER(env, that, PMSetDuplex_FUNC); |
5049 |
PMSetDuplex((PMPrintSettings)arg0, (PMDuplexMode)arg1); |
5050 |
OS_NATIVE_EXIT(env, that, PMSetDuplex_FUNC); |
5051 |
} |
5052 |
#endif |
5053 |
|
4509 |
#ifndef NO_PtInRgn |
5054 |
#ifndef NO_PtInRgn |
4510 |
JNIEXPORT jboolean JNICALL OS_NATIVE(PtInRgn) |
5055 |
JNIEXPORT jboolean JNICALL OS_NATIVE(PtInRgn) |
4511 |
(JNIEnv *env, jclass that, jshortArray arg0, jintLong arg1) |
5056 |
(JNIEnv *env, jclass that, jshortArray arg0, jintLong arg1) |