edu.ntnu.item.jt.VMware
Interface VixInterface

All Superinterfaces:
Library

public interface VixInterface
extends Library

Interface to the functions defined in the vix.dll API. For more information about each of these functions, see the VIX API reference guide at http://pubs.vmware.com/vix-api/ReferenceGuide/. None of the functions listed here are given any further documentation.

Author:
Jøran Vagnby Lillesand

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.jna.Library
Library.Handler
 
Field Summary
static VixInterface INSTANCE
           
 
Fields inherited from interface com.sun.jna.Library
OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
 
Method Summary
 String Vix_GetErrorText(long err, String locale)
           
 void Vix_ReleaseHandle(int handle)
           
 int VixHost_Connect(int apiVersion, int hostType, String hostName, int hostPort, String userName, String password, int options, int propertyListHandle, Callback callbackProc, byte[] clientData)
           
 void VixHost_Disconnect(int hostHandle)
           
 long VixJob_Wait(int jobHandle, int firstPropertyID, int[] handle, int propertyNone)
           
 int VixVM_CopyFileFromGuestToHost(int vmHandle, String guestPathName, String hostPathName, int options, int propertyListHandle, Callback callbackProc, byte[] clientData)
           
 int VixVM_CopyFileFromHostToGuest(int vmHandle, String hostPathName, String guestPathName, int options, int propertyListHandle, Callback callbackProc, byte[] clientData)
           
 int VixVM_CreateSnapshot(int vmHandle, String name, String description, int options, int propertyListHandle, Callback callbackProc, byte[] clientData)
           
 int VixVM_GetNumRootSnapshots(int vmHandle, int[] result)
          This function is not supported for VMware Server in VIX 1.0 and 1.1 public int VixVM_CreateDirectoryInGuest(int vmHandle, String pathName, int propertyListHandle, Callback callbackProc, byte[] clientData);
 int VixVM_GetRootSnapshot(int vmHandle, int index, int[] snapshotHandle)
           
 int VixVM_LoginInGuest(int vmHandle, String userName, String password, int options, Callback callbackProc, byte[] clientData)
           
 int VixVM_Open(int hostHandle, String vmxFilePathName, Callback callbackProc, byte[] clientData)
           
 int VixVM_PowerOff(int vmHandle, int powerOffOptions, Callback callbackProc, byte[] clientData)
           
 int VixVM_PowerOn(int vmHandle, int powerOnOptions, int propertyListHandle, Callback callbackProc, byte[] clientData)
           
 int VixVM_RevertToSnapshot(int vmHandle, int snapshotHandle, int options, int propertyListHandle, Callback callbackProc, byte[] clientData)
           
 int VixVM_RunProgramInGuest(int vmHandle, String guestProgramName, String commandLineArgs, int options, int propertyListHandle, Callback callbackProc, byte[] clientData)
           
 int VixVM_WaitForToolsInGuest(int vmHandle, int timeoutInSeconds, Callback callbackProc, byte[] clientData)
           
 

Field Detail

INSTANCE

static final VixInterface INSTANCE
Method Detail

VixHost_Connect

int VixHost_Connect(int apiVersion,
                    int hostType,
                    String hostName,
                    int hostPort,
                    String userName,
                    String password,
                    int options,
                    int propertyListHandle,
                    Callback callbackProc,
                    byte[] clientData)

VixHost_Disconnect

void VixHost_Disconnect(int hostHandle)

Vix_ReleaseHandle

void Vix_ReleaseHandle(int handle)

VixJob_Wait

long VixJob_Wait(int jobHandle,
                 int firstPropertyID,
                 int[] handle,
                 int propertyNone)

VixVM_Open

int VixVM_Open(int hostHandle,
               String vmxFilePathName,
               Callback callbackProc,
               byte[] clientData)

VixVM_PowerOn

int VixVM_PowerOn(int vmHandle,
                  int powerOnOptions,
                  int propertyListHandle,
                  Callback callbackProc,
                  byte[] clientData)

VixVM_PowerOff

int VixVM_PowerOff(int vmHandle,
                   int powerOffOptions,
                   Callback callbackProc,
                   byte[] clientData)

VixVM_LoginInGuest

int VixVM_LoginInGuest(int vmHandle,
                       String userName,
                       String password,
                       int options,
                       Callback callbackProc,
                       byte[] clientData)

VixVM_WaitForToolsInGuest

int VixVM_WaitForToolsInGuest(int vmHandle,
                              int timeoutInSeconds,
                              Callback callbackProc,
                              byte[] clientData)

VixVM_RunProgramInGuest

int VixVM_RunProgramInGuest(int vmHandle,
                            String guestProgramName,
                            String commandLineArgs,
                            int options,
                            int propertyListHandle,
                            Callback callbackProc,
                            byte[] clientData)

VixVM_CopyFileFromHostToGuest

int VixVM_CopyFileFromHostToGuest(int vmHandle,
                                  String hostPathName,
                                  String guestPathName,
                                  int options,
                                  int propertyListHandle,
                                  Callback callbackProc,
                                  byte[] clientData)

VixVM_CopyFileFromGuestToHost

int VixVM_CopyFileFromGuestToHost(int vmHandle,
                                  String guestPathName,
                                  String hostPathName,
                                  int options,
                                  int propertyListHandle,
                                  Callback callbackProc,
                                  byte[] clientData)

VixVM_GetRootSnapshot

int VixVM_GetRootSnapshot(int vmHandle,
                          int index,
                          int[] snapshotHandle)

VixVM_RevertToSnapshot

int VixVM_RevertToSnapshot(int vmHandle,
                           int snapshotHandle,
                           int options,
                           int propertyListHandle,
                           Callback callbackProc,
                           byte[] clientData)

VixVM_CreateSnapshot

int VixVM_CreateSnapshot(int vmHandle,
                         String name,
                         String description,
                         int options,
                         int propertyListHandle,
                         Callback callbackProc,
                         byte[] clientData)

VixVM_GetNumRootSnapshots

int VixVM_GetNumRootSnapshots(int vmHandle,
                              int[] result)
This function is not supported for VMware Server in VIX 1.0 and 1.1 public int VixVM_CreateDirectoryInGuest(int vmHandle, String pathName, int propertyListHandle, Callback callbackProc, byte[] clientData);


Vix_GetErrorText

String Vix_GetErrorText(long err,
                        String locale)