8217707: JNICALL declaration breaks Splash screen functions
Reviewed-by: prr, stuefe
This commit is contained in:
parent
f883ffee64
commit
f468c7a4ff
src/java.desktop
share/native/libsplashscreen
unix/native/libsplashscreen
windows/native/libsplashscreen
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -46,7 +46,7 @@ SplashGetInstance()
|
||||
return &splash;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
JNIEXPORT void
|
||||
SplashSetFileJarName(const char* fileName, const char* jarName) {
|
||||
Splash *splash = SplashGetInstance();
|
||||
|
||||
@ -57,7 +57,7 @@ SplashSetFileJarName(const char* fileName, const char* jarName) {
|
||||
splash->jarName = SplashConvertStringAlloc(jarName, &splash->jarNameLen);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
JNIEXPORT void
|
||||
SplashInit()
|
||||
{
|
||||
Splash *splash = SplashGetInstance();
|
||||
@ -70,7 +70,7 @@ SplashInit()
|
||||
SplashInitPlatform(splash);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
JNIEXPORT void
|
||||
SplashClose()
|
||||
{
|
||||
Splash *splash = SplashGetInstance();
|
||||
@ -107,7 +107,7 @@ SplashCleanup(Splash * splash)
|
||||
SplashSetFileJarName(NULL, NULL);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
JNIEXPORT void
|
||||
SplashSetScaleFactor(float scaleFactor)
|
||||
{
|
||||
Splash *splash = SplashGetInstance();
|
||||
@ -302,7 +302,7 @@ SplashLoadStream(SplashStream * stream)
|
||||
return success;
|
||||
}
|
||||
|
||||
JNIEXPORT int JNICALL
|
||||
JNIEXPORT int
|
||||
SplashLoadFile(const char *filename)
|
||||
{
|
||||
SplashStream stream;
|
||||
@ -310,7 +310,7 @@ SplashLoadFile(const char *filename)
|
||||
SplashLoadStream(&stream);
|
||||
}
|
||||
|
||||
JNIEXPORT int JNICALL
|
||||
JNIEXPORT int
|
||||
SplashLoadMemory(void *data, int size)
|
||||
{
|
||||
SplashStream stream;
|
||||
@ -395,7 +395,7 @@ int SplashStreamInitMemory(SplashStream * pStream, void* pData, int size) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
JNIEXPORT int JNICALL
|
||||
JNIEXPORT int
|
||||
SplashGetScaledImgNameMaxPstfixLen(const char *fileName){
|
||||
return strlen(fileName) + strlen("@100pct") + 1;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,29 +30,29 @@
|
||||
#include "splashscreen_gfx.h"
|
||||
#include "jni.h"
|
||||
|
||||
JNIEXPORT int JNICALL
|
||||
JNIEXPORT int
|
||||
SplashLoadMemory(void *pdata, int size); /* requires preloading the file */
|
||||
|
||||
JNIEXPORT int JNICALL
|
||||
JNIEXPORT int
|
||||
SplashLoadFile(const char *filename); // FIXME: range checking for SplashLoadMemory
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
JNIEXPORT void
|
||||
SplashInit(void);
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
JNIEXPORT void
|
||||
SplashClose(void);
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
JNIEXPORT void
|
||||
SplashSetScaleFactor(float);
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
JNIEXPORT jboolean
|
||||
SplashGetScaledImageName(const char*, const char*,
|
||||
float*, char*, const size_t scaledImageNameLength);
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
JNIEXPORT void
|
||||
SplashSetFileJarName(const char* fileName, const char* jarName);
|
||||
|
||||
JNIEXPORT int JNICALL
|
||||
JNIEXPORT int
|
||||
SplashGetScaledImgNameMaxPstfixLen(const char*);
|
||||
typedef struct SplashImage
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -801,7 +801,7 @@ SplashReconfigure(Splash * splash) {
|
||||
sendctl(splash, SPLASHCTL_RECONFIGURE);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
JNIEXPORT jboolean
|
||||
SplashGetScaledImageName(const char* jarName, const char* fileName,
|
||||
float *scaleFactor, char *scaledImgName,
|
||||
const size_t scaledImageNameLength)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -574,7 +574,7 @@ SplashReconfigure(Splash * splash)
|
||||
PostMessage(splash->hWnd, WM_SPLASHRECONFIGURE, 0, 0);
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
JNIEXPORT jboolean
|
||||
SplashGetScaledImageName(const char* jarName, const char* fileName,
|
||||
float *scaleFactor, char *scaleImageName,
|
||||
const size_t scaledImageLength)
|
||||
|
Loading…
x
Reference in New Issue
Block a user