Classes | Typedefs | Functions | Variables
rb_call_credentials.c File Reference
#include <ruby/ruby.h>
#include "rb_call_credentials.h"
#include <ruby/thread.h>
#include "rb_call.h"
#include "rb_event_thread.h"
#include "rb_grpc.h"
#include "rb_grpc_imports.generated.h"
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
Include dependency graph for rb_call_credentials.c:

Go to the source code of this file.

Classes

struct  callback_params
 
struct  grpc_rb_call_credentials
 

Typedefs

typedef struct callback_params callback_params
 
typedef struct grpc_rb_call_credentials grpc_rb_call_credentials
 

Functions

static VALUE grpc_rb_call_credentials_alloc (VALUE cls)
 
static VALUE grpc_rb_call_credentials_callback (VALUE args)
 
static VALUE grpc_rb_call_credentials_callback_rescue (VALUE args, VALUE exception_object)
 
static void grpc_rb_call_credentials_callback_with_gil (void *param)
 
static VALUE grpc_rb_call_credentials_compose (int argc, VALUE *argv, VALUE self)
 
static void grpc_rb_call_credentials_free (void *p)
 
static void grpc_rb_call_credentials_free_internal (void *p)
 
static VALUE grpc_rb_call_credentials_init (VALUE self, VALUE proc)
 
static void grpc_rb_call_credentials_mark (void *p)
 
static void grpc_rb_call_credentials_plugin_destroy (void *state)
 
static int grpc_rb_call_credentials_plugin_get_metadata (void *state, grpc_auth_metadata_context context, grpc_credentials_plugin_metadata_cb cb, void *user_data, grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX], size_t *num_creds_md, grpc_status_code *status, const char **error_details)
 
grpc_call_credentialsgrpc_rb_get_wrapped_call_credentials (VALUE v)
 
VALUE grpc_rb_wrap_call_credentials (grpc_call_credentials *c, VALUE mark)
 
void Init_grpc_call_credentials ()
 

Variables

static rb_data_type_t grpc_rb_call_credentials_data_type
 
static VALUE grpc_rb_cCallCredentials = Qnil
 
static ID id_callback
 

Typedef Documentation

◆ callback_params

◆ grpc_rb_call_credentials

Function Documentation

◆ grpc_rb_call_credentials_alloc()

static VALUE grpc_rb_call_credentials_alloc ( VALUE  cls)
static

Definition at line 226 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_callback()

static VALUE grpc_rb_call_credentials_callback ( VALUE  args)
static

Definition at line 57 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_callback_rescue()

static VALUE grpc_rb_call_credentials_callback_rescue ( VALUE  args,
VALUE  exception_object 
)
static

Definition at line 98 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_callback_with_gil()

static void grpc_rb_call_credentials_callback_with_gil ( void *  param)
static

Definition at line 125 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_compose()

static VALUE grpc_rb_call_credentials_compose ( int  argc,
VALUE *  argv,
VALUE  self 
)
static

Definition at line 293 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_free()

static void grpc_rb_call_credentials_free ( void *  p)
static

Definition at line 194 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_free_internal()

static void grpc_rb_call_credentials_free_internal ( void *  p)
static

Definition at line 182 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_init()

static VALUE grpc_rb_call_credentials_init ( VALUE  self,
VALUE  proc 
)
static

Definition at line 260 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_mark()

static void grpc_rb_call_credentials_mark ( void *  p)
static

Definition at line 200 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_plugin_destroy()

static void grpc_rb_call_credentials_plugin_destroy ( void *  state)
static

Definition at line 177 of file rb_call_credentials.c.

◆ grpc_rb_call_credentials_plugin_get_metadata()

static int grpc_rb_call_credentials_plugin_get_metadata ( void *  state,
grpc_auth_metadata_context  context,
grpc_credentials_plugin_metadata_cb  cb,
void *  user_data,
grpc_metadata  creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX],
size_t *  num_creds_md,
grpc_status_code status,
const char **  error_details 
)
static

Definition at line 160 of file rb_call_credentials.c.

◆ grpc_rb_get_wrapped_call_credentials()

grpc_call_credentials* grpc_rb_get_wrapped_call_credentials ( VALUE  v)

Definition at line 336 of file rb_call_credentials.c.

◆ grpc_rb_wrap_call_credentials()

VALUE grpc_rb_wrap_call_credentials ( grpc_call_credentials c,
VALUE  mark 
)

Definition at line 238 of file rb_call_credentials.c.

◆ Init_grpc_call_credentials()

void Init_grpc_call_credentials ( )

Definition at line 316 of file rb_call_credentials.c.

Variable Documentation

◆ grpc_rb_call_credentials_data_type

rb_data_type_t grpc_rb_call_credentials_data_type
static
Initial value:
= {
"grpc_call_credentials",
{NULL, NULL}},
NULL,
NULL,
}

Definition at line 211 of file rb_call_credentials.c.

◆ grpc_rb_cCallCredentials

VALUE grpc_rb_cCallCredentials = Qnil
static

Definition at line 37 of file rb_call_credentials.c.

◆ id_callback

ID id_callback
static

Definition at line 253 of file rb_call_credentials.c.

GRPC_RB_MEMSIZE_UNAVAILABLE
#define GRPC_RB_MEMSIZE_UNAVAILABLE
Definition: rb_grpc.h:57
grpc_rb_call_credentials_mark
static void grpc_rb_call_credentials_mark(void *p)
Definition: rb_call_credentials.c:200
grpc_rb_call_credentials_free
static void grpc_rb_call_credentials_free(void *p)
Definition: rb_call_credentials.c:194


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:27