plugin_manager adapt session_manager API and rewrite plugin_manger gtest

This commit is contained in:
luwenpeng
2022-08-26 17:33:03 +08:00
parent e3ea4d0729
commit 0ed9a0ccca
52 changed files with 1161 additions and 1575 deletions

View File

@@ -14,7 +14,7 @@ extern "C"
* Public API: For build in
******************************************************************************/
void http_entry(const struct stellar_session *session, enum session_event_type event, const char *payload, size_t len, void **ctx);
void http_entry(struct stellar_session *session, enum session_state state, int thread_id, void **ctx);
/******************************************************************************
* Public API: For http consumer
@@ -56,7 +56,7 @@ struct http_status_line
int minor_version;
};
struct http_decoder *http_session_get_decoder(const struct stellar_session *http_session);
struct http_decoder *http_session_get_decoder(struct stellar_session *http_session);
enum http_event http_decoder_get_event(struct http_decoder *decoder);
/*
@@ -73,7 +73,7 @@ void http_decoder_fetch_next_header(struct http_decoder *decoder, int *iter_inde
* Example: How to implement http consumer
******************************************************************************/
/*
void http_consumer_entry_example(const struct stellar_session *http_session, enum session_event_type event, const char *payload, size_t len, void **ctx)
void http_consumer_entry_example(struct stellar_session *http_session, enum session_event_type event, const char *payload, size_t len, void **ctx)
{
if (event & SESSION_EVENT_OPENING)
{