| 1 | /* |
| 2 | * Copyright 2010 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 | #ifndef RBT_STR_H |
| 23 | #define RBT_STR_Hcxx . . $ `src/OVAL/probes/SEAP/generic/rbt/rbt_str.h:23:9`! |
| 24 | |
| 25 | #include "rbt_common.h"cxx . . $ `<file>/src/OVAL/probes/SEAP/generic/rbt/rbt_common.h`/ |
| 26 | |
| 27 | struct rbt_str_nodecxx . . $ rbt_str_node# { |
| 28 | char *keycxx . . $ rbt_str_node#key.; |
| 29 | void *datacxx . . $ rbt_str_node#data.; |
| 30 | }; |
| 31 | |
| 32 | typedef struct rbt_str_nodecxx . . $ rbt_str_node# rbt_str_node_tcxx . . $ rbt_str_node_t#; |
| 33 | |
| 34 | static inline struct rbt_str_nodecxx . . $ rbt_str_node# *rbt_str_nodecxx . . $ rbt_str_node(c08d81df1cfaabdf).(const struct rbt_nodecxx . . $ rbt_node# *np) |
| 35 | { |
| 36 | struct rbt_str_nodecxx . . $ rbt_str_node# *str_node = (struct rbt_str_nodecxx . . $ rbt_str_node# *)(rbt_node_ptrcxx . . $ rbt_node_ptr(a7124440667b6d30).(np)->_nodecxx . . $ rbt_node#_node.); |
| 37 | return str_node; |
| 38 | } |
| 39 | |
| 40 | rbt_tcxx . . $ rbt_t# *rbt_str_newcxx . . $ rbt_str_new(557e4aca7c153cb). (void); |
| 41 | void rbt_str_freecxx . . $ rbt_str_free(c2e6369c3901716e). (rbt_tcxx . . $ rbt_t# *rbt); |
| 42 | void rbt_str_free_cbcxx . . $ rbt_str_free_cb(d6c6edd7b040d8d5). (rbt_tcxx . . $ rbt_t# *rbt, void (*callback)(struct rbt_str_nodecxx . . $ rbt_str_node# *)); |
| 43 | void rbt_str_free_cb2cxx . . $ rbt_str_free_cb2(57a8905ddba3f9a3). (rbt_tcxx . . $ rbt_t# *rbt, void (*callback)(struct rbt_str_nodecxx . . $ rbt_str_node# *, void *user), void *user); |
| 44 | |
| 45 | int rbt_str_addcxx . . $ rbt_str_add(d471093ac4c699c2).(rbt_tcxx . . $ rbt_t# *rbt, char *key, void *data); |
| 46 | void *rbt_str_repcxx . . $ rbt_str_rep(c77a0ebda171103a).(rbt_tcxx . . $ rbt_t# *rbt, const char *key, void *data); |
| 47 | int rbt_str_delcxx . . $ rbt_str_del(3cd4f904f7b02e6c).(rbt_tcxx . . $ rbt_t# *rbt, const char *key, void **n); |
| 48 | int rbt_str_getnodecxx . . $ rbt_str_getnode(6894629c5d675ab5).(rbt_tcxx . . $ rbt_t# *rbt, const char *key, struct rbt_str_nodecxx . . $ rbt_str_node# **node); |
| 49 | int rbt_str_getcxx . . $ rbt_str_get(3cd4f904f7b02e6c).(rbt_tcxx . . $ rbt_t# *rbt, const char *key, void **data); |
| 50 | |
| 51 | int rbt_str_walk_preordercxx . . $ rbt_str_walk_preorder(f14df7593322124e).(rbt_tcxx . . $ rbt_t# *rbt, int (*callback)(struct rbt_str_nodecxx . . $ rbt_str_node# *), rbt_walk_tcxx . . $ rbt_walk_t# flags); |
| 52 | int rbt_str_walk_inordercxx . . $ rbt_str_walk_inorder(f14df7593322124e).(rbt_tcxx . . $ rbt_t# *rbt, int (*callback)(struct rbt_str_nodecxx . . $ rbt_str_node# *), rbt_walk_tcxx . . $ rbt_walk_t# flags); |
| 53 | int rbt_str_walk_inorder2cxx . . $ rbt_str_walk_inorder2(1f9f5f59823fc556).(rbt_tcxx . . $ rbt_t# *rbt, int (*callback)(struct rbt_str_nodecxx . . $ rbt_str_node# *, void *), void *user, rbt_walk_tcxx . . $ rbt_walk_t# flags); |
| 54 | int rbt_str_walk_postordercxx . . $ rbt_str_walk_postorder(f14df7593322124e).(rbt_tcxx . . $ rbt_t# *rbt, int (*callback)(struct rbt_str_nodecxx . . $ rbt_str_node# *), rbt_walk_tcxx . . $ rbt_walk_t# flags); |
| 55 | int rbt_str_walk_levelordercxx . . $ rbt_str_walk_levelorder(f14df7593322124e).(rbt_tcxx . . $ rbt_t# *rbt, int (*callback)(struct rbt_str_nodecxx . . $ rbt_str_node# *), rbt_walk_tcxx . . $ rbt_walk_t# flags); |
| 56 | int rbt_str_walkcxx . . $ rbt_str_walk(f5bf59eee56ddbd).(rbt_tcxx . . $ rbt_t# *rbt, rbt_walk_tcxx . . $ rbt_walk_t# type, int (*callback)(struct rbt_str_nodecxx . . $ rbt_str_node# *)); |
| 57 | size_t rbt_str_sizecxx . . $ rbt_str_size(6ae908cc234686bf).(rbt_tcxx . . $ rbt_t# *rbt); |
| 58 | |
| 59 | #endif /* RBT_STR_H */ |