Skip to content

Commit 9118ed5

Browse files
committed
Added static helper method to Library interface for getting the wrapped NativeLibrary instance.
1 parent 4f94c57 commit 9118ed5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/com/sun/jna/Library.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,8 @@ public Object invoke(Object proxy, Method method, Object[] inArgs)
271271
}
272272
}
273273
}
274+
275+
static NativeLibrary getNativeLibrary(final Library library) {
276+
return ((Handler)Proxy.getInvocationHandler(library)).getNativeLibrary();
277+
}
274278
}

0 commit comments

Comments
 (0)