![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include "rlm_mruby.h"
Go to the source code of this file.
Data Structures | |
struct | mruby_pair_s |
Macros | |
#define | RUBYSETFLOAT(_size) |
#define | RUBYSETINT(_size) |
#define | RUBYSETUINT(_size) |
Typedefs | |
typedef struct mruby_pair_s | mruby_pair_t |
Functions | |
mrb_value | mruby_dict_attr_object (mrb_state *mrb, struct RClass *klass, fr_dict_attr_t const *da) |
mrb_value | mruby_inst_object (mrb_state *mrb, struct RClass *klass, rlm_mruby_t const *inst) |
struct RClass * | mruby_pair_class (mrb_state *mrb, struct RClass *parent) |
static mrb_value | mruby_pair_init (mrb_state *mrb, mrb_value self) |
Associate C structure with Ruby object representing a pair. | |
struct RClass * | mruby_pair_list_class (mrb_state *mrb, struct RClass *parent) |
static mrb_value | mruby_pair_list_keys (mrb_state *mrb, mrb_value self) |
Fetch the list of children of a list. | |
static mrb_value | mruby_pair_list_missing (mrb_state *mrb, mrb_value self) |
Implement mruby method_missing functionality to find child pairs. | |
static void | mruby_pair_parent_build (mrb_state *mrb, mruby_pair_t *pair) |
Build parent structural pairs needed when a leaf node is set. | |
static mrb_value | mruby_pair_value_to_ruby (mrb_state *mrb, request_t *request, fr_pair_t *vp) |
Convert a pair value to a suitable mruby value type. | |
struct RClass * | mruby_request_class (mrb_state *mrb, struct RClass *parent) |
static mrb_value | mruby_request_control (mrb_state *mrb, mrb_value self) |
static mrb_value | mruby_request_frconfig (mrb_state *mrb, mrb_value self) |
mrb_value | mruby_request_object (mrb_state *mrb, struct RClass *klass, request_t *request) |
static mrb_value | mruby_request_reply (mrb_state *mrb, mrb_value self) |
static mrb_value | mruby_request_request (mrb_state *mrb, mrb_value self) |
static mrb_value | mruby_request_session_state (mrb_state *mrb, mrb_value self) |
static void | mruby_roby_to_pair_value (mrb_state *mrb, mrb_value *value, fr_pair_t *vp) |
Convert a ruby value to a fr_pair_t value. | |
static mrb_value | mruby_ruby_pair_object (mrb_state *mrb, struct RClass *klass, mruby_pair_t *pair) |
static mrb_value | mruby_value_pair_append (mrb_state *mrb, mrb_value self) |
Append an instance of a value pair from mruby. | |
static mrb_value | mruby_value_pair_del (mrb_state *mrb, mrb_value self) |
Delete a value pair from mruby. | |
static mrb_value | mruby_value_pair_get (mrb_state *mrb, mrb_value self) |
Get a pair value from mruby. | |
mrb_value | mruby_value_pair_object (mrb_state *mrb, struct RClass *klass, fr_pair_t *vp) |
static mrb_value | mruby_value_pair_set (mrb_state *mrb, mrb_value self) |
Set a value pair from mruby. | |
Variables | |
static const struct mrb_data_type | mruby_dict_attr_type |
static const struct mrb_data_type | mruby_inst_type |
static const struct mrb_data_type | mruby_request_type |
static const struct mrb_data_type | mruby_ruby_pair_type |
static const struct mrb_data_type | mruby_value_pair_type |
struct mruby_pair_s |
Data Fields | ||
---|---|---|
fr_dict_attr_t const * | da | Dictionary attribute for this pair. |
unsigned int | idx | Instance index. |
rlm_mruby_t const * | inst | Module instance. Needed for access to classes. |
mruby_pair_t * | parent | Parent pair. |
request_t * | request | Current request. |
fr_pair_t * | vp | Real pair if it exists. |
#define RUBYSETFLOAT | ( | _size | ) |
#define RUBYSETINT | ( | _size | ) |
#define RUBYSETUINT | ( | _size | ) |
typedef struct mruby_pair_s mruby_pair_t |
mrb_value mruby_dict_attr_object | ( | mrb_state * | mrb, |
struct RClass * | klass, | ||
fr_dict_attr_t const * | da | ||
) |
mrb_value mruby_inst_object | ( | mrb_state * | mrb, |
struct RClass * | klass, | ||
rlm_mruby_t const * | inst | ||
) |
struct RClass * mruby_pair_class | ( | mrb_state * | mrb, |
struct RClass * | parent | ||
) |
|
static |
Associate C structure with Ruby object representing a pair.
Will be called with 5 or 6 arguments
Definition at line 144 of file mruby.c.
struct RClass * mruby_pair_list_class | ( | mrb_state * | mrb, |
struct RClass * | parent | ||
) |
|
static |
|
static |
|
static |
struct RClass * mruby_request_class | ( | mrb_state * | mrb, |
struct RClass * | parent | ||
) |
|
static |
|
static |
mrb_value mruby_request_object | ( | mrb_state * | mrb, |
struct RClass * | klass, | ||
request_t * | request | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
mrb_value mruby_value_pair_object | ( | mrb_state * | mrb, |
struct RClass * | klass, | ||
fr_pair_t * | vp | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |