refactor done, now feature parity with before refactor + ft begins
This commit is contained in:
24
ngc_ft1.cpp
Normal file
24
ngc_ft1.cpp
Normal 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user