virtualbox-com 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/examples/simple.rb +10 -1
- data/ext/virtualbox-com/4.1/generated.inc +229 -229
- data/ext/virtualbox-com/4.1/vbox.c +81 -3
- data/ext/virtualbox-com/4.2/generated.inc +248 -248
- data/ext/virtualbox-com/4.2/vbox.c +81 -3
- data/ext/virtualbox-com/vbox.c +81 -3
- data/lib/virtualbox/com/model/4.1-generated.rb +31 -31
- data/lib/virtualbox/com/model/4.2-generated.rb +30 -30
- data/lib/virtualbox/com/version.rb +1 -1
- data/scripts/sig.rb +27 -10
- data/scripts/to_c.rb +14 -13
- data/scripts/xidl-conv.rb +1 -1
- metadata +4 -4
@@ -50,6 +50,7 @@ static VALUE oMin_s16 = Qundef;
|
|
50
50
|
static VALUE oMin_s32 = Qundef;
|
51
51
|
static VALUE oMin_s64 = Qundef;
|
52
52
|
static VALUE oExceptionMap = Qundef;
|
53
|
+
static VALUE oUUIDparser = Qnil;
|
53
54
|
|
54
55
|
static VALUE sYes = Qundef;
|
55
56
|
static VALUE sNo = Qundef;
|
@@ -78,6 +79,7 @@ static ID _symbol;
|
|
78
79
|
static ID _value;
|
79
80
|
static ID _const_get;
|
80
81
|
static ID _new;
|
82
|
+
static ID _call;
|
81
83
|
|
82
84
|
static rb_encoding * _UTF8;
|
83
85
|
|
@@ -105,12 +107,40 @@ static void ns_check(uint32_t rcode) {
|
|
105
107
|
}
|
106
108
|
}
|
107
109
|
|
110
|
+
|
111
|
+
static VALUE with_uuid_parser(VALUE self, VALUE val) {
|
112
|
+
if (!NIL_P(val) &&
|
113
|
+
rb_obj_is_instance_of(val, rb_cProc) != Qtrue)
|
114
|
+
rb_raise(rb_eArgError, "nil, proc, or lambda expected");
|
115
|
+
return oUUIDparser = val;
|
116
|
+
}
|
117
|
+
|
118
|
+
static VALUE uuid_parser_calling(VALUE arg) {
|
119
|
+
return rb_funcall(oUUIDparser, _call, 1, arg);
|
120
|
+
}
|
121
|
+
|
122
|
+
static VALUE to_uuid(VALUE val) {
|
123
|
+
int state = 0;
|
124
|
+
|
125
|
+
StringValue(val);
|
126
|
+
if (oUUIDparser != Qnil && oUUIDparser != Qundef) {
|
127
|
+
val = rb_protect(uuid_parser_calling, val, &state);
|
128
|
+
if (state) {
|
129
|
+
rb_warn("Returning nil for uuid and discarding exception raised during uuid parsing to avoid memory leak. Fix the parser so that no exception is raised.");
|
130
|
+
}
|
131
|
+
}
|
132
|
+
return val;
|
133
|
+
}
|
134
|
+
|
108
135
|
/* Forward definition */
|
109
136
|
static void nsISupports_free(struct obj *ptr);
|
110
137
|
|
111
138
|
|
112
139
|
|
113
140
|
|
141
|
+
|
142
|
+
|
143
|
+
|
114
144
|
/*======================================================================*
|
115
145
|
* Internal classes
|
116
146
|
* They are an intermediate to
|
@@ -118,10 +148,11 @@ static void nsISupports_free(struct obj *ptr);
|
|
118
148
|
* - perform garbage collection
|
119
149
|
*======================================================================*/
|
120
150
|
|
151
|
+
|
121
152
|
/* Class: IID
|
122
153
|
*/
|
123
154
|
#define IID_STR_MAX 36 /* 8+1+4+1+4+1+4+1+12 */
|
124
|
-
static VALUE
|
155
|
+
static VALUE iid_new(iid_t *iid) {
|
125
156
|
iid_t *a_iid = ALLOC(iid_t);
|
126
157
|
*a_iid = *iid;
|
127
158
|
return Data_Wrap_Struct(cIID, 0, free, a_iid);
|
@@ -136,11 +167,16 @@ static VALUE iid__to_s(VALUE self) {
|
|
136
167
|
iid->m3[4], iid->m3[5], iid->m3[6], iid->m3[7]);
|
137
168
|
return rb_str_new(str, IID_STR_MAX);
|
138
169
|
}
|
170
|
+
static void iid__to_raw(VALUE self) {
|
171
|
+
iid_t *iid = DATA_PTR(self);
|
172
|
+
return rb_str_new((char *)iid, sizeof(iid_t));
|
173
|
+
}
|
139
174
|
static void iid_init(VALUE under) {
|
140
175
|
cIID = rb_define_class_under(under, "IID", rb_cObject);
|
141
176
|
no_instantiation(cIID);
|
142
|
-
rb_define_method(cIID, "to_s",
|
143
|
-
rb_define_method(cIID, "to_str", iid__to_s,
|
177
|
+
rb_define_method(cIID, "to_s", iid__to_s, 0);
|
178
|
+
rb_define_method(cIID, "to_str", iid__to_s, 0);
|
179
|
+
rb_define_method(cIID, "to_raw", iid__to_raw, 0);
|
144
180
|
}
|
145
181
|
|
146
182
|
|
@@ -334,6 +370,10 @@ static inline VALUE prepare_wstring(VALUE val) {
|
|
334
370
|
return wstring__new(cWString, val);
|
335
371
|
}
|
336
372
|
|
373
|
+
static inline VALUE prepare_uuid(val) {
|
374
|
+
return wstring__new(cWString, val);
|
375
|
+
}
|
376
|
+
|
337
377
|
static VALUE prepare_enum(VALUE val, VALUE klass) {
|
338
378
|
switch(rb_type(val)) {
|
339
379
|
case T_FIXNUM:
|
@@ -531,6 +571,25 @@ static VALUE prepare_array_wstring(VALUE ary) {
|
|
531
571
|
return res;
|
532
572
|
}
|
533
573
|
|
574
|
+
static VALUE prepare_array_uuid(VALUE ary) {
|
575
|
+
VALUE res = Qundef;
|
576
|
+
wstring_t *data = NULL;
|
577
|
+
long len, i;
|
578
|
+
|
579
|
+
ary = rb_ary_dup(ensure_array(ary));
|
580
|
+
len = RARRAY_LEN(ary);
|
581
|
+
data = ALLOC_N(wstring_t, len);
|
582
|
+
res = carray_new(len, data, ary);
|
583
|
+
|
584
|
+
for (i = 0 ; i < len ; i++) {
|
585
|
+
VALUE val = prepare_uuid(rb_ary_entry(ary, i));
|
586
|
+
rb_ary_store(ary, i, val);
|
587
|
+
data[i] = (wstring_t)DATA_PTR(val);
|
588
|
+
}
|
589
|
+
OBJ_FREEZE(ary);
|
590
|
+
return res;
|
591
|
+
}
|
592
|
+
|
534
593
|
static VALUE prepare_array_enum(VALUE ary, VALUE klass) {
|
535
594
|
VALUE res = Qundef;
|
536
595
|
uint32_t *data = NULL;
|
@@ -587,9 +646,11 @@ static VALUE prepare_array_interface(VALUE ary, VALUE klass) {
|
|
587
646
|
#define extract_bool(val, data) *(data) = (val) == Qtrue ? ~0 : 0
|
588
647
|
#define extract_ptr(val, data) *(data) = NUM2PTR(val)
|
589
648
|
#define extract_wstring(val, data) *(data) = DATA_PTR(val)
|
649
|
+
#define extract_uuid(val, data) *(data) = DATA_PTR(val)
|
590
650
|
#define extract_enum(val, data, klass) *(data) = NUM2UINT32(val)
|
591
651
|
#define extract_interface(val, data, klass) *(data) = DATA_PTR(val)
|
592
652
|
|
653
|
+
|
593
654
|
static inline void extract_blob(VALUE val, uint32_t *size, void **data) {
|
594
655
|
struct blob_info * bi = ((struct blob_info *)DATA_PTR(val));
|
595
656
|
*size = bi->size;
|
@@ -621,6 +682,7 @@ static inline void extract_carray(VALUE val, uint32_t *size, void **data) {
|
|
621
682
|
#define convert_bool(v) ((v) ? Qtrue : Qfalse)
|
622
683
|
#define convert_blob(s,d) ((d) ? rb_str_to_str(blob_new(s,d)) : Qnil)
|
623
684
|
#define convert_wstring(v) ((v) ? rb_str_to_str(wstring_new(v)) : Qnil)
|
685
|
+
#define convert_uuid(v) ((v) ? to_uuid(wstring_new(v)) : Qnil)
|
624
686
|
|
625
687
|
static inline VALUE convert_enum(uint32_t v, VALUE klass) {
|
626
688
|
VALUE val = ULL2NUM(v);
|
@@ -712,6 +774,19 @@ static inline VALUE convert_array_wstring(uint32_t size, void **array) {
|
|
712
774
|
}
|
713
775
|
}
|
714
776
|
|
777
|
+
static inline VALUE convert_array_uuid(uint32_t size, void **array) {
|
778
|
+
if (array) {
|
779
|
+
VALUE res = rb_ary_new2(size);
|
780
|
+
uint32_t i;
|
781
|
+
for (i = 0 ; i < size ; i++)
|
782
|
+
rb_ary_push(res, convert_uuid(array[i]));
|
783
|
+
xpcom->unalloc_mem(array);
|
784
|
+
return res;
|
785
|
+
} else {
|
786
|
+
return Qnil;
|
787
|
+
}
|
788
|
+
}
|
789
|
+
|
715
790
|
|
716
791
|
|
717
792
|
/*======================================================================*
|
@@ -792,6 +867,7 @@ void RUBY_VBOX_INIT(void) {
|
|
792
867
|
_value = rb_intern("value");
|
793
868
|
_const_get = rb_intern("const_get");
|
794
869
|
_new = rb_intern("new");
|
870
|
+
_call = rb_intern("call");
|
795
871
|
|
796
872
|
p15 = rb_funcall(oTwo, _pow, 1, INT2FIX(15));
|
797
873
|
p16 = rb_funcall(oTwo, _pow, 1, INT2FIX(16));
|
@@ -830,6 +906,8 @@ void RUBY_VBOX_INIT(void) {
|
|
830
906
|
mVirtualBox = rb_define_module("VirtualBox");
|
831
907
|
mCOM = rb_define_module_under(mVirtualBox, "COM");
|
832
908
|
mModel = rb_define_module_under(mCOM, "Model");
|
909
|
+
rb_define_module_function(mCOM, "with_uuid_parser", with_uuid_parser, 1);
|
910
|
+
|
833
911
|
|
834
912
|
/* Define abstract enumerations / interfaces */
|
835
913
|
cAbstractModel
|
data/ext/virtualbox-com/vbox.c
CHANGED
@@ -50,6 +50,7 @@ static VALUE oMin_s16 = Qundef;
|
|
50
50
|
static VALUE oMin_s32 = Qundef;
|
51
51
|
static VALUE oMin_s64 = Qundef;
|
52
52
|
static VALUE oExceptionMap = Qundef;
|
53
|
+
static VALUE oUUIDparser = Qnil;
|
53
54
|
|
54
55
|
static VALUE sYes = Qundef;
|
55
56
|
static VALUE sNo = Qundef;
|
@@ -78,6 +79,7 @@ static ID _symbol;
|
|
78
79
|
static ID _value;
|
79
80
|
static ID _const_get;
|
80
81
|
static ID _new;
|
82
|
+
static ID _call;
|
81
83
|
|
82
84
|
static rb_encoding * _UTF8;
|
83
85
|
|
@@ -105,12 +107,40 @@ static void ns_check(uint32_t rcode) {
|
|
105
107
|
}
|
106
108
|
}
|
107
109
|
|
110
|
+
|
111
|
+
static VALUE with_uuid_parser(VALUE self, VALUE val) {
|
112
|
+
if (!NIL_P(val) &&
|
113
|
+
rb_obj_is_instance_of(val, rb_cProc) != Qtrue)
|
114
|
+
rb_raise(rb_eArgError, "nil, proc, or lambda expected");
|
115
|
+
return oUUIDparser = val;
|
116
|
+
}
|
117
|
+
|
118
|
+
static VALUE uuid_parser_calling(VALUE arg) {
|
119
|
+
return rb_funcall(oUUIDparser, _call, 1, arg);
|
120
|
+
}
|
121
|
+
|
122
|
+
static VALUE to_uuid(VALUE val) {
|
123
|
+
int state = 0;
|
124
|
+
|
125
|
+
StringValue(val);
|
126
|
+
if (oUUIDparser != Qnil && oUUIDparser != Qundef) {
|
127
|
+
val = rb_protect(uuid_parser_calling, val, &state);
|
128
|
+
if (state) {
|
129
|
+
rb_warn("Returning nil for uuid and discarding exception raised during uuid parsing to avoid memory leak. Fix the parser so that no exception is raised.");
|
130
|
+
}
|
131
|
+
}
|
132
|
+
return val;
|
133
|
+
}
|
134
|
+
|
108
135
|
/* Forward definition */
|
109
136
|
static void nsISupports_free(struct obj *ptr);
|
110
137
|
|
111
138
|
|
112
139
|
|
113
140
|
|
141
|
+
|
142
|
+
|
143
|
+
|
114
144
|
/*======================================================================*
|
115
145
|
* Internal classes
|
116
146
|
* They are an intermediate to
|
@@ -118,10 +148,11 @@ static void nsISupports_free(struct obj *ptr);
|
|
118
148
|
* - perform garbage collection
|
119
149
|
*======================================================================*/
|
120
150
|
|
151
|
+
|
121
152
|
/* Class: IID
|
122
153
|
*/
|
123
154
|
#define IID_STR_MAX 36 /* 8+1+4+1+4+1+4+1+12 */
|
124
|
-
static VALUE
|
155
|
+
static VALUE iid_new(iid_t *iid) {
|
125
156
|
iid_t *a_iid = ALLOC(iid_t);
|
126
157
|
*a_iid = *iid;
|
127
158
|
return Data_Wrap_Struct(cIID, 0, free, a_iid);
|
@@ -136,11 +167,16 @@ static VALUE iid__to_s(VALUE self) {
|
|
136
167
|
iid->m3[4], iid->m3[5], iid->m3[6], iid->m3[7]);
|
137
168
|
return rb_str_new(str, IID_STR_MAX);
|
138
169
|
}
|
170
|
+
static void iid__to_raw(VALUE self) {
|
171
|
+
iid_t *iid = DATA_PTR(self);
|
172
|
+
return rb_str_new((char *)iid, sizeof(iid_t));
|
173
|
+
}
|
139
174
|
static void iid_init(VALUE under) {
|
140
175
|
cIID = rb_define_class_under(under, "IID", rb_cObject);
|
141
176
|
no_instantiation(cIID);
|
142
|
-
rb_define_method(cIID, "to_s",
|
143
|
-
rb_define_method(cIID, "to_str", iid__to_s,
|
177
|
+
rb_define_method(cIID, "to_s", iid__to_s, 0);
|
178
|
+
rb_define_method(cIID, "to_str", iid__to_s, 0);
|
179
|
+
rb_define_method(cIID, "to_raw", iid__to_raw, 0);
|
144
180
|
}
|
145
181
|
|
146
182
|
|
@@ -334,6 +370,10 @@ static inline VALUE prepare_wstring(VALUE val) {
|
|
334
370
|
return wstring__new(cWString, val);
|
335
371
|
}
|
336
372
|
|
373
|
+
static inline VALUE prepare_uuid(val) {
|
374
|
+
return wstring__new(cWString, val);
|
375
|
+
}
|
376
|
+
|
337
377
|
static VALUE prepare_enum(VALUE val, VALUE klass) {
|
338
378
|
switch(rb_type(val)) {
|
339
379
|
case T_FIXNUM:
|
@@ -531,6 +571,25 @@ static VALUE prepare_array_wstring(VALUE ary) {
|
|
531
571
|
return res;
|
532
572
|
}
|
533
573
|
|
574
|
+
static VALUE prepare_array_uuid(VALUE ary) {
|
575
|
+
VALUE res = Qundef;
|
576
|
+
wstring_t *data = NULL;
|
577
|
+
long len, i;
|
578
|
+
|
579
|
+
ary = rb_ary_dup(ensure_array(ary));
|
580
|
+
len = RARRAY_LEN(ary);
|
581
|
+
data = ALLOC_N(wstring_t, len);
|
582
|
+
res = carray_new(len, data, ary);
|
583
|
+
|
584
|
+
for (i = 0 ; i < len ; i++) {
|
585
|
+
VALUE val = prepare_uuid(rb_ary_entry(ary, i));
|
586
|
+
rb_ary_store(ary, i, val);
|
587
|
+
data[i] = (wstring_t)DATA_PTR(val);
|
588
|
+
}
|
589
|
+
OBJ_FREEZE(ary);
|
590
|
+
return res;
|
591
|
+
}
|
592
|
+
|
534
593
|
static VALUE prepare_array_enum(VALUE ary, VALUE klass) {
|
535
594
|
VALUE res = Qundef;
|
536
595
|
uint32_t *data = NULL;
|
@@ -587,9 +646,11 @@ static VALUE prepare_array_interface(VALUE ary, VALUE klass) {
|
|
587
646
|
#define extract_bool(val, data) *(data) = (val) == Qtrue ? ~0 : 0
|
588
647
|
#define extract_ptr(val, data) *(data) = NUM2PTR(val)
|
589
648
|
#define extract_wstring(val, data) *(data) = DATA_PTR(val)
|
649
|
+
#define extract_uuid(val, data) *(data) = DATA_PTR(val)
|
590
650
|
#define extract_enum(val, data, klass) *(data) = NUM2UINT32(val)
|
591
651
|
#define extract_interface(val, data, klass) *(data) = DATA_PTR(val)
|
592
652
|
|
653
|
+
|
593
654
|
static inline void extract_blob(VALUE val, uint32_t *size, void **data) {
|
594
655
|
struct blob_info * bi = ((struct blob_info *)DATA_PTR(val));
|
595
656
|
*size = bi->size;
|
@@ -621,6 +682,7 @@ static inline void extract_carray(VALUE val, uint32_t *size, void **data) {
|
|
621
682
|
#define convert_bool(v) ((v) ? Qtrue : Qfalse)
|
622
683
|
#define convert_blob(s,d) ((d) ? rb_str_to_str(blob_new(s,d)) : Qnil)
|
623
684
|
#define convert_wstring(v) ((v) ? rb_str_to_str(wstring_new(v)) : Qnil)
|
685
|
+
#define convert_uuid(v) ((v) ? to_uuid(wstring_new(v)) : Qnil)
|
624
686
|
|
625
687
|
static inline VALUE convert_enum(uint32_t v, VALUE klass) {
|
626
688
|
VALUE val = ULL2NUM(v);
|
@@ -712,6 +774,19 @@ static inline VALUE convert_array_wstring(uint32_t size, void **array) {
|
|
712
774
|
}
|
713
775
|
}
|
714
776
|
|
777
|
+
static inline VALUE convert_array_uuid(uint32_t size, void **array) {
|
778
|
+
if (array) {
|
779
|
+
VALUE res = rb_ary_new2(size);
|
780
|
+
uint32_t i;
|
781
|
+
for (i = 0 ; i < size ; i++)
|
782
|
+
rb_ary_push(res, convert_uuid(array[i]));
|
783
|
+
xpcom->unalloc_mem(array);
|
784
|
+
return res;
|
785
|
+
} else {
|
786
|
+
return Qnil;
|
787
|
+
}
|
788
|
+
}
|
789
|
+
|
715
790
|
|
716
791
|
|
717
792
|
/*======================================================================*
|
@@ -792,6 +867,7 @@ void RUBY_VBOX_INIT(void) {
|
|
792
867
|
_value = rb_intern("value");
|
793
868
|
_const_get = rb_intern("const_get");
|
794
869
|
_new = rb_intern("new");
|
870
|
+
_call = rb_intern("call");
|
795
871
|
|
796
872
|
p15 = rb_funcall(oTwo, _pow, 1, INT2FIX(15));
|
797
873
|
p16 = rb_funcall(oTwo, _pow, 1, INT2FIX(16));
|
@@ -830,6 +906,8 @@ void RUBY_VBOX_INIT(void) {
|
|
830
906
|
mVirtualBox = rb_define_module("VirtualBox");
|
831
907
|
mCOM = rb_define_module_under(mVirtualBox, "COM");
|
832
908
|
mModel = rb_define_module_under(mCOM, "Model");
|
909
|
+
rb_define_module_function(mCOM, "with_uuid_parser", with_uuid_parser, 1);
|
910
|
+
|
833
911
|
|
834
912
|
/* Define abstract enumerations / interfaces */
|
835
913
|
cAbstractModel
|
@@ -834,7 +834,7 @@ end
|
|
834
834
|
class VirtualBoxErrorInfo < NSIException
|
835
835
|
iid "e053d3c0-f493-491b-a735-3a9f0b1feed4"
|
836
836
|
property :result_code, INT32, :readonly => true
|
837
|
-
property :interface_i_d,
|
837
|
+
property :interface_i_d, UUID, :readonly => true
|
838
838
|
property :component, WSTRING, :readonly => true
|
839
839
|
property :text, WSTRING, :readonly => true
|
840
840
|
property :next, :VirtualBoxErrorInfo, :readonly => true
|
@@ -877,7 +877,7 @@ class VirtualBox < NSISupports
|
|
877
877
|
property :internal_networks, [WSTRING], :readonly => true
|
878
878
|
property :generic_network_drivers, [WSTRING], :readonly => true
|
879
879
|
function :compose_machine_filename, WSTRING, [WSTRING, WSTRING]
|
880
|
-
function :create_machine, :Machine, [WSTRING, WSTRING, WSTRING,
|
880
|
+
function :create_machine, :Machine, [WSTRING, WSTRING, WSTRING, UUID, BOOL]
|
881
881
|
function :open_machine, :Machine, [WSTRING]
|
882
882
|
function :register_machine, nil, [:Machine]
|
883
883
|
function :find_machine, :Machine, [WSTRING]
|
@@ -885,7 +885,7 @@ class VirtualBox < NSISupports
|
|
885
885
|
function :create_hard_disk, :Medium, [WSTRING, WSTRING]
|
886
886
|
function :open_medium, :Medium, [WSTRING, :DeviceType, :AccessMode, BOOL]
|
887
887
|
function :find_medium, :Medium, [WSTRING, :DeviceType]
|
888
|
-
function :get_guest_os_type, :GuestOSType, [
|
888
|
+
function :get_guest_os_type, :GuestOSType, [UUID]
|
889
889
|
function :create_shared_folder, nil, [WSTRING, WSTRING, BOOL, BOOL]
|
890
890
|
function :remove_shared_folder, nil, [WSTRING]
|
891
891
|
function :get_extra_data_keys, [WSTRING], []
|
@@ -943,8 +943,8 @@ class InternalMachineControl < NSISupports
|
|
943
943
|
function :begin_powering_down, nil, [[:out, :Progress]]
|
944
944
|
function :end_powering_down, nil, [INT32, WSTRING]
|
945
945
|
function :run_usb_device_filters, nil, [:USBDevice, [:out, BOOL], [:out, UINT32]]
|
946
|
-
function :capture_usb_device, nil, [
|
947
|
-
function :detach_usb_device, nil, [
|
946
|
+
function :capture_usb_device, nil, [UUID]
|
947
|
+
function :detach_usb_device, nil, [UUID, BOOL]
|
948
948
|
function :auto_capture_usb_devices, nil, []
|
949
949
|
function :detach_all_usb_devices, nil, [BOOL]
|
950
950
|
function :on_session_end, :Progress, [:Session]
|
@@ -953,7 +953,7 @@ class InternalMachineControl < NSISupports
|
|
953
953
|
function :adopt_saved_state, nil, [WSTRING]
|
954
954
|
function :begin_taking_snapshot, nil, [:Console, WSTRING, WSTRING, :Progress, BOOL, [:out, WSTRING]]
|
955
955
|
function :end_taking_snapshot, nil, [BOOL]
|
956
|
-
function :delete_snapshot, :Progress, [:Console,
|
956
|
+
function :delete_snapshot, :Progress, [:Console, UUID, UUID, BOOL, [:out, :MachineState]]
|
957
957
|
function :finish_online_merge_medium, nil, [:MediumAttachment, :Medium, :Medium, BOOL, :Medium, [:Medium]]
|
958
958
|
function :restore_snapshot, :Progress, [:Console, :Snapshot, [:out, :MachineState]]
|
959
959
|
function :pull_guest_properties, nil, [[:out, [WSTRING]], [:out, [WSTRING]], [:out, [INT64]], [:out, [WSTRING]]]
|
@@ -1001,10 +1001,10 @@ class Machine < NSISupports
|
|
1001
1001
|
property :access_error, :VirtualBoxErrorInfo, :readonly => true
|
1002
1002
|
property :name, WSTRING
|
1003
1003
|
property :description, WSTRING
|
1004
|
-
property :id,
|
1004
|
+
property :id, UUID, :readonly => true
|
1005
1005
|
property :os_type_id, WSTRING
|
1006
1006
|
property :hardware_version, WSTRING
|
1007
|
-
property :hardware_uuid,
|
1007
|
+
property :hardware_uuid, UUID
|
1008
1008
|
property :cpu_count, UINT32
|
1009
1009
|
property :cpu_hot_plug_enabled, BOOL
|
1010
1010
|
property :cpu_execution_cap, UINT32
|
@@ -1172,16 +1172,16 @@ class Console < NSISupports
|
|
1172
1172
|
function :adopt_saved_state, nil, [WSTRING]
|
1173
1173
|
function :discard_saved_state, nil, [BOOL]
|
1174
1174
|
function :get_device_activity, :DeviceActivity, [:DeviceType]
|
1175
|
-
function :attach_usb_device, nil, [
|
1176
|
-
function :detach_usb_device, :USBDevice, [
|
1175
|
+
function :attach_usb_device, nil, [UUID]
|
1176
|
+
function :detach_usb_device, :USBDevice, [UUID]
|
1177
1177
|
function :find_usb_device_by_address, :USBDevice, [WSTRING]
|
1178
|
-
function :find_usb_device_by_id, :USBDevice, [
|
1178
|
+
function :find_usb_device_by_id, :USBDevice, [UUID]
|
1179
1179
|
function :create_shared_folder, nil, [WSTRING, WSTRING, BOOL, BOOL]
|
1180
1180
|
function :remove_shared_folder, nil, [WSTRING]
|
1181
1181
|
function :take_snapshot, :Progress, [WSTRING, WSTRING]
|
1182
|
-
function :delete_snapshot, :Progress, [
|
1183
|
-
function :delete_snapshot_and_all_children, :Progress, [
|
1184
|
-
function :delete_snapshot_range, :Progress, [
|
1182
|
+
function :delete_snapshot, :Progress, [UUID]
|
1183
|
+
function :delete_snapshot_and_all_children, :Progress, [UUID]
|
1184
|
+
function :delete_snapshot_range, :Progress, [UUID, UUID]
|
1185
1185
|
function :restore_snapshot, :Progress, [:Snapshot]
|
1186
1186
|
function :teleport, :Progress, [WSTRING, UINT32, WSTRING, UINT32]
|
1187
1187
|
end
|
@@ -1189,7 +1189,7 @@ end
|
|
1189
1189
|
class HostNetworkInterface < NSISupports
|
1190
1190
|
iid "ce6fae58-7642-4102-b5db-c9005c2320a8"
|
1191
1191
|
property :name, WSTRING, :readonly => true
|
1192
|
-
property :id,
|
1192
|
+
property :id, UUID, :readonly => true
|
1193
1193
|
property :network_name, WSTRING, :readonly => true
|
1194
1194
|
property :dhcp_enabled, BOOL, :readonly => true
|
1195
1195
|
property :ip_address, WSTRING, :readonly => true
|
@@ -1228,16 +1228,16 @@ class Host < NSISupports
|
|
1228
1228
|
function :get_processor_description, WSTRING, [UINT32]
|
1229
1229
|
function :get_processor_cpuid_leaf, nil, [UINT32, UINT32, UINT32, [:out, UINT32], [:out, UINT32], [:out, UINT32], [:out, UINT32]]
|
1230
1230
|
function :create_host_only_network_interface, :Progress, [[:out, :HostNetworkInterface]]
|
1231
|
-
function :remove_host_only_network_interface, :Progress, [
|
1231
|
+
function :remove_host_only_network_interface, :Progress, [UUID]
|
1232
1232
|
function :create_usb_device_filter, :HostUSBDeviceFilter, [WSTRING]
|
1233
1233
|
function :insert_usb_device_filter, nil, [UINT32, :HostUSBDeviceFilter]
|
1234
1234
|
function :remove_usb_device_filter, nil, [UINT32]
|
1235
1235
|
function :find_host_dvd_drive, :Medium, [WSTRING]
|
1236
1236
|
function :find_host_floppy_drive, :Medium, [WSTRING]
|
1237
1237
|
function :find_host_network_interface_by_name, :HostNetworkInterface, [WSTRING]
|
1238
|
-
function :find_host_network_interface_by_id, :HostNetworkInterface, [
|
1238
|
+
function :find_host_network_interface_by_id, :HostNetworkInterface, [UUID]
|
1239
1239
|
function :find_host_network_interfaces_of_type, [:HostNetworkInterface], [:HostNetworkInterfaceType]
|
1240
|
-
function :find_usb_device_by_id, :HostUSBDevice, [
|
1240
|
+
function :find_usb_device_by_id, :HostUSBDevice, [UUID]
|
1241
1241
|
function :find_usb_device_by_address, :HostUSBDevice, [WSTRING]
|
1242
1242
|
function :generate_mac_address, WSTRING, []
|
1243
1243
|
end
|
@@ -1349,7 +1349,7 @@ end
|
|
1349
1349
|
|
1350
1350
|
class Progress < NSISupports
|
1351
1351
|
iid "c20238e4-3221-4d3f-8891-81ce92d9f913"
|
1352
|
-
property :id,
|
1352
|
+
property :id, UUID, :readonly => true
|
1353
1353
|
property :description, WSTRING, :readonly => true
|
1354
1354
|
property :initiator, :NSISupports, :readonly => true
|
1355
1355
|
property :cancelable, BOOL, :readonly => true
|
@@ -1375,7 +1375,7 @@ end
|
|
1375
1375
|
|
1376
1376
|
class Snapshot < NSISupports
|
1377
1377
|
iid "0472823b-c6e7-472a-8e9f-d732e86b8463"
|
1378
|
-
property :id,
|
1378
|
+
property :id, UUID, :readonly => true
|
1379
1379
|
property :name, WSTRING
|
1380
1380
|
property :description, WSTRING
|
1381
1381
|
property :time_stamp, INT64, :readonly => true
|
@@ -1402,7 +1402,7 @@ end
|
|
1402
1402
|
|
1403
1403
|
class Medium < NSISupports
|
1404
1404
|
iid "53f9cc0c-e0fd-40a5-a404-a7a5272082cd"
|
1405
|
-
property :id,
|
1405
|
+
property :id, UUID, :readonly => true
|
1406
1406
|
property :description, WSTRING
|
1407
1407
|
property :state, :MediumState, :readonly => true
|
1408
1408
|
property :variant, UINT32, :readonly => true
|
@@ -1422,10 +1422,10 @@ class Medium < NSISupports
|
|
1422
1422
|
property :logical_size, INT64, :readonly => true
|
1423
1423
|
property :auto_reset, BOOL
|
1424
1424
|
property :last_access_error, WSTRING, :readonly => true
|
1425
|
-
property :machine_ids, [
|
1426
|
-
function :set_i_ds, nil, [BOOL,
|
1425
|
+
property :machine_ids, [UUID], :readonly => true
|
1426
|
+
function :set_i_ds, nil, [BOOL, UUID, BOOL, UUID]
|
1427
1427
|
function :refresh_state, :MediumState, []
|
1428
|
-
function :get_snapshot_ids, [
|
1428
|
+
function :get_snapshot_ids, [UUID], [UUID]
|
1429
1429
|
function :lock_read, :MediumState, []
|
1430
1430
|
function :unlock_read, :MediumState, []
|
1431
1431
|
function :lock_write, :MediumState, []
|
@@ -1619,7 +1619,7 @@ end
|
|
1619
1619
|
|
1620
1620
|
class USBDevice < NSISupports
|
1621
1621
|
iid "f8967b0b-4483-400f-92b5-8b675d98a85b"
|
1622
|
-
property :id,
|
1622
|
+
property :id, UUID, :readonly => true
|
1623
1623
|
property :vendor_id, UINT16, :readonly => true
|
1624
1624
|
property :product_id, UINT16, :readonly => true
|
1625
1625
|
property :revision, UINT16, :readonly => true
|
@@ -1709,7 +1709,7 @@ class InternalSessionControl < NSISupports
|
|
1709
1709
|
function :on_usb_controller_change, nil, []
|
1710
1710
|
function :on_shared_folder_change, nil, [BOOL]
|
1711
1711
|
function :on_usb_device_attach, nil, [:USBDevice, :VirtualBoxErrorInfo, UINT32]
|
1712
|
-
function :on_usb_device_detach, nil, [
|
1712
|
+
function :on_usb_device_detach, nil, [UUID, :VirtualBoxErrorInfo]
|
1713
1713
|
function :on_show_window, nil, [BOOL, [:out, BOOL], [:out, INT64]]
|
1714
1714
|
function :on_bandwidth_group_change, nil, [:BandwidthGroup]
|
1715
1715
|
function :access_guest_property, nil, [WSTRING, WSTRING, WSTRING, BOOL, [:out, WSTRING], [:out, INT64], [:out, WSTRING]]
|
@@ -1885,7 +1885,7 @@ end
|
|
1885
1885
|
|
1886
1886
|
class MachineEvent < Event
|
1887
1887
|
iid "92ed7b1a-0d96-40ed-ae46-a564d484325e"
|
1888
|
-
property :machine_id,
|
1888
|
+
property :machine_id, UUID, :readonly => true
|
1889
1889
|
end
|
1890
1890
|
|
1891
1891
|
class MachineStateChangedEvent < MachineEvent
|
@@ -1900,7 +1900,7 @@ end
|
|
1900
1900
|
|
1901
1901
|
class MediumRegisteredEvent < Event
|
1902
1902
|
iid "53fac49a-b7f1-4a5a-a4ef-a11dd9c2a458"
|
1903
|
-
property :medium_id,
|
1903
|
+
property :medium_id, UUID, :readonly => true
|
1904
1904
|
property :medium_type, :DeviceType, :readonly => true
|
1905
1905
|
property :registered, BOOL, :readonly => true
|
1906
1906
|
end
|
@@ -1924,7 +1924,7 @@ end
|
|
1924
1924
|
|
1925
1925
|
class SnapshotEvent < MachineEvent
|
1926
1926
|
iid "21637b0e-34b8-42d3-acfb-7e96daf77c22"
|
1927
|
-
property :snapshot_id,
|
1927
|
+
property :snapshot_id, UUID, :readonly => true
|
1928
1928
|
end
|
1929
1929
|
|
1930
1930
|
class SnapshotTakenEvent < SnapshotEvent
|
@@ -2062,7 +2062,7 @@ end
|
|
2062
2062
|
|
2063
2063
|
class ExtraDataChangedEvent < Event
|
2064
2064
|
iid "024F00CE-6E0B-492A-A8D0-968472A94DC7"
|
2065
|
-
property :machine_id,
|
2065
|
+
property :machine_id, UUID, :readonly => true
|
2066
2066
|
property :key, WSTRING, :readonly => true
|
2067
2067
|
property :value, WSTRING, :readonly => true
|
2068
2068
|
end
|
@@ -2076,7 +2076,7 @@ end
|
|
2076
2076
|
|
2077
2077
|
class ExtraDataCanChangeEvent < VetoEvent
|
2078
2078
|
iid "245d88bd-800a-40f8-87a6-170d02249a55"
|
2079
|
-
property :machine_id,
|
2079
|
+
property :machine_id, UUID, :readonly => true
|
2080
2080
|
property :key, WSTRING, :readonly => true
|
2081
2081
|
property :value, WSTRING, :readonly => true
|
2082
2082
|
end
|