ITS
constraints.c File Reference
#include "asn_internal.h"
#include "constraints.h"
Include dependency graph for constraints.c:

Go to the source code of this file.

Classes

struct  errbufDesc
 

Functions

int asn_generic_no_constraint (asn_TYPE_descriptor_t *type_descriptor, const void *struct_ptr, asn_app_constraint_failed_f *cb, void *key)
 
int asn_generic_unknown_constraint (asn_TYPE_descriptor_t *type_descriptor, const void *struct_ptr, asn_app_constraint_failed_f *cb, void *key)
 
static void _asn_i_ctfailcb (void *key, asn_TYPE_descriptor_t *td, const void *sptr, const char *fmt,...)
 
int asn_check_constraints (asn_TYPE_descriptor_t *type_descriptor, const void *struct_ptr, char *errbuf, size_t *errlen)
 

Function Documentation

◆ _asn_i_ctfailcb()

static void _asn_i_ctfailcb ( void *  key,
asn_TYPE_descriptor_t td,
const void *  sptr,
const char *  fmt,
  ... 
)
static

Definition at line 38 of file constraints.c.

References errbufDesc::errbuf, errbufDesc::errlen, errbufDesc::failed_struct_ptr, and errbufDesc::failed_type.

Referenced by asn_check_constraints().

Here is the caller graph for this function:

◆ asn_check_constraints()

int asn_check_constraints ( asn_TYPE_descriptor_t type_descriptor,
const void *  struct_ptr,
char *  errbuf,
size_t *  errlen 
)

Definition at line 76 of file constraints.c.

References _asn_i_ctfailcb(), asn_TYPE_descriptor_s::check_constraints, errbufDesc::errbuf, errbufDesc::errlen, errbufDesc::failed_struct_ptr, and errbufDesc::failed_type.

Here is the call graph for this function:

◆ asn_generic_no_constraint()

int asn_generic_no_constraint ( asn_TYPE_descriptor_t type_descriptor,
const void *  struct_ptr,
asn_app_constraint_failed_f cb,
void *  key 
)

Definition at line 5 of file constraints.c.

◆ asn_generic_unknown_constraint()

int asn_generic_unknown_constraint ( asn_TYPE_descriptor_t type_descriptor,
const void *  struct_ptr,
asn_app_constraint_failed_f cb,
void *  key 
)

Definition at line 18 of file constraints.c.