Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * SPDX-License-Identifier: MIT | |
3 | * | |
4 | * Copyright 2013, 2014 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
5 | * | |
6 | * Babeltrace CTF Writer | |
7 | */ | |
8 | ||
9 | #include <glib.h> | |
10 | ||
11 | #include "functor.h" | |
12 | #include "utils.h" | |
13 | ||
14 | void value_exists(gpointer element, gpointer search_query) | |
15 | { | |
16 | if (element == ((struct bt_ctf_search_query *)search_query)->value) { | |
17 | ((struct bt_ctf_search_query *)search_query)->found = 1; | |
18 | } | |
19 | } |