< prev index next >

src/java.desktop/share/native/libsplashscreen/splashscreen_impl.h

Print this page
rev 49551 : 8201226: missing JNIEXPORT / JNICALL at some places in function declarations/implementations


 115     pthread_mutex_t lock;
 116     int controlpipe[2];
 117     NSWindow * window;
 118 #endif
 119 } Splash;
 120 
 121 /* various shared and/or platform dependent splash screen functions */
 122 
 123 /*************** Platform-specific ******************/
 124 
 125 /* To be implemented in the platform-specific native code. */
 126 
 127 
 128 void SplashInitPlatform(Splash * splash);
 129 void SplashCreateThread(Splash * splash);
 130 void SplashCleanupPlatform(Splash * splash);
 131 void SplashDonePlatform(Splash * splash);
 132 
 133 unsigned SplashTime();
 134 char* SplashConvertStringAlloc(const char* in, int *size);
 135 jboolean SplashGetScaledImageName(const char* jarName,
 136                  const char* fileName, float *scaleFactor,
 137                  char *scaleImageName, const size_t scaledImageNameLength);
 138 void SplashLock(Splash * splash);
 139 void SplashUnlock(Splash * splash);
 140 
 141 void SplashInitFrameShape(Splash * splash, int imageIndex);
 142 
 143 void SplashUpdate(Splash * splash);
 144 void SplashReconfigure(Splash * splash);
 145 void SplashClosePlatform(Splash * splash);
 146 
 147 
 148 
 149 /********************* Shared **********************/
 150 Splash *SplashGetInstance();
 151 
 152 int SplashIsStillLooping(Splash * splash);
 153 void SplashNextFrame(Splash * splash);
 154 void SplashStart(Splash * splash);
 155 void SplashDone(Splash * splash);
 156 
 157 void SplashUpdateScreenData(Splash * splash);
 158 
 159 void SplashCleanup(Splash * splash);
 160 void SplashSetScaleFactor(float scaleFactor);
 161 int  SplashGetScaledImgNameMaxPstfixLen(const char *fileName);
 162 void cleanUp(char *fName, char *xName, char *pctName, float *scaleFactor);
 163 jboolean GetScaledImageName(const char *fileName, char *scaledImgName,
 164                   float *scaleFactor, const size_t scaledImageLength);
 165 typedef struct SplashStream {
 166     int (*read)(void* pStream, void* pData, int nBytes);
 167     int (*peek)(void* pStream);
 168     void (*close)(void* pStream);
 169     union {
 170         struct {
 171             FILE* f;
 172         } stdio;
 173         struct {
 174             unsigned char* pData;
 175             unsigned char* pDataEnd;
 176         } mem;
 177     } arg;
 178 } SplashStream;
 179 
 180 int SplashStreamInitFile(SplashStream * stream, const char* filename);
 181 int SplashStreamInitMemory(SplashStream * stream, void * pData, int size);


 115     pthread_mutex_t lock;
 116     int controlpipe[2];
 117     NSWindow * window;
 118 #endif
 119 } Splash;
 120 
 121 /* various shared and/or platform dependent splash screen functions */
 122 
 123 /*************** Platform-specific ******************/
 124 
 125 /* To be implemented in the platform-specific native code. */
 126 
 127 
 128 void SplashInitPlatform(Splash * splash);
 129 void SplashCreateThread(Splash * splash);
 130 void SplashCleanupPlatform(Splash * splash);
 131 void SplashDonePlatform(Splash * splash);
 132 
 133 unsigned SplashTime();
 134 char* SplashConvertStringAlloc(const char* in, int *size);



 135 void SplashLock(Splash * splash);
 136 void SplashUnlock(Splash * splash);
 137 
 138 void SplashInitFrameShape(Splash * splash, int imageIndex);
 139 
 140 void SplashUpdate(Splash * splash);
 141 void SplashReconfigure(Splash * splash);
 142 void SplashClosePlatform(Splash * splash);
 143 
 144 
 145 
 146 /********************* Shared **********************/
 147 Splash *SplashGetInstance();
 148 
 149 int SplashIsStillLooping(Splash * splash);
 150 void SplashNextFrame(Splash * splash);
 151 void SplashStart(Splash * splash);
 152 void SplashDone(Splash * splash);
 153 
 154 void SplashUpdateScreenData(Splash * splash);
 155 
 156 void SplashCleanup(Splash * splash);
 157 

 158 void cleanUp(char *fName, char *xName, char *pctName, float *scaleFactor);
 159 jboolean GetScaledImageName(const char *fileName, char *scaledImgName,
 160                   float *scaleFactor, const size_t scaledImageLength);
 161 typedef struct SplashStream {
 162     int (*read)(void* pStream, void* pData, int nBytes);
 163     int (*peek)(void* pStream);
 164     void (*close)(void* pStream);
 165     union {
 166         struct {
 167             FILE* f;
 168         } stdio;
 169         struct {
 170             unsigned char* pData;
 171             unsigned char* pDataEnd;
 172         } mem;
 173     } arg;
 174 } SplashStream;
 175 
 176 int SplashStreamInitFile(SplashStream * stream, const char* filename);
 177 int SplashStreamInitMemory(SplashStream * stream, void * pData, int size);
< prev index next >