#include "zentific-xmlrpc.h" #include "zentific-defines.h" #include "zentific-types.h" #include "zentific-common.h" GSList *_getVMvifs(char *uuid); GSList *_getVMdisks(char *uuid); gboolean _isVM(char *uuid); gboolean _createVM(char *uuid); int getLatestVMrev(char *uuid, char *type); int nextRevision(char *type); gboolean saveVMrevision(char *uuid, int uid, char *name, char *description); VM * _getVM(char *uuid); VM *_getVMbyRev(char *uuid, int revision); int _getNumVMvifs(char *uuid); GSList *getVMvifs(char *uuid); NETIF *getVifByMAC(char *uuid, char *mac); gboolean _updateVmConfig(VM *vm); gboolean _updateVifConfig(char *uuid, GSList *input_vifs); gboolean _updateVifStats(char *uuid, GSList *vifs); gboolean _updateDiskConfig(char *uuid, GSList *disks); gboolean _updateDiskStats(char *uuid, GSList *disks); gboolean _updateVmStats(VM *vm); gboolean _updateVm(GSList *vms); gboolean _handleVmStateChange(VM *vm); //FIXME in flux int action(char *uuid, char *action, char **extra, gboolean *error); gboolean start(char *uuid); gboolean shutdownVM(char *uuid); gboolean destroy(char *uuid); gboolean reboot(char *uuid); gboolean pauseVM(char *uuid, gboolean *error); gboolean unpause(char *uuid); gboolean save(char *uuid); gboolean restore(char *uuid); gboolean migrate(char *uuid, char *destination); int _connectTextConsole(struct _zentific_session *session, char *uuid); int _connectGraphicalConsole(struct _zentific_session *session, char *uuid); char *_getConsoleLock(char *uuid); gboolean _disconnectConsole(char *uuid, char *type); gboolean _hasConsoleLock(char *uuid, char *type); char *_getConsoleLockUser(char *uuid, char *type); char *_getConsoleLockSession(char *uuid, char *type); gboolean _acquireConsoleLock(char *uuid, struct _zentific_session *session, char *type); gboolean _releaseConsoleLock(char *uuid, char *sessionid, char *type); char *_getConsoleNodeHost(char *uuid, char *type); char * _getVMattribute(char *uuid, char *attribute);