-
Notifications
You must be signed in to change notification settings - Fork 18
/
helper.h
72 lines (60 loc) · 1.73 KB
/
helper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef helpers_h
#define helpers_h 1
#include <stdlib.h>
VixError vix_job_wait(VixHandle jobHandle);
VixError get_vix_handle(
VixHandle jobHandle,
VixPropertyID prop1,
VixHandle* handle,
VixPropertyID prop2);
VixError alloc_vm_pwd_proplist(
VixHandle handle,
VixHandle* resultHandle,
char* password);
VixError get_screenshot_bytes(
VixHandle handle,
int* byte_count,
char* screen_bits);
VixError get_program_output(
VixHandle jobHandle,
uint64* pid,
int* elapsedTime,
int* exitCode);
VixError get_shared_folder(
VixHandle jobHandle,
char* folderName,
char* folderHostPath,
int* folderFlags);
VixError get_file_info(VixHandle jobHandle,
int64* fsize,
int* flags,
int64* modtime);
VixError get_guest_file(VixHandle jobHandle,
int i,
char* name,
int64* size,
int64* modtime,
int* flags);
VixError get_guest_process(VixHandle jobHandle,
int i,
char* name,
uint64* pid,
char* owner,
char* cmdline,
Bool* is_debugged,
int* start_time);
void find_items_callback(
VixHandle jobHandle,
VixEventType eventType,
VixHandle moreEventInfo,
void* goCallback);
VixError get_num_shared_folders(VixHandle jobHandle, int* numSharedFolders);
VixError read_variable(VixHandle jobHandle, char** readValue);
VixError get_temp_filepath(VixHandle jobHandle, char* tempFilePath);
VixError is_file_or_dir(VixHandle jobHandle, int* result);
VixError get_vm_url(char* url, VixHandle moreEvtInfo);
VixError get_property(VixHandle handle, VixPropertyID id, void* value);
#endif