Visibility hidden by default
[babeltrace.git] / src / plugins / lttng-utils / debug-info / dwarf.h
index 4ab527b0ac41e05684bc63cdd56deca4c1220c78..1482cdf2296a099a612767efd284f99cef79e26f 100644 (file)
@@ -1,38 +1,20 @@
-#ifndef _BABELTRACE_DWARF_H
-#define _BABELTRACE_DWARF_H
-
 /*
- * Babeltrace - DWARF Information Reader
+ * SPDX-License-Identifier: MIT
  *
  * Copyright 2015 Antoine Busque <abusque@efficios.com>
  *
- * Author: Antoine Busque <abusque@efficios.com>
- *
- * 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.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
+ * Babeltrace - DWARF Information Reader
  */
 
+#ifndef _BABELTRACE_DWARF_H
+#define _BABELTRACE_DWARF_H
+
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <dwarf.h>
 #include <elfutils/libdw.h>
-#include "common/babeltrace.h"
+#include "common/macros.h"
 
 /*
  * bt_dwarf is a wrapper over libdw providing a nicer, higher-level
@@ -76,7 +58,6 @@ struct bt_dwarf_die {
  * @returns            Pointer to the new bt_dwarf_cu on success,
  *                     NULL on failure.
  */
-BT_HIDDEN
 struct bt_dwarf_cu *bt_dwarf_cu_create(Dwarf *dwarf_info);
 
 /**
@@ -84,7 +65,6 @@ struct bt_dwarf_cu *bt_dwarf_cu_create(Dwarf *dwarf_info);
  *
  * @param cu   bt_dwarf_cu instance
  */
-BT_HIDDEN
 void bt_dwarf_cu_destroy(struct bt_dwarf_cu *cu);
 
 /**
@@ -97,7 +77,6 @@ void bt_dwarf_cu_destroy(struct bt_dwarf_cu *cu);
  * @returns    0 on success, 1 if no next CU is available,
  *             -1 on failure
  */
-BT_HIDDEN
 int bt_dwarf_cu_next(struct bt_dwarf_cu *cu);
 
 /**
@@ -108,7 +87,6 @@ int bt_dwarf_cu_next(struct bt_dwarf_cu *cu);
  * @returns    Pointer to the new bt_dwarf_die on success,
  *             NULL on failure.
  */
-BT_HIDDEN
 struct bt_dwarf_die *bt_dwarf_die_create(struct bt_dwarf_cu *cu);
 
 /**
@@ -116,7 +94,6 @@ struct bt_dwarf_die *bt_dwarf_die_create(struct bt_dwarf_cu *cu);
  *
  * @param die  bt_dwarf_die instance
  */
-BT_HIDDEN
 void bt_dwarf_die_destroy(struct bt_dwarf_die *die);
 
 /**
@@ -125,7 +102,6 @@ void bt_dwarf_die_destroy(struct bt_dwarf_die *die);
  * @param die  bt_dwarf_die instance
  * @returns    0 if the die no child, 1 otherwise
  */
-BT_HIDDEN
 int bt_dwarf_die_has_children(struct bt_dwarf_die *die);
 
 /**
@@ -136,7 +112,6 @@ int bt_dwarf_die_has_children(struct bt_dwarf_die *die);
  * @returns    0 on success, 1 if no child DIE is available,
  *             -1 on failure
  */
-BT_HIDDEN
 int bt_dwarf_die_child(struct bt_dwarf_die *die);
 
 /**
@@ -156,7 +131,6 @@ int bt_dwarf_die_child(struct bt_dwarf_die *die);
  * @returns    0 on success, 1 if no other siblings are available, -1 on
  *             failure
  */
-BT_HIDDEN
 int bt_dwarf_die_next(struct bt_dwarf_die *die);
 
 /**
@@ -169,7 +143,6 @@ int bt_dwarf_die_next(struct bt_dwarf_die *die);
  * @param tag  Out parameter, the DIE's tag value
  * @returns    0 on success, -1 on failure.
  */
-BT_HIDDEN
 int bt_dwarf_die_get_tag(struct bt_dwarf_die *die, int *tag);
 
 /**
@@ -182,7 +155,6 @@ int bt_dwarf_die_get_tag(struct bt_dwarf_die *die, int *tag);
  * @param name Out parameter, the DIE's name
  * @returns    0 on success, -1 on failure
  */
-BT_HIDDEN
 int bt_dwarf_die_get_name(struct bt_dwarf_die *die, char **name);
 
 /**
@@ -196,7 +168,6 @@ int bt_dwarf_die_get_name(struct bt_dwarf_die *die, char **name);
  *                     callsite
  * @returns            0 on success, -1 on failure
  */
-BT_HIDDEN
 int bt_dwarf_die_get_call_file(struct bt_dwarf_die *die, char **filename);
 
 /**
@@ -210,7 +181,6 @@ int bt_dwarf_die_get_call_file(struct bt_dwarf_die *die, char **filename);
  *                     subroutine's callsite
  * @returns            0 on success, -1 on failure
  */
-BT_HIDDEN
 int bt_dwarf_die_get_call_line(struct bt_dwarf_die *die,
                uint64_t *line_no);
 
@@ -228,7 +198,6 @@ int bt_dwarf_die_get_call_line(struct bt_dwarf_die *die,
  *                     false if not
  * @returns            0 on succes, -1 on failure
  */
-BT_HIDDEN
 int bt_dwarf_die_contains_addr(struct bt_dwarf_die *die, uint64_t addr,
                bool *contains);
 
This page took 0.029825 seconds and 4 git commands to generate.