< prev index next >
src/java.desktop/share/native/libsplashscreen/splashscreen_impl.h
Print this page
*** 26,48 ****
#ifndef SPLASHSCREEN_IMPL_H
#define SPLASHSCREEN_IMPL_H
#include "splashscreen_config.h"
#include "splashscreen_gfx.h"
SPLASHEXPORT int SplashLoadMemory(void *pdata, int size); /* requires preloading the file */
SPLASHEXPORT int SplashLoadFile(const char *filename); // FIXME: range checking for SplashLoadMemory
SPLASHEXPORT void SplashInit(void);
SPLASHEXPORT void SplashClose(void);
SPLASHEXPORT void SplashSetScaleFactor(float);
! SPLASHEXPORT char* SplashGetScaledImageName(const char*, const char*, float*);
SPLASHEXPORT void
SplashSetFileJarName(const char* fileName, const char* jarName);
typedef struct SplashImage
{
rgbquad_t *bitmapBits;
int delay; /* before next image display, in msec */
#if defined(WITH_WIN32)
--- 26,52 ----
#ifndef SPLASHSCREEN_IMPL_H
#define SPLASHSCREEN_IMPL_H
#include "splashscreen_config.h"
#include "splashscreen_gfx.h"
+ #include "jni.h"
SPLASHEXPORT int SplashLoadMemory(void *pdata, int size); /* requires preloading the file */
SPLASHEXPORT int SplashLoadFile(const char *filename); // FIXME: range checking for SplashLoadMemory
SPLASHEXPORT void SplashInit(void);
SPLASHEXPORT void SplashClose(void);
SPLASHEXPORT void SplashSetScaleFactor(float);
! SPLASHEXPORT jboolean SplashGetScaledImageName(const char*, const char*,
! float*, char*, const size_t scaledImageNameLength);
SPLASHEXPORT void
SplashSetFileJarName(const char* fileName, const char* jarName);
+ SPLASHEXPORT int
+ SplashGetScaledImgNameMaxPstfixLen(const char*);
typedef struct SplashImage
{
rgbquad_t *bitmapBits;
int delay; /* before next image display, in msec */
#if defined(WITH_WIN32)
*** 117,129 ****
void SplashCleanupPlatform(Splash * splash);
void SplashDonePlatform(Splash * splash);
unsigned SplashTime();
char* SplashConvertStringAlloc(const char* in, int *size);
! char* SplashGetScaledImageName(const char* jarName,
! const char* fileName, float *scaleFactor);
!
void SplashLock(Splash * splash);
void SplashUnlock(Splash * splash);
void SplashInitFrameShape(Splash * splash, int imageIndex);
--- 121,133 ----
void SplashCleanupPlatform(Splash * splash);
void SplashDonePlatform(Splash * splash);
unsigned SplashTime();
char* SplashConvertStringAlloc(const char* in, int *size);
! jboolean SplashGetScaledImageName(const char* jarName,
! const char* fileName, float *scaleFactor,
! char *scaleImageName, const size_t scaledImageNameLength);
void SplashLock(Splash * splash);
void SplashUnlock(Splash * splash);
void SplashInitFrameShape(Splash * splash, int imageIndex);
*** 143,153 ****
void SplashUpdateScreenData(Splash * splash);
void SplashCleanup(Splash * splash);
void SplashSetScaleFactor(float scaleFactor);
!
typedef struct SplashStream {
int (*read)(void* pStream, void* pData, int nBytes);
int (*peek)(void* pStream);
void (*close)(void* pStream);
--- 147,157 ----
void SplashUpdateScreenData(Splash * splash);
void SplashCleanup(Splash * splash);
void SplashSetScaleFactor(float scaleFactor);
! int SplashGetScaledImgNameMaxPstfixLen(const char *fileName);
typedef struct SplashStream {
int (*read)(void* pStream, void* pData, int nBytes);
int (*peek)(void* pStream);
void (*close)(void* pStream);
< prev index next >