ust-ctl: allow runtime version checks
[lttng-ust.git] / src / lib / lttng-ust-ctl / ustctl.c
index 6faaef5ed44ff4fcc88a31b181ddd511c3f87cce..7b6798802e0b04f6058103afa73ae8df4abf3860 100644 (file)
@@ -3294,6 +3294,14 @@ int lttng_ust_ctl_counter_clear(struct lttng_ust_ctl_daemon_counter *counter,
        return counter->ops->counter_clear(counter->counter, dimension_indexes);
 }
 
+int lttng_ust_ctl_get_version(uint32_t *major, uint32_t *minor,
+               uint32_t *patchlevel) {
+       *major = LTTNG_UST_MAJOR_VERSION;
+       *minor = LTTNG_UST_MINOR_VERSION;
+       *patchlevel = LTTNG_UST_PATCHLEVEL_VERSION;
+       return 0;
+}
+
 static
 void lttng_ust_ctl_ctor(void)
        __attribute__((constructor));
This page took 0.023186 seconds and 4 git commands to generate.