Real Time Open Sound Control librtosc
arg-val-cmp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Johannes Lorenz
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
32 #ifndef ARG_VAL_CMP
33 #define ARG_VAL_CMP
34 
35 #include <rtosc/rtosc.h>
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41 /*
42  * arg val comparing helpers
43  */
44 int rtosc_arg_vals_cmp_has_next(const rtosc_arg_val_itr* litr,
45  const rtosc_arg_val_itr* ritr,
46  size_t lsize, size_t rsize);
47 int rtosc_arg_vals_eq_after_abort(const rtosc_arg_val_itr* litr,
48  const rtosc_arg_val_itr* ritr,
49  size_t lsize, size_t rsize);
50 int rtosc_arg_vals_eq_single(const rtosc_arg_val_t* _lhs,
51  const rtosc_arg_val_t* _rhs,
52  const rtosc_cmp_options* opt);
53 int rtosc_arg_vals_cmp_single(const rtosc_arg_val_t* _lhs,
54  const rtosc_arg_val_t* _rhs,
55  const rtosc_cmp_options* opt);
56 
64 int rtosc_arg_vals_eq(const rtosc_arg_val_t *lhs, const rtosc_arg_val_t *rhs,
65  size_t lsize, size_t rsize,
66  const rtosc_cmp_options* opt);
67 
82 int rtosc_arg_vals_cmp(const rtosc_arg_val_t *lhs, const rtosc_arg_val_t *rhs,
83  size_t lsize, size_t rsize,
84  const rtosc_cmp_options* opt);
85 
86 #ifdef __cplusplus
87 };
88 #endif
89 #endif // ARG_VAL_CMP
Definition: rtosc.h:86
Functions handling messages and arguments.
int rtosc_arg_vals_cmp(const rtosc_arg_val_t *lhs, const rtosc_arg_val_t *rhs, size_t lsize, size_t rsize, const rtosc_cmp_options *opt)
Compare two arrays of rtosc_arg_val_t.
Iterator over arg values.
Definition: rtosc.h:185
int rtosc_arg_vals_eq(const rtosc_arg_val_t *lhs, const rtosc_arg_val_t *rhs, size_t lsize, size_t rsize, const rtosc_cmp_options *opt)
Check if two arrays of rtosc_arg_val_t are equal.
Definition: rtosc.h:169