aboutsummaryrefslogtreecommitdiff
path: root/src/lib/third_party/include/roaring.h
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2023-09-24 22:50:22 +0200
committerlns <matzeton@googlemail.com>2023-09-24 22:50:22 +0200
commit7fde1db6a4b00696c433de8498e88e3928d6d757 (patch)
tree9010a0326b2f5c2edf975a3c974160c30a123231 /src/lib/third_party/include/roaring.h
parent725fcf4852f06e2f54469c2439d13169d5d68d09 (diff)
Added printf/fprintf replacement for some internal modules.improved/logging_callback_ndpi_printf
* logging is instead redirected to `ndpi_debug_printf` Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/third_party/include/roaring.h')
-rw-r--r--src/lib/third_party/include/roaring.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/third_party/include/roaring.h b/src/lib/third_party/include/roaring.h
index 117f861b4..500ba9cb9 100644
--- a/src/lib/third_party/include/roaring.h
+++ b/src/lib/third_party/include/roaring.h
@@ -259,10 +259,13 @@ static inline void roaring_bitmap_set_copy_on_write(roaring_bitmap_t* r,
roaring_bitmap_t *roaring_bitmap_add_offset(const roaring_bitmap_t *bm,
int64_t offset);
+
+#ifdef NDPI_ENABLE_DEBUG_MESSAGES
/**
* Describe the inner structure of the bitmap.
*/
void roaring_bitmap_printf_describe(const roaring_bitmap_t *r);
+#endif
/**
* Creates a new bitmap from a list of uint32_t integers
@@ -286,10 +289,12 @@ roaring_bitmap_t *roaring_bitmap_copy(const roaring_bitmap_t *r);
bool roaring_bitmap_overwrite(roaring_bitmap_t *dest,
const roaring_bitmap_t *src);
+#ifdef NDPI_ENABLE_DEBUG_MESSAGES
/**
* Print the content of the bitmap.
*/
void roaring_bitmap_printf(const roaring_bitmap_t *r);
+#endif
/**
* Computes the intersection between two bitmaps and returns new bitmap. The