This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new e767e61e9 Reduce the size of the APIHooks, eliminating enum gap (#9509)
e767e61e9 is described below
commit e767e61e966970db436962f9fe3a4506326084bc
Author: Leif Hedstrom <[email protected]>
AuthorDate: Sun Mar 12 10:25:54 2023 -0600
Reduce the size of the APIHooks, eliminating enum gap (#9509)
This is an ABI incompatible change.
---
include/ts/apidefs.h.in | 2 +-
src/traffic_server/InkAPITest.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/ts/apidefs.h.in b/include/ts/apidefs.h.in
index 143fcf1f3..0e5795763 100644
--- a/include/ts/apidefs.h.in
+++ b/include/ts/apidefs.h.in
@@ -481,7 +481,7 @@ typedef enum {
// Putting the SSL hooks in the same enum space
// So both sets of hooks can be set by the same Hook function
- TS_SSL_FIRST_HOOK = 201,
+ TS_SSL_FIRST_HOOK,
TS_VCONN_START_HOOK = TS_SSL_FIRST_HOOK,
TS_VCONN_PRE_ACCEPT_HOOK = TS_VCONN_START_HOOK, // Deprecated but compatible
for now.
TS_VCONN_CLOSE_HOOK,
diff --git a/src/traffic_server/InkAPITest.cc b/src/traffic_server/InkAPITest.cc
index b7b7cacbf..86497b6de 100644
--- a/src/traffic_server/InkAPITest.cc
+++ b/src/traffic_server/InkAPITest.cc
@@ -6636,7 +6636,7 @@ enum ORIG_TSHttpHookID {
ORIG_TS_HTTP_REQUEST_BUFFER_READ_COMPLETE_HOOK,
ORIG_TS_HTTP_RESPONSE_CLIENT_HOOK,
ORIG_TS_HTTP_REQUEST_CLIENT_HOOK,
- ORIG_TS_SSL_FIRST_HOOK = 201,
+ ORIG_TS_SSL_FIRST_HOOK,
ORIG_TS_VCONN_START_HOOK = ORIG_TS_SSL_FIRST_HOOK,
ORIG_TS_VCONN_CLOSE_HOOK,
ORIG_TS_SSL_CLIENT_HELLO_HOOK,