feat: add compiled binaries and stub build system
- Compiled webserver and tcontrollerd for Linux amd64 - Added CGo stubs to build without FVM library - Added private module stubs (errors, log, settings) - Added proto stubs for gRPC - Added install.sh deployment script - Fixed auth.go type error and TOTP clock skew bypass
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#ifndef FVM_COMPILER_H
|
||||
#define FVM_COMPILER_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct fvm_compiler fvm_compiler_t;
|
||||
typedef struct fvm_output 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);
|
||||
void fvm_output_destroy(fvm_output_t *output);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef FVM_FRAMEWORK_H
|
||||
#define FVM_FRAMEWORK_H
|
||||
|
||||
#include <ct/string.h>
|
||||
|
||||
typedef struct fvm_framework fvm_framework_t;
|
||||
|
||||
fvm_framework_t *fvm_framework_acquire(void *config);
|
||||
void fvm_framework_release(fvm_framework_t *fw);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,13 @@
|
||||
#ifndef FVM_PLOT_H
|
||||
#define FVM_PLOT_H
|
||||
|
||||
#include <ct/string.h>
|
||||
|
||||
typedef struct {
|
||||
ct_string_t buf;
|
||||
} fvm_plot_t;
|
||||
|
||||
fvm_plot_t *fvm_plot(fvm_framework_t *fw);
|
||||
void fvm_plot_destroy(fvm_plot_t *plot);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef FVM_UPDATE_H
|
||||
#define FVM_UPDATE_H
|
||||
|
||||
#include <ct/string.h>
|
||||
|
||||
typedef struct {
|
||||
ct_string_t buf;
|
||||
} fvm_update_t;
|
||||
|
||||
fvm_update_t *fvm_update_create(ct_string_t data);
|
||||
fvm_update_t *fvm_update_merge(fvm_update_t *base, fvm_update_t *patch);
|
||||
void fvm_update_destroy(fvm_update_t *update);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user