The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Data Structures | Functions
rlm_mruby.h File Reference

Translates requests between the server an an mruby interpreter. More...

#include <mruby.h>
#include <mruby/compile.h>
#include <mruby/array.h>
#include <mruby/hash.h>
#include <mruby/numeric.h>
#include <mruby/string.h>
#include <mruby/variable.h>
#include <mruby/class.h>
#include <mruby/data.h>
#include <freeradius-devel/server/base.h>
+ Include dependency graph for rlm_mruby.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rlm_mruby_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)
 
struct RClass * mruby_pair_list_class (mrb_state *mrb, struct RClass *parent)
 
struct RClass * mruby_request_class (mrb_state *mrb, struct RClass *parent)
 
mrb_value mruby_request_object (mrb_state *mrb, struct RClass *klass, request_t *request)
 
mrb_value mruby_value_pair_object (mrb_state *mrb, struct RClass *klass, fr_pair_t *vp)
 

Detailed Description

Translates requests between the server an an mruby interpreter.

Definition in file rlm_mruby.h.


Data Structure Documentation

◆ rlm_mruby_t

struct rlm_mruby_t

Definition at line 41 of file rlm_mruby.h.

+ Collaboration diagram for rlm_mruby_t:
Data Fields
char const * filename
fr_rb_tree_t funcs Tree of function calls found by call_env parser.
bool funcs_init Has the tree been initialised.
char const * module_name
mrb_state * mrb
struct RClass * mruby_module
struct RClass * mruby_pair
struct RClass * mruby_pair_list
struct RClass * mruby_ptr
struct RClass * mruby_request
mrb_value mrubyconf_hash

Function Documentation

◆ mruby_dict_attr_object()

mrb_value mruby_dict_attr_object ( mrb_state *  mrb,
struct RClass *  klass,
fr_dict_attr_t const *  da 
)

Definition at line 119 of file mruby.c.

+ Here is the caller graph for this function:

◆ mruby_inst_object()

mrb_value mruby_inst_object ( mrb_state *  mrb,
struct RClass *  klass,
rlm_mruby_t const *  inst 
)

Definition at line 109 of file mruby.c.

+ Here is the caller graph for this function:

◆ mruby_pair_class()

struct RClass * mruby_pair_class ( mrb_state *  mrb,
struct RClass *  parent 
)

Definition at line 625 of file mruby.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mruby_pair_list_class()

struct RClass * mruby_pair_list_class ( mrb_state *  mrb,
struct RClass *  parent 
)

Definition at line 611 of file mruby.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mruby_request_class()

struct RClass * mruby_request_class ( mrb_state *  mrb,
struct RClass *  parent 
)

Definition at line 63 of file mruby.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mruby_request_object()

mrb_value mruby_request_object ( mrb_state *  mrb,
struct RClass *  klass,
request_t request 
)

Definition at line 114 of file mruby.c.

+ Here is the caller graph for this function:

◆ mruby_value_pair_object()

mrb_value mruby_value_pair_object ( mrb_state *  mrb,
struct RClass *  klass,
fr_pair_t vp 
)

Definition at line 124 of file mruby.c.

+ Here is the caller graph for this function: