mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 15:41:54 +00:00
27 lines
1.1 KiB
C
27 lines
1.1 KiB
C
#ifndef CBOR_SHORTCUTS_H
|
|
#define CBOR_SHORTCUTS_H
|
|
|
|
#include "nest/cbor.h"
|
|
#include "sysdep/config.h"
|
|
#include "lib/birdlib.h"
|
|
#include "nest/protocol.h"
|
|
#include "lib/ip.h"
|
|
|
|
|
|
void cbor_string_string(struct cbor_writer *writer, char *key, const char *value);
|
|
|
|
void cbor_string_int(struct cbor_writer *writer, char *key, int64_t value);
|
|
|
|
void cbor_string_epoch_time(struct cbor_writer *writer, char *key, int64_t time, int shift);
|
|
void cbor_string_relativ_time(struct cbor_writer *writer, char *key, int64_t time, int shift);
|
|
void cbor_string_uint(struct cbor_writer *writer, char *key, u64 value);
|
|
void cbor_string_ip(struct cbor_writer *writer, char *key, ip_addr addr);
|
|
void cbor_string_ipv4(struct cbor_writer *writer, char *key, u32 value);
|
|
void cbor_string_ipv6(struct cbor_writer *writer, char *key, u32 value[4]);
|
|
void cbor_named_block_two_ints(struct cbor_writer *writer, char *key, char *name1, int val1, char *name2, int val2);
|
|
void cbor_write_to_file(struct cbor_writer *writer, char *filename);
|
|
|
|
void cbor_add_net(struct cbor_writer *writer, const net_addr *N);
|
|
|
|
#endif
|