diff options
author | Damjan Marion <damarion@cisco.com> | 2022-05-18 22:16:11 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2022-05-19 18:32:23 +0200 |
commit | cada9eb7894117db898f7c4def92cba5511baa4f (patch) | |
tree | 4cf552e2ad9e67b8bbc144eb5c6cb9aad0a8424b /src/vlibapi/api_helper_macros.h | |
parent | bf95e3efde3402cf2f7beaf6d70433646cc68280 (diff) |
api: refactor api data storage
single struct to hold all api handler, flags, etc.
Provide functions to toggle flags instead of writing directly to
internal data.
Type: refactor
Change-Id: I4730d7290e57489de8eda34a72211527e015b721
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlibapi/api_helper_macros.h')
-rw-r--r-- | src/vlibapi/api_helper_macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlibapi/api_helper_macros.h b/src/vlibapi/api_helper_macros.h index 6b5b37ae746..9c93d33934b 100644 --- a/src/vlibapi/api_helper_macros.h +++ b/src/vlibapi/api_helper_macros.h @@ -30,7 +30,7 @@ #define _NATIVE_TO_NETWORK(t, rmp) \ api_main_t *am = vlibapi_get_main (); \ void (*endian_fp) (void *); \ - endian_fp = am->msg_endian_handlers[t + (REPLY_MSG_ID_BASE)]; \ + endian_fp = am->msg_data[t + (REPLY_MSG_ID_BASE)].endian_handler; \ (*endian_fp) (rmp); #define REPLY_MACRO(msg) \ |