refactor done, now feature parity with before refactor + ft begins

This commit is contained in:
2022-10-03 03:23:38 +02:00
parent 5d6a5d8c01
commit ad55a345b2
3 changed files with 37 additions and 14 deletions

24
ngc_ft1.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "./ngc_ft1.h"
#include "ngc_ext_common.hpp"
struct NGC_FT1 {
NGC_FT1_options options;
};
bool NGC_FT1_init(NGC_EXT_CTX* ngc_ext_ctx, const struct NGC_FT1_options* options) {
ngc_ext_ctx->ngc_ft1_ctx = new NGC_FT1;
ngc_ext_ctx->ngc_ft1_ctx->options = *options;
//ngc_ext_ctx->callbacks[HS1_REQUEST_LAST_IDS] = _handle_HS1_REQUEST_LAST_IDS;
//ngc_ext_ctx->callbacks[HS1_RESPONSE_LAST_IDS] = _handle_HS1_RESPONSE_LAST_IDS;
return true;
}
void NGC_FT1_kill(NGC_EXT_CTX* ngc_ext_ctx) {
delete ngc_ext_ctx->ngc_ft1_ctx;
ngc_ext_ctx->ngc_ft1_ctx = nullptr;
}