4 messages in net.java.dev.jna.usersHelp mapping VMware VIX libraries (va...
FromSent OnAttachments
step...@one-dash.comSep 27, 2007 7:57 am 
Timothy WallSep 27, 2007 8:28 am 
Timothy WallSep 27, 2007 10:13 am 
Stephen ConnollySep 27, 2007 10:44 am 
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:Help mapping VMware VIX libraries (varargs related)Actions...
From:step...@one-dash.com (step@one-dash.com)
Date:Sep 27, 2007 7:57:34 am
List:net.java.dev.jna.users

Here is one of the critical methods I need to call:

/* * Synchronization functions * (used to detect when an asynch operation completes). */

VixError VixJob_Wait(VixHandle jobHandle, VixPropertyID firstPropertyID, ...);

All of these typedefs are for int's... so this is realy

int VixJob_Wait(int jobHandle, int firstPropertyID, ...);

Now for the fun...

You call this method passing a series of pairs of value, pointer terminated with a single 0... e.g.

int hostHandle; err = VixJob_Wait(jobHandle, 3010, &hostHandle, 0);

or

int handle; char buf[2048]; err = VixJob_Wait(jobHandle, 3010, &hostHandle, 3005, buf, 0);

How do I implement this with JNA... or is it Sorry Out Of Luck

-Stephen Connolly