Add LTTNG_EVENT_EXCLUSION_NAME_AT() helper macro
[lttng-tools.git] / src / common / sessiond-comm / sessiond-comm.h
index 67d1bcfaf72e0677d1afd46e7e3e3604dea88d2b..79091e34873a171599b7eabe90a72884c491766c 100644 (file)
@@ -333,9 +333,12 @@ struct lttng_filter_bytecode {
 struct lttng_event_exclusion {
        uint32_t count;
        char padding[LTTNG_EVENT_EXCLUSION_PADDING];
-       char names[LTTNG_SYMBOL_NAME_LEN][0];
+       char names[0][LTTNG_SYMBOL_NAME_LEN];
 } LTTNG_PACKED;
 
+#define LTTNG_EVENT_EXCLUSION_NAME_AT(_exclusion, _i) \
+       (&(_exclusion)->names[_i][0])
+
 /*
  * Data structure for the response from sessiond to the lttng client.
  */
This page took 0.023422 seconds and 4 git commands to generate.