f9c6bc221e
- Extracted webserver (13.5MB) from safeline-mgt:9.3.9 - Extracted tcontrollerd (12MB) from safeline-tengine:9.3.9 - Extracted nginx from safeline-tengine:9.3.9 - Extracted libfusion.so (127MB) FVM engine from safeline-fvm:9.3.9 - Added musl libc for Alpine-based containers - Created proper FVM C headers matching libfusion.so API - Added install_full.sh for complete deployment
27 lines
753 B
C
27 lines
753 B
C
#ifndef FVM_COMPILER_H
|
|
#define FVM_COMPILER_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
#include <fvm-c/update.h>
|
|
|
|
typedef struct fvm_compiler fvm_compiler_t;
|
|
|
|
typedef struct {
|
|
fvm_buf_t buf;
|
|
} fvm_output_t;
|
|
|
|
fvm_compiler_t *fvm_compiler_acquire(const char *api_table);
|
|
void fvm_compiler_release(fvm_compiler_t *compiler);
|
|
|
|
bool fvm_compiler_load_re(fvm_compiler_t *compiler, const char *re, size_t re_len);
|
|
bool fvm_compiler_dump_re(fvm_compiler_t *compiler, char **out, size_t *out_len);
|
|
|
|
fvm_output_t *fvm_compile(fvm_compiler_t *compiler, const char *text);
|
|
fvm_output_t *fvm_serialize(fvm_output_t *output, bool diff, long base, long target);
|
|
void fvm_output_destroy(fvm_output_t *output);
|
|
|
|
fvm_update_t *fvm_dump(fvm_framework_t *fw);
|
|
|
|
#endif
|