Move ffi_library_version
This commit is contained in:
parent
2db227b0c3
commit
4a937f9519
1 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue