diff options
author | vkalintiris <vasilis@netdata.cloud> | 2024-01-13 11:26:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-13 11:26:32 +0200 |
commit | 3423b5ea83929c20e58ea655413abb6af03ed8e4 (patch) | |
tree | 1f496fbe68a55e832e43454124a4c4ad764f558e /libnetdata | |
parent | cf1c82931fd68abaf564b38f094884fc52320e56 (diff) |
Remove h2o header from libnetdata (#16780)
* Limit scope of includes
* Remove h2o header from libnetdata
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/buffer/buffer.c | 9 | ||||
-rw-r--r-- | libnetdata/buffer/buffer.h | 8 |
2 files changed, 0 insertions, 17 deletions
diff --git a/libnetdata/buffer/buffer.c b/libnetdata/buffer/buffer.c index 3e91fc1071..21902dd4d7 100644 --- a/libnetdata/buffer/buffer.c +++ b/libnetdata/buffer/buffer.c @@ -492,12 +492,3 @@ int buffer_unittest(void) { buffer_free(wb); return errors; } - -#ifdef ENABLE_H2O -h2o_iovec_t buffer_to_h2o_iovec(BUFFER *wb) { - h2o_iovec_t ret; - ret.base = wb->buffer; - ret.len = wb->len; - return ret; -} -#endif diff --git a/libnetdata/buffer/buffer.h b/libnetdata/buffer/buffer.h index bffcf6e1e4..900907d491 100644 --- a/libnetdata/buffer/buffer.h +++ b/libnetdata/buffer/buffer.h @@ -6,10 +6,6 @@ #include "../string/utf8.h" #include "../libnetdata.h" -#ifdef ENABLE_H2O -#include "h2o/memory.h" -#endif - #define BUFFER_JSON_MAX_DEPTH 32 // max is 255 extern const char hex_digits[16]; @@ -117,10 +113,6 @@ void buffer_char_replace(BUFFER *wb, char from, char to); void buffer_print_sn_flags(BUFFER *wb, SN_FLAGS flags, bool send_anomaly_bit); -#ifdef ENABLE_H2O -h2o_iovec_t buffer_to_h2o_iovec(BUFFER *wb); -#endif - static inline void buffer_need_bytes(BUFFER *buffer, size_t needed_free_size) { if(unlikely(buffer->len + needed_free_size >= buffer->size)) buffer_increase(buffer, needed_free_size + 1); |