src/java.desktop/share/native/libsplashscreen/splashscreen_impl.h
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 49843 e0af66d6e968
equal deleted inserted replaced
49439:bf53d82a51e5 49440:396ea30afbd5
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    28 
    28 
    29 #include "splashscreen_config.h"
    29 #include "splashscreen_config.h"
    30 #include "splashscreen_gfx.h"
    30 #include "splashscreen_gfx.h"
    31 #include "jni.h"
    31 #include "jni.h"
    32 
    32 
    33 SPLASHEXPORT int SplashLoadMemory(void *pdata, int size); /* requires preloading the file */
    33 JNIEXPORT int JNICALL
    34 SPLASHEXPORT int SplashLoadFile(const char *filename);  // FIXME: range checking for SplashLoadMemory
    34 SplashLoadMemory(void *pdata, int size); /* requires preloading the file */
    35 
    35 
    36 SPLASHEXPORT void SplashInit(void);
    36 JNIEXPORT int JNICALL
    37 SPLASHEXPORT void SplashClose(void);
    37 SplashLoadFile(const char *filename);  // FIXME: range checking for SplashLoadMemory
    38 
    38 
    39 SPLASHEXPORT void SplashSetScaleFactor(float);
    39 JNIEXPORT void JNICALL
    40 SPLASHEXPORT jboolean SplashGetScaledImageName(const char*, const char*,
    40 SplashInit(void);
       
    41 
       
    42 JNIEXPORT void JNICALL
       
    43 SplashClose(void);
       
    44 
       
    45 JNIEXPORT void JNICALL
       
    46 SplashSetScaleFactor(float);
       
    47 
       
    48 JNIEXPORT jboolean JNICALL
       
    49 SplashGetScaledImageName(const char*, const char*,
    41                               float*, char*, const size_t scaledImageNameLength);
    50                               float*, char*, const size_t scaledImageNameLength);
    42 
    51 
    43 SPLASHEXPORT void
    52 JNIEXPORT void JNICALL
    44 SplashSetFileJarName(const char* fileName, const char* jarName);
    53 SplashSetFileJarName(const char* fileName, const char* jarName);
    45 
    54 
    46 SPLASHEXPORT int
    55 JNIEXPORT int JNICALL
    47 SplashGetScaledImgNameMaxPstfixLen(const char*);
    56 SplashGetScaledImgNameMaxPstfixLen(const char*);
    48 typedef struct SplashImage
    57 typedef struct SplashImage
    49 {
    58 {
    50     rgbquad_t *bitmapBits;
    59     rgbquad_t *bitmapBits;
    51     int delay;                  /* before next image display, in msec                                                       */
    60     int delay;                  /* before next image display, in msec                                                       */