Skip to content

Commit

Permalink
type update
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Schore <mike.schore@gmail.com>
  • Loading branch information
goaway committed Sep 22, 2020
1 parent 6bf647a commit 58fa5d3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

#include "envoy/http/filter.h"

const envoy_data envoy_unaltered_data = {0};

const envoy_headers envoy_unaltered_headers = {0};

const envoy_filter_headers_status_t kEnvoyFilterHeadersStatusContinue =
static_cast<envoy_filter_headers_status_t>(Envoy::Http::FilterHeadersStatus::Continue);
const envoy_filter_headers_status_t kEnvoyFilterHeadersStatusStopIteration =
Expand Down
16 changes: 13 additions & 3 deletions library/common/extensions/filters/http/platform_bridge/c_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

// NOLINT(namespace-envoy)

/**
* Convenience constant indicating no changes to data.
*/
extern const envoy_data envoy_unaltered_data;

/**
* Convenience constant indicating no changes to headers.
*/
extern const envoy_headers envoy_unaltered_headers;

/**
* Return codes for on-headers filter invocations. @see envoy/http/filter.h
*/
Expand Down Expand Up @@ -37,7 +47,7 @@ extern const envoy_filter_data_status_t kEnvoyFilterDataStatusResumeIteration;
typedef struct {
envoy_filter_data_status_t status;
envoy_data data;
envoy_headers extra_headers;
envoy_headers* extra_headers;
} envoy_filter_data_status;

/**
Expand All @@ -54,8 +64,8 @@ extern const envoy_filter_trailers_status_t kEnvoyFilterTrailersStatusResumeIter
typedef struct {
envoy_filter_trailers_status_t status;
envoy_headers trailers;
envoy_headers extra_headers;
envoy_data extra_data;
envoy_headers* extra_headers;
envoy_data* extra_data;
} envoy_filter_trailers_status;

#ifdef __cplusplus
Expand Down

0 comments on commit 58fa5d3

Please sign in to comment.