|
DTNMA Reference Tools v2.1.0 - 13.gc5c0bac
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
#include <cace/config.h>#include <cace/ari.h>#include <cace/ari/text.h>#include <cace/ari/cbor.h>#include <cace/ari/text_util.h>#include <cace/util/logging.h>#include <qcbor/qcbor_decode.h>#include <getopt.h>#include <errno.h>#include <stdio.h>#include <string.h>#include <strings.h>
Include dependency graph for cace_ari.c:Macros | |
| #define | CBOR_STORE_WANT 1024 |
Enumerations | |
| enum | cace_ari_form_t { CACE_ARI_FORM_INVALID , CACE_ARI_FORM_AUTO , CACE_ARI_FORM_TEXT , CACE_ARI_FORM_CBOR , CACE_ARI_FORM_CBORHEX } |
Functions | |
| static cace_ari_form_t | get_form (const char *text) |
| static FILE * | get_file (const char *name, const char *mode) |
| static int | read_text (cace_ari_t *inval, FILE *source) |
| Read a single value and indicate whether to continue reading. | |
| static int | read_cbor (cace_ari_t *inval, FILE *source) |
| static int | read_cborhex (cace_ari_t *inval, FILE *source) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| static int | read_auto (cace_ari_form_t *inform, cace_ari_form_t *outform, cace_ari_t *inval, FILE *source) |
| static int | write_text (const cace_ari_t *val, FILE *dest, cace_ari_text_enc_opts_t opts) |
| static int | write_cbor (const cace_ari_t *val, FILE *dest) |
| static int | write_cborhex (const cace_ari_t *val, FILE *dest) |
| static void | show_usage (const char *argv0) |
| int | main (int argc, char *argv[]) |
| #define CBOR_STORE_WANT 1024 |
| enum cace_ari_form_t |
|
static |
Referenced by main().
|
static |
References CACE_ARI_FORM_AUTO, CACE_ARI_FORM_CBOR, CACE_ARI_FORM_CBORHEX, CACE_ARI_FORM_INVALID, and CACE_ARI_FORM_TEXT.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References cace_ari_deinit(), CACE_ARI_FORM_AUTO, CACE_ARI_FORM_CBOR, CACE_ARI_FORM_CBORHEX, CACE_ARI_FORM_INVALID, CACE_ARI_FORM_TEXT, CACE_ARI_INIT_UNDEFINED, CACE_ARI_TEXT_ENC_OPTS_DEFAULT, cace_closelog(), CACE_LOG_DEBUG, cace_log_get_severity(), cace_log_set_least_severity(), cace_openlog(), get_file(), get_form(), log_limit, read_auto(), read_cbor(), read_cborhex(), read_text(), show_usage(), write_cbor(), write_cborhex(), and write_text().
|
static |
References CACE_ARI_FORM_CBORHEX, CACE_ARI_FORM_TEXT, read_cborhex(), and read_text().
Referenced by main().
|
static |
References cace_ari_cbor_decode(), cace_data_append_from(), cace_data_extend_front(), CACE_DATA_INIT_NULL, CACE_FREE, CBOR_STORE_WANT, errm, and store.
Referenced by main().
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References cace_ari_cbor_decode(), cace_base16_decode(), cace_data_deinit(), cace_data_init(), CACE_FREE, and errm.
Referenced by main(), and read_auto().
|
static |
Read a single value and indicate whether to continue reading.
References cace_ari_text_decode(), CACE_FREE, and errm.
Referenced by main(), and read_auto().
|
static |
References ARI_TEXT_PARSE.
Referenced by main().
|
static |
References cace_ari_cbor_encode(), cace_data_deinit(), cace_data_init(), cace_data_t::len, and cace_data_t::ptr.
Referenced by main().
|
static |
References cace_ari_cbor_encode(), cace_base16_encode(), cace_data_deinit(), and cace_data_init().
Referenced by main().
|
static |
References cace_ari_text_encode().
Referenced by main().