mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-15 21:41:56 +00:00
abd8a9af41
It reads some data, the actions are not implemented yet.
26 lines
658 B
C
26 lines
658 B
C
#define _GNU_SOURCE
|
|
|
|
#ifndef INCLUDE_FLOCK_H
|
|
#define INCLUDE_FLOCK_H
|
|
#include "lib/birdlib.h"
|
|
#include "lib/resource.h"
|
|
|
|
void hypervisor_exposed_fork(void);
|
|
void hypervisor_control_socket(void);
|
|
|
|
struct flock_config {
|
|
const char *hypervisor_name;
|
|
const char *exec_name;
|
|
const char *control_socket_path;
|
|
};
|
|
|
|
extern struct flock_config flock_config;
|
|
|
|
struct cbor_parser_context *hcs_parser_init(pool *p);
|
|
s64 hcs_parse(struct cbor_parser_context *ctx, const byte *buf, s64 size);
|
|
void hcs_parser_cleanup(struct cbor_parser_context *ctx);
|
|
const char *hcs_error(struct cbor_parser_context *ctx);
|
|
bool hcs_complete(struct cbor_parser_context *ctx);
|
|
|
|
#endif
|