GRU - Generic Reusable Utilities
Loading...
Searching...
No Matches
gru_collection_callbacks.h
Go to the documentation of this file.
1/*
2 Copyright 2016 Otavio Rodolfo Piske
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16#ifndef GRU_COLLECTION_CALLBACKS_H
17#define GRU_COLLECTION_CALLBACKS_H
18
19#include <stdbool.h>
20
21#include "gru_node_info.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
30typedef bool (*compare_function_t)(const void *, const void *data, void *result);
31
35typedef void (*handle_function_t)(const void *, void *);
36
40typedef void (*handle_function_info_t)(const void *, gru_node_info_t info, void *);
41
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif /* GRU_COLLECTION_CALLBACKS_H */
bool(* compare_function_t)(const void *, const void *data, void *result)
Comparator function for the collections module.
Definition: gru_collection_callbacks.h:30
void(* handle_function_info_t)(const void *, gru_node_info_t info, void *)
A handler function for the collections module that also receiver node information.
Definition: gru_collection_callbacks.h:40
handle_function_t tree_callback_fn
Definition: gru_collection_callbacks.h:42
void(* handle_function_t)(const void *, void *)
Handler function for the collections module.
Definition: gru_collection_callbacks.h:35
Node information container.
Definition: gru_node_info.h:28