common: compile libcommon as C++
[lttng-tools.git] / src / common / lttng-elf.h
index 524b8784605462a897a30fe75eba05f4799bc4a4..41dd496053bcbc0ac98853d952f536325c059e0d 100644 (file)
 
 #include <lttng/lttng-export.h>
 
-LTTNG_EXPORT int lttng_elf_get_symbol_offset(int fd, char *symbol, uint64_t *offset);
+extern "C" LTTNG_EXPORT
+int lttng_elf_get_symbol_offset(int fd, char *symbol, uint64_t *offset);
 
-LTTNG_EXPORT int lttng_elf_get_sdt_probe_offsets(int fd, const char *provider_name,
+extern "C" LTTNG_EXPORT
+int lttng_elf_get_sdt_probe_offsets(int fd, const char *provider_name,
                const char *probe_name, uint64_t **offsets, uint32_t *nb_probe);
 
 #endif /* _LTTNG_ELF_H */
This page took 0.02307 seconds and 4 git commands to generate.