2 messages in net.java.dev.jna.usersRe: [jna-users] Can you have differen...
FromSent OnAttachments
Alan SnyderSep 10, 2008 5:14 pm 
Wayne MeissnerSep 10, 2008 5:18 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Can you have different Java classes load the same Native.loadLibrary()?Actions...
From:Wayne Meissner (wmei@gmail.com)
Date:Sep 10, 2008 5:18:30 pm
List:net.java.dev.jna.users

Yep, you can have as many interfaces pointing to the one library as you like.

2008/9/11 Alan Snyder <ala@tidebreaksys.com>:

Just a quick question. Is doing something like this OK?

public interface CarbonA extends Library{

CarbonA INSTANCE = (CarbonA)Native.loadLibrary("Carbon",CarbonA.class); : : }

public interface CarbonB extends Library{ CarbonB INSTANCE = (CarbonB) Native.loadLibrary("Carbon",CarbonB.class); : <different interface functions from CarbonA but using same Mac Framework> : }