src/java.base/share/native/libjli/manifest_info.h
branchihse-remove-mapfiles-branch
changeset 56106 40e61db323c2
parent 47216 71c04702a3d5
child 56721 01b558efd286
equal deleted inserted replaced
56105:749e0ffa206f 56106:40e61db323c2
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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
    25 
    25 
    26 #ifndef _MANIFEST_INFO_H
    26 #ifndef _MANIFEST_INFO_H
    27 #define _MANIFEST_INFO_H
    27 #define _MANIFEST_INFO_H
    28 
    28 
    29 #include <sys/types.h>
    29 #include <sys/types.h>
       
    30 #include "jni.h"
    30 
    31 
    31 /*
    32 /*
    32  * Zip file header signatures
    33  * Zip file header signatures
    33  */
    34  */
    34 #define SIGSIZ 4                    /* size of all header signatures */
    35 #define SIGSIZ 4                    /* size of all header signatures */
   184  */
   185  */
   185 int     JLI_ParseManifest(char *jarfile, manifest_info *info);
   186 int     JLI_ParseManifest(char *jarfile, manifest_info *info);
   186 void    *JLI_JarUnpackFile(const char *jarfile, const char *filename,
   187 void    *JLI_JarUnpackFile(const char *jarfile, const char *filename,
   187                 int *size);
   188                 int *size);
   188 void    JLI_FreeManifest(void);
   189 void    JLI_FreeManifest(void);
       
   190 
       
   191 JNIEXPORT
   189 int     JLI_ManifestIterate(const char *jarfile, attribute_closure ac,
   192 int     JLI_ManifestIterate(const char *jarfile, attribute_closure ac,
   190                 void *user_data);
   193                 void *user_data);
   191 
   194 
   192 #endif  /* _MANIFEST_INFO_H */
   195 #endif  /* _MANIFEST_INFO_H */