Debian Codegraph @

src/OVAL/probes/SEAP/generic/bitmap.h

raw symbols SCIP
1 /*
2 * Copyright 2009 Red Hat Inc., Durham, North Carolina.
3 * All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * Authors:
20 * "Daniel Kopecek" <[email protected]>
21 */
22
23 #pragma once
24 #ifndef BITMAP_H
25 #define BITMAP_Hcxx . . $ `src/OVAL/probes/SEAP/generic/bitmap.h:25:9`!
26
27 #include <stdint.h>
28 #include "../../../../common/util.h"cxx . . $ `<file>/src/common/util.h`/
29
30
31 typedef uint32_tcxx . . $ uint32_t# bitmap_cell_tcxx . . $ bitmap_cell_t#;
32 typedef uint16_tcxx . . $ uint16_t# bitmap_size_tcxx . . $ bitmap_size_t#;
33 typedef int32_tcxx . . $ int32_t# bitmap_bitn_tcxx . . $ bitmap_bitn_t#;
34
35 typedef structcxx . . $ $anonymous_type_ccfb9561c43af652_0# {
36 #if defined(SEAP_THREAD_SAFE)
37 uint8_t locked;
38 #endif
39 bitmap_size_tcxx . . $ bitmap_size_t# sizecxx . . $ $anonymous_type_ccfb9561c43af652_0#size.; /* bit capacity = size * BITMAP_CELLSIZE */
40 bitmap_size_tcxx . . $ bitmap_size_t# realsizecxx . . $ $anonymous_type_ccfb9561c43af652_0#realsize.;
41 bitmap_cell_tcxx . . $ bitmap_cell_t# *cellscxx . . $ $anonymous_type_ccfb9561c43af652_0#cells.;
42 bitmap_bitn_tcxx . . $ bitmap_bitn_t# countcxx . . $ $anonymous_type_ccfb9561c43af652_0#count.;
43 } bitmap_tcxx . . $ bitmap_t#;
44
45 #if defined(SEAP_THREAD_SAFE)
46 # define BITMAP_INITIALIZER { 0, 128, 0, NULL, 0 }
47 #else
48 # define BITMAP_INITIALIZERcxx . . $ `src/OVAL/probes/SEAP/generic/bitmap.h:48:10`! { 128, 0, NULL, 0 }
49 #endif
50
51 #define BITMAP_CELLSIZEcxx . . $ `src/OVAL/probes/SEAP/generic/bitmap.h:51:9`! (sizeof (bitmap_cell_t) * 8)
52
53 bitmap_tcxx . . $ bitmap_t# *bitmap_newcxx . . $ bitmap_new(538d52d70ff53ed1). (bitmap_size_tcxx . . $ bitmap_size_t# size);
54 int *bitmap_initcxx . . $ bitmap_init(ff0b42c5c579569b). (bitmap_tcxx . . $ bitmap_t# *bitmap, bitmap_size_tcxx . . $ bitmap_size_t# size);
55 int *bitmap_reinitcxx . . $ bitmap_reinit(ff0b42c5c579569b). (bitmap_tcxx . . $ bitmap_t# *bitmap, bitmap_size_tcxx . . $ bitmap_size_t# size);
56 int bitmap_setcxx . . $ bitmap_set(67e573966af952d7). (bitmap_tcxx . . $ bitmap_t# *bitmap, bitmap_bitn_tcxx . . $ bitmap_bitn_t# bitn);
57 int bitmap_cascxx . . $ bitmap_cas(df3fdd9eab1c426d). (bitmap_tcxx . . $ bitmap_t# *bitmap, bitmap_bitn_tcxx . . $ bitmap_bitn_t# bitn, int v);
58 int bitmap_unsetcxx . . $ bitmap_unset(67e573966af952d7). (bitmap_tcxx . . $ bitmap_t# *bitmap, bitmap_bitn_tcxx . . $ bitmap_bitn_t# bitn);
59 int bitmap_clearcxx . . $ bitmap_clear(51a957349079d69a). (bitmap_tcxx . . $ bitmap_t# *bitmap);
60 bitmap_bitn_tcxx . . $ bitmap_bitn_t# bitmap_setfreecxx . . $ bitmap_setfree(51a957349079d69a). (bitmap_tcxx . . $ bitmap_t# *bitmap);
61 bitmap_bitn_tcxx . . $ bitmap_bitn_t# bitmap_getfreecxx . . $ bitmap_getfree(51a957349079d69a). (bitmap_tcxx . . $ bitmap_t# *bitmap);
62 void bitmap_freecxx . . $ bitmap_free(80bd7b4154c2ebf9). (bitmap_tcxx . . $ bitmap_t# *bitmap);
63
64
65 #endif