< prev index next >
src/java.base/share/classes/java/nicl/metadata/NativeHeader.java
Print this page
*** 27,39 ****
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RUNTIME)
public @interface NativeHeader {
// the header file corresponding to this native library interface
! String headerPath() default "";
// zero or more libraries
String[] libraries() default {};
// zero or more library paths
String[] libraryPaths() default {};
}
--- 27,44 ----
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RUNTIME)
+ /**
+ * Annotation for every native header file.
+ */
public @interface NativeHeader {
// the header file corresponding to this native library interface
! String path() default "";
// zero or more libraries
String[] libraries() default {};
// zero or more library paths
String[] libraryPaths() default {};
+ // declarations in this header file
+ String declarations() default "";
}
< prev index next >