ctf: append error causes when returning errors
[babeltrace.git] / src / plugins / ctf / common / metadata / decoder.h
index 21a297802002cee88597bf9836a3f07279d808a2..7c5a8b7e8490077f2b86cad95dbba7a8ff1382c1 100644 (file)
@@ -1,20 +1,12 @@
-#ifndef _METADATA_DECODER_H
-#define _METADATA_DECODER_H
-
 /*
- * Copyright 2016-2017 - Philippe Proulx <pproulx@efficios.com>
+ * SPDX-License-Identifier: MIT
  *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
+ * Copyright 2016-2017 Philippe Proulx <pproulx@efficios.com>
  */
 
+#ifndef _METADATA_DECODER_H
+#define _METADATA_DECODER_H
+
 #include <stdint.h>
 #include <stdbool.h>
 
@@ -43,8 +35,12 @@ struct ctf_metadata_decoder_config {
        /* Active log level to use */
        bt_logging_level log_level;
 
-       /* Component to use for logging (can be `NULL`); weak */
+       /*
+        * Component or component class to use for logging (exactly one of
+        * them must be non-`NULL`); weak
+        */
        bt_self_component *self_comp;
+       bt_self_component_class *self_comp_class;
 
        /* Additional clock class offset to apply */
        int64_t clock_class_offset_s;
This page took 0.023598 seconds and 4 git commands to generate.