diff graal/com.oracle.nfi/src/com/oracle/nfi/api/NativeFunctionInterface.java @ 21614:2f92172fa320

Truffle and NFI implementations are now accessed via JVMCI services instead of being hard coded in the VM (JBS:GRAAL-51)
author Doug Simon <doug.simon@oracle.com>
date Sun, 31 May 2015 13:42:47 +0200
parents e92bc7d8e2dd
children 91b861398ad6
line wrap: on
line diff
--- a/graal/com.oracle.nfi/src/com/oracle/nfi/api/NativeFunctionInterface.java	Sun May 31 12:32:15 2015 +0200
+++ b/graal/com.oracle.nfi/src/com/oracle/nfi/api/NativeFunctionInterface.java	Sun May 31 13:42:47 2015 +0200
@@ -22,12 +22,14 @@
  */
 package com.oracle.nfi.api;
 
+import com.oracle.jvmci.service.*;
+
 /**
  * Interface to get a {@linkplain NativeFunctionHandle handle} or {@linkplain NativeFunctionPointer
  * pointer} to a native function or a {@linkplain NativeLibraryHandle handle} to an open native
  * library.
  */
-public interface NativeFunctionInterface {
+public interface NativeFunctionInterface extends Service {
 
     /**
      * Resolves and returns a handle to an open native library. This method will open the library