Fix: lib: add NULL check for destroy_listeners in destroy_component_class
[babeltrace.git] / src / ctf-writer / functor.c
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 BT_HIDDEN
15 void value_exists(gpointer element, gpointer search_query)
16 {
17 if (element == ((struct bt_ctf_search_query *)search_query)->value) {
18 ((struct bt_ctf_search_query *)search_query)->found = 1;
19 }
20 }
This page took 0.028829 seconds and 4 git commands to generate.