projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add empty plug-in hooks to prevent their elimination by the linker
[babeltrace.git]
/
formats
/
bt-dummy
/
bt-dummy.c
diff --git
a/formats/bt-dummy/bt-dummy.c
b/formats/bt-dummy/bt-dummy.c
index 2f866dc95e3a6cd04e08043fd3576ff8763d56da..fd10ccad39e3f79a500ddf12a87124ec135380ca 100644
(file)
--- a/
formats/bt-dummy/bt-dummy.c
+++ b/
formats/bt-dummy/bt-dummy.c
@@
-38,6
+38,14
@@
#include <unistd.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdlib.h>
+void bt_dummy_hook(void)
+{
+ /*
+ * Dummy function to prevent the linker from discarding this format as
+ * "unused" in static builds.
+ */
+}
+
static
int bt_dummy_write_event(struct bt_stream_pos *ppos, struct ctf_stream_definition *stream)
{
static
int bt_dummy_write_event(struct bt_stream_pos *ppos, struct ctf_stream_definition *stream)
{
This page took
0.023542 seconds
and
4
git commands to generate.