Move ffi_library_version

This commit is contained in:
0x1eef 2024-03-01 01:35:49 -03:00
parent 2db227b0c3
commit 4a937f9519

View file

@ -1,6 +1,14 @@
#include <ruby.h>
#include <libhbsdcontrol.h>
static VALUE
ffi_library_version(VALUE self)
{
const char *ver;
ver = hbsdcontrol_get_version();
return rb_str_new2(ver);
}
static VALUE
ffi_available_features(VALUE self)
{
@ -26,14 +34,6 @@ ffi_available_features(VALUE self)
return features;
}
static VALUE
ffi_library_version(VALUE self)
{
const char *ver;
ver = hbsdcontrol_get_version();
return rb_str_new2(ver);
}
static VALUE
feature_set(VALUE self, VALUE path, VALUE state)
{