Package jnr.ffi

Class Platform.Linux

    • Constructor Detail

      • Linux

        public Linux()
    • Method Detail

      • locateLibrary

        public java.lang.String locateLibrary​(java.lang.String libName,
                                              java.util.List<java.lang.String> libraryPaths)
        Description copied from class: Platform
        Searches through a list of directories for a native library.
        Overrides:
        locateLibrary in class Platform
        Parameters:
        libName - the base name (e.g. "c") of the library to locate
        libraryPaths - the list of directories to search
        Returns:
        the path of the library
      • compareVersions

        private static int compareVersions​(int[] version1,
                                           int[] version2)
      • mapLibraryName

        public java.lang.String mapLibraryName​(java.lang.String libName)
        Description copied from class: Platform
        Maps from a generic library name (e.g. "c") to the platform specific library name.
        Overrides:
        mapLibraryName in class Platform
        Parameters:
        libName - The library name to map
        Returns:
        The mapped library name.