From 4a937f9519b4bcfbcdfd25e5ae2e02d9e847a4ab Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 1 Mar 2024 01:35:49 -0300 Subject: [PATCH] Move ffi_library_version --- ext/hbsdctl.rb/hbsdctl.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/hbsdctl.rb/hbsdctl.c b/ext/hbsdctl.rb/hbsdctl.c index 1f7f149..c97bdd9 100644 --- a/ext/hbsdctl.rb/hbsdctl.c +++ b/ext/hbsdctl.rb/hbsdctl.c @@ -1,6 +1,14 @@ #include #include +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) {