modules/jdk.packager/src/main/native/library/common/PosixPlatform.h

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2014, 2016, Oracle and/or its affiliates. * All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without --- 1,7 ---- /* ! * Copyright (c) 2014, 2017, Oracle and/or its affiliates. * All rights reserved. Use is subject to license terms. * * This file is available and licensed under the following license: * * Redistribution and use in source and binary forms, with or without
*** 38,57 **** --- 38,66 ---- #ifndef POSIXPLATFORM_H #define POSIXPLATFORM_H class PosixPlatform : virtual public Platform{ + protected: + TString SingleInstanceFile; + + virtual bool mkdirs(const char* path); + virtual bool getTmpDir(char* path, int len); + + virtual const char* getTmpDirString() = 0; + public: PosixPlatform(void); virtual ~PosixPlatform(void); public: virtual MessageResponse ShowResponseMessage(TString title, TString description); //virtual MessageResponse ShowResponseMessageB(TString description); virtual void SetCurrentDirectory(TString Value); + virtual bool CheckForSingleInstance(TString Name); virtual Module LoadLibrary(TString FileName); virtual void FreeLibrary(Module AModule); virtual Procedure GetProcAddress(Module AModule, std::string MethodName); virtual std::vector<TString> GetLibraryImports(const TString FileName); virtual std::vector<TString> FilterOutRuntimeDependenciesForPlatform(std::vector<TString> Imports);