plugin_manager adapt session_manager API and rewrite plugin_manger gtest
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user