Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
global_datastores.c File Reference

globally-accessible datastore information and callbacks More...

#include "asterisk.h"
#include "asterisk/global_datastores.h"
Include dependency graph for global_datastores.c:

Go to the source code of this file.

Functions

static void secure_call_store_destroy (void *data)
 
static void * secure_call_store_duplicate (void *data)
 

Variables

const struct ast_datastore_info secure_call_info
 

Detailed Description

globally-accessible datastore information and callbacks

Author
Mark Michelson mmich.nosp@m.elso.nosp@m.n@dig.nosp@m.ium..nosp@m.com

Definition in file global_datastores.c.

Function Documentation

◆ secure_call_store_destroy()

static void secure_call_store_destroy ( void *  data)
static

Definition at line 34 of file global_datastores.c.

References ast_free.

35 {
36  struct ast_secure_call_store *store = data;
37 
38  ast_free(store);
39 }
#define ast_free(a)
Definition: astmm.h:182

◆ secure_call_store_duplicate()

static void* secure_call_store_duplicate ( void *  data)
static

Definition at line 41 of file global_datastores.c.

References ast_calloc, ast_secure_call_store::media, NULL, and ast_secure_call_store::signaling.

42 {
43  struct ast_secure_call_store *old = data;
44  struct ast_secure_call_store *new;
45 
46  if (!(new = ast_calloc(1, sizeof(*new)))) {
47  return NULL;
48  }
49  new->signaling = old->signaling;
50  new->media = old->media;
51 
52  return new;
53 }
#define NULL
Definition: resample.c:96
#define ast_calloc(num, len)
A wrapper for calloc()
Definition: astmm.h:204

Variable Documentation

◆ secure_call_info

const struct ast_datastore_info secure_call_info
Initial value:
= {
.type = "encrypt-call",
}
static void secure_call_store_destroy(void *data)
static void * secure_call_store_duplicate(void *data)

Definition at line 54 of file global_datastores.c.

Referenced by func_channel_read(), func_channel_write_real(), and set_security_requirements().