Skip to content

Commit

Permalink
replace rb_cData with rb_cObject, making it compatible with ruby 3.1 …
Browse files Browse the repository at this point in the history
…and higher (#3)
  • Loading branch information
jjlimepoint authored Sep 19, 2022
1 parent f639f64 commit 97df88c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sdk/ext/ovirtsdk4c/ov_http_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static VALUE ov_http_request_initialize(int argc, VALUE* argv, VALUE self) {

void ov_http_request_define(void) {
/* Define the class: */
ov_http_request_class = rb_define_class_under(ov_module, "HttpRequest", rb_cData);
ov_http_request_class = rb_define_class_under(ov_module, "HttpRequest", rb_cObject);

/* Define the constructor: */
rb_define_alloc_func(ov_http_request_class, ov_http_request_alloc);
Expand Down
2 changes: 1 addition & 1 deletion sdk/ext/ovirtsdk4c/ov_http_response.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static VALUE ov_http_response_initialize(int argc, VALUE* argv, VALUE self) {

void ov_http_response_define(void) {
/* Define the class: */
ov_http_response_class = rb_define_class_under(ov_module, "HttpResponse", rb_cData);
ov_http_response_class = rb_define_class_under(ov_module, "HttpResponse", rb_cObject);

/* Define the constructor: */
rb_define_alloc_func(ov_http_response_class, ov_http_response_alloc);
Expand Down
2 changes: 1 addition & 1 deletion sdk/ext/ovirtsdk4c/ov_http_transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static VALUE ov_http_transfer_inspect(VALUE self) {

void ov_http_transfer_define(void) {
/* Define the class: */
ov_http_transfer_class = rb_define_class_under(ov_module, "HttpTransfer", rb_cData);
ov_http_transfer_class = rb_define_class_under(ov_module, "HttpTransfer", rb_cObject);

/* Define the constructor: */
rb_define_alloc_func(ov_http_transfer_class, ov_http_transfer_alloc);
Expand Down
2 changes: 1 addition & 1 deletion sdk/ext/ovirtsdk4c/ov_xml_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ void ov_xml_reader_define(void) {
rb_require("stringio");

/* Define the class: */
ov_xml_reader_class = rb_define_class_under(ov_module, "XmlReader", rb_cData);
ov_xml_reader_class = rb_define_class_under(ov_module, "XmlReader", rb_cObject);

/* Define the constructor: */
rb_define_alloc_func(ov_xml_reader_class, ov_xml_reader_alloc);
Expand Down

0 comments on commit 97df88c

Please sign in to comment.