< prev index next >

src/jdk.jpackage/share/native/libapplauncher/Library.h

Print this page




  26 #ifndef LIBRARY_H
  27 #define LIBRARY_H
  28 
  29 #include "PlatformDefs.h"
  30 //#include "Platform.h"
  31 #include "OrderedMap.h"
  32 
  33 #include "jni.h"
  34 #include <stdio.h>
  35 #include <stdlib.h>
  36 #include <memory.h>
  37 #include <string>
  38 #include <map>
  39 #include <list>
  40 #include <vector>
  41 #include <fstream>
  42 
  43 using namespace std;
  44 
  45 // Private typedef for function pointer casting




  46 #define LAUNCH_FUNC "JLI_Launch"


  47 
  48 typedef int (JNICALL *JAVA_CREATE)(int argc, char ** argv,
  49         int jargc, const char** jargv,
  50         int appclassc, const char** appclassv,
  51         const char* fullversion,
  52         const char* dotversion,
  53         const char* pname,
  54         const char* lname,
  55         jboolean javaargs,
  56         jboolean cpwildcard,
  57         jboolean javaw,
  58         jint ergo);
  59 
  60 class Library {
  61 private:
  62     std::vector<TString> *FDependentLibraryNames;
  63     std::vector<Library*> *FDependenciesLibraries;
  64     Module FModule;
  65     std::string fname;
  66 




  26 #ifndef LIBRARY_H
  27 #define LIBRARY_H
  28 
  29 #include "PlatformDefs.h"
  30 //#include "Platform.h"
  31 #include "OrderedMap.h"
  32 
  33 #include "jni.h"
  34 #include <stdio.h>
  35 #include <stdlib.h>
  36 #include <memory.h>
  37 #include <string>
  38 #include <map>
  39 #include <list>
  40 #include <vector>
  41 #include <fstream>
  42 
  43 using namespace std;
  44 
  45 // Private typedef for function pointer casting
  46 
  47 #if defined(_WIN32) && !defined(_WIN64)
  48 #define LAUNCH_FUNC "_JLI_Launch@56"
  49 #else
  50 #define LAUNCH_FUNC "JLI_Launch"
  51 #endif
  52 
  53 
  54 typedef int (JNICALL *JAVA_CREATE)(int argc, char ** argv,
  55         int jargc, const char** jargv,
  56         int appclassc, const char** appclassv,
  57         const char* fullversion,
  58         const char* dotversion,
  59         const char* pname,
  60         const char* lname,
  61         jboolean javaargs,
  62         jboolean cpwildcard,
  63         jboolean javaw,
  64         jint ergo);
  65 
  66 class Library {
  67 private:
  68     std::vector<TString> *FDependentLibraryNames;
  69     std::vector<Library*> *FDependenciesLibraries;
  70     Module FModule;
  71     std::string fname;
  72 


< prev index next >