Debian Codegraph @

src/OVAL/probes/public/probe-api.h

raw symbols SCIP
1 /**
2 * @file probe-api.h
3 * @brief Probe API public header
4 * @author "Daniel Kopecek" <[email protected]>
5 * @author "Tomas Heinrich" <[email protected]>
6 *
7 * @addtogroup PROBEAPI
8 * This file contains functions for manipulating with the S-exp representation
9 * of OVAL objects and items. Currently object and items have the same structure
10 * and the API distinction is just formal. However, the structure can diverge in
11 * the future and the API functions for manipulating with items should be used
12 * only with items and vice versa. The most recent description of the object and
13 * item structure can be found in this file and should be used as the main source
14 * of information for implementing new API functions. In the following text, the
15 * term `element' referers to the general structure which is used to represent
16 * the various components of an OVAL document, particularly the OVAL objects,
17 * items and entities.
18 *
19 * \paragraph Element structure
20 * The basic structure of an element looks like this:\n
21 * \n
22 * (foo_object bar)\n
23 * \n
24 * \em foo_object is the element name and \em bar is the value of the element. There
25 * can be 0 to n values. In case the element has some attributes set the structure
26 * changes to:\n
27 * \n
28 * ((foo_object :attr1 val1) bar)\n
29 * \n
30 * where \em attr1 is the name of the attribute and \em val1 is the attribute's value.
31 * The colon in the attribute name signals that the attribute has a value.
32 *
33 * @{
34 */
35 /*
36 * Copyright 2009 Red Hat Inc., Durham, North Carolina.
37 * All Rights Reserved.
38 *
39 * This library is free software; you can redistribute it and/or
40 * modify it under the terms of the GNU Lesser General Public
41 * License as published by the Free Software Foundation; either
42 * version 2.1 of the License, or (at your option) any later version.
43 *
44 * This library is distributed in the hope that it will be useful,
45 * but WITHOUT ANY WARRANTY; without even the implied warranty of
46 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
47 * Lesser General Public License for more details.
48 *
49 * You should have received a copy of the GNU Lesser General Public
50 * License along with this library; if not, write to the Free Software
51 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
52 *
53 * Authors:
54 * Daniel Kopecek <[email protected]>
55 */
56
57 #pragma once
58 #ifndef PROBE_API_H
59 #define PROBE_API_Hcxx . . $ `src/OVAL/probes/public/probe-api.h:59:9`!
60
61 #include <stdarg.h>
62 #include <stdint.h>
63 #include <stdbool.h>
64 #include <pthread.h>
65 #include <oval_definitions.h>cxx . . $ `<file>/src/OVAL/public/oval_definitions.h`/
66 #include <oval_system_characteristics.h>cxx . . $ `<file>/src/OVAL/public/oval_system_characteristics.h`/
67 #include <oval_results.h>cxx . . $ `<file>/src/OVAL/public/oval_results.h`/
68 #include <oval_types.h>cxx . . $ `<file>/src/OVAL/public/oval_types.h`/
69 #include "sexp-types.h"cxx . . $ `<file>/src/OVAL/probes/SEAP/public/sexp-types.h`/
70 #include "oscap_export.h"cxx . . $ `<file>/src/common/public/oscap_export.h`/
71 #include "list.h"cxx . . $ `<file>/src/common/list.h`/
72
73 /*
74 * items
75 */
76
77 /**
78 * Create a new item consisting of a name, optional attributes argument and an arbitrary number of entities.
79 * Every entity is a triple:
80 * const char *name - name of the new entity
81 * SEXP_t attrs - optional list of entity attributes in a sexp, can be NULL
82 * SEXP_t val - value of the new entity in a sexp
83 * This function increments its SEXP_t arguments' reference count.
84 * @param name mandatory name argument
85 * @param attrs optional item's attributes argument
86 * @param ... arbitrary number of entity arguments
87 */
88 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_item_creatcxx . . $ probe_item_creat(7fa6a2e8307f6614).(const char *name, SEXP_tcxx . . $ SEXP_t# * attrs, ...);
89
90 /**
91 * Create a new item with just a name and optional attributes argument.
92 * @param name item's name
93 * @param attrs optional attributes argument
94 */
95 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_item_newcxx . . $ probe_item_new(ca18d10048afa0ff).(const char *name, SEXP_tcxx . . $ SEXP_t# * attrs);
96
97 /**
98 * Add a new attribute to an item.
99 * This function increments its val argument's reference count.
100 * @param item the item to be modified
101 * @param name name of the new attribute
102 * @param val value of the new attribute
103 */
104 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_item_attr_addcxx . . $ probe_item_attr_add(733bdcb6a09ce7ed).(SEXP_tcxx . . $ SEXP_t# * item, const char *name, SEXP_tcxx . . $ SEXP_t# * val);
105
106 /**
107 * Add a new entity to an item.
108 * This function increments its attrs and val arguments' reference count.
109 * @param item the item to be modified
110 * @param name name of the new entity
111 * @param attrs optional attributes of the new entity
112 * @param val value of the new entity
113 */
114 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_item_ent_addcxx . . $ probe_item_ent_add(9f488d3b029fc9d1).(SEXP_tcxx . . $ SEXP_t# * item, const char *name, SEXP_tcxx . . $ SEXP_t# * attrs, SEXP_tcxx . . $ SEXP_t# * val);
115
116 /**
117 * Set item's status.
118 * @param obj the item to be modified
119 * @param status the new status
120 */
121 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_item_setstatuscxx . . $ probe_item_setstatus(112b785eb420e6c0).(SEXP_tcxx . . $ SEXP_t# * obj, oval_syschar_status_tcxx . . $ oval_syschar_status_t# status);
122
123 /**
124 * Set status of an item's entity.
125 * @param obj the item to be modified
126 * @param name the name of the entity
127 * @param n select the n-th occurence of an entity with the specified name
128 * @param status the new status
129 */
130 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_itement_setstatuscxx . . $ probe_itement_setstatus(998e25cd01fde21b).(SEXP_tcxx . . $ SEXP_t# * obj, const char *name, uint32_tcxx . . $ uint32_t# n, oval_syschar_status_tcxx . . $ oval_syschar_status_t# status);
131
132 /**
133 *
134 */
135 struct id_desc_tcxx . . $ id_desc_t#;
136
137 /**
138 * Reset the item id generator.
139 * @param id_desc pointer to a structure holding the global id context
140 */
141 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! void probe_item_resetidctrcxx . . $ probe_item_resetidctr(8770571404f374a).(struct id_desc_tcxx . . $ id_desc_t# *id_desc);
142
143 #define probe_item_getentcxx . . $ `src/OVAL/probes/public/probe-api.h:143:9`!(item, name, n) probe_obj_getent (item, name, n)
144
145 /*
146 * attributes
147 */
148
149 /**
150 * Create a new list of attributes.
151 * This function increments its val argument's reference count.
152 * @param name the name of the attribute
153 * @param val the value of the attribute
154 * @param ... there can be an arbitrary number of name - value pairs
155 */
156 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_attr_creatcxx . . $ probe_attr_creat(5e3fef9c42f0315b).(const char *name, const SEXP_tcxx . . $ SEXP_t# * val, ...);
157
158 /*
159 * objects
160 */
161
162 /**
163 * Create a new object consisting of a name, optional attributes argument and an arbitrary number of entities.
164 * Every entity is a triple:
165 * const char *name - name of the new entity
166 * SEXP_t attrs - optional list of entity attributes in a sexp, can be NULL
167 * SEXP_t val - value of the new entity in a sexp
168 * This function increments its SEXP_t arguments' reference count.
169 * @param name mandatory name argument
170 * @param attrs optional object's attributes argument
171 * @param ... arbitrary number of entity arguments
172 */
173 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_obj_creatcxx . . $ probe_obj_creat(7fa6a2e8307f6614).(const char *name, SEXP_tcxx . . $ SEXP_t# * attrs, ...);
174
175 /**
176 * Create a new object with just a name and optional attributes argument.
177 * This function increments its SEXP_t argument's reference count.
178 * @param name object's name
179 * @param attrs optional attributes argument
180 */
181 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_obj_newcxx . . $ probe_obj_new(ca18d10048afa0ff).(const char *name, SEXP_tcxx . . $ SEXP_t# * attrs);
182
183 /**
184 * Get an entity from an object.
185 * @param obj the queried object
186 * @param name the name of the entity
187 * @param n select the n-th occurence of an entity with the specified name
188 */
189 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_obj_getentcxx . . $ probe_obj_getent(7907a01f2ff841f3).(const SEXP_tcxx . . $ SEXP_t# * obj, const char *name, uint32_tcxx . . $ uint32_t# n);
190
191 /**
192 * Get the value of an object's entity.
193 * The function respects the var_ref attribute and returns the currently selected value.
194 * @param obj the queried object
195 * @param name the name of the entity
196 * @param n select the n-th occurence of an entity with the specified name
197 */
198 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_obj_getentvalcxx . . $ probe_obj_getentval(7907a01f2ff841f3).(const SEXP_tcxx . . $ SEXP_t# * obj, const char *name, uint32_tcxx . . $ uint32_t# n);
199
200 /**
201 * Get the list of values of an object's entity.
202 * If the entity uses var_ref, there can be more than one value.
203 * @param obj the queried object
204 * @param name the name of the entity
205 * @param n select the n-th occurence of an entity with the specified name
206 * @param res the resulting value list is stored in this argument
207 * @return number of values in the list stored in the res argument
208 */
209 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_obj_getentvalscxx . . $ probe_obj_getentvals(5064ef95f2488283).(const SEXP_tcxx . . $ SEXP_t# * obj, const char *name, uint32_tcxx . . $ uint32_t# n, SEXP_tcxx . . $ SEXP_t# ** res);
210
211 /**
212 * Get the value of an object's attribute.
213 * @param obj the queried object
214 * @param name the name of the attribute
215 */
216 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_obj_getattrvalcxx . . $ probe_obj_getattrval(42b37380d22a3312).(const SEXP_tcxx . . $ SEXP_t# * obj, const char *name);
217
218 /**
219 * Check whether the specified attribute exists.
220 * @param obj the queried object
221 * @param name the name of the attribute
222 */
223 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! probe_obj_attrexistscxx . . $ probe_obj_attrexists(7326d2b72b90fa4d).(const SEXP_tcxx . . $ SEXP_t# * obj, const char *name);
224
225 /**
226 * Set objects's status.
227 * @param obj the object to be modified
228 * @param status the new status
229 */
230 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_obj_setstatuscxx . . $ probe_obj_setstatus(112b785eb420e6c0).(SEXP_tcxx . . $ SEXP_t# * obj, oval_syschar_status_tcxx . . $ oval_syschar_status_t# status);
231
232 /**
233 * Get the name of an object.
234 * @param obj the queried object
235 */
236 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! char *probe_obj_getnamecxx . . $ probe_obj_getname(c831a2fa12818dfe).(const SEXP_tcxx . . $ SEXP_t# * obj);
237
238 /**
239 * Get the name of an object.
240 * The name is stored in the provided buffer.
241 * @param obj the queried object
242 * @param buffer the buffer to store the name in
243 * @param buflen the length of the buffer
244 */
245 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! size_t probe_obj_getname_rcxx . . $ probe_obj_getname_r(ca07af91a4fa826f).(const SEXP_tcxx . . $ SEXP_t# * obj, char *buffer, size_t buflen);
246
247 /*
248 * collected objects
249 */
250
251 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_cobj_newcxx . . $ probe_cobj_new(4e082355872fd045).(oval_syschar_collection_flag_tcxx . . $ oval_syschar_collection_flag_t# flag, SEXP_tcxx . . $ SEXP_t# *msg_list, SEXP_tcxx . . $ SEXP_t# *item_list, SEXP_tcxx . . $ SEXP_t# *mask_list);
252 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_cobj_add_msgcxx . . $ probe_cobj_add_msg(ef7ee42b5817e0be).(SEXP_tcxx . . $ SEXP_t# *cobj, const SEXP_tcxx . . $ SEXP_t# *msg);
253 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_cobj_get_msgscxx . . $ probe_cobj_get_msgs(2f7f980afaaae0f0).(const SEXP_tcxx . . $ SEXP_t# *cobj);
254 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_cobj_get_maskcxx . . $ probe_cobj_get_mask(2f7f980afaaae0f0).(const SEXP_tcxx . . $ SEXP_t# *cobj);
255 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_cobj_add_itemcxx . . $ probe_cobj_add_item(ef7ee42b5817e0be).(SEXP_tcxx . . $ SEXP_t# *cobj, const SEXP_tcxx . . $ SEXP_t# *item);
256 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_cobj_get_itemscxx . . $ probe_cobj_get_items(2f7f980afaaae0f0).(const SEXP_tcxx . . $ SEXP_t# *cobj);
257 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! void probe_cobj_set_flagcxx . . $ probe_cobj_set_flag(644bab5dffe689c).(SEXP_tcxx . . $ SEXP_t# *cobj, oval_syschar_collection_flag_tcxx . . $ oval_syschar_collection_flag_t# flag);
258 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! oval_syschar_collection_flag_tcxx . . $ oval_syschar_collection_flag_t# probe_cobj_get_flagcxx . . $ probe_cobj_get_flag(e91d00b32587b9e6).(const SEXP_tcxx . . $ SEXP_t# *cobj);
259 oval_syschar_collection_flag_tcxx . . $ oval_syschar_collection_flag_t# probe_cobj_combine_flagscxx . . $ probe_cobj_combine_flags(1090683b7fc8f1f4).(oval_syschar_collection_flag_tcxx . . $ oval_syschar_collection_flag_t# f1,
260 oval_syschar_collection_flag_tcxx . . $ oval_syschar_collection_flag_t# f2,
261 oval_setobject_operation_tcxx . . $ oval_setobject_operation_t# op);
262 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! oval_syschar_collection_flag_tcxx . . $ oval_syschar_collection_flag_t# probe_cobj_compute_flagcxx . . $ probe_cobj_compute_flag(19bcac5beadb52f6).(SEXP_tcxx . . $ SEXP_t# *cobj);
263
264 /*
265 * messages
266 */
267
268 /**
269 * Create a new message that can be added to a collected object.
270 * @param level the level associated with the new message
271 * @param message the text of the new message
272 */
273 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_msg_creatcxx . . $ probe_msg_creat(c07e3aa4e7ab9719).(oval_message_level_tcxx . . $ oval_message_level_t# level, char *message);
274
275 /**
276 * Create a new message that can be added to a collected object.
277 * @param level the level associated with the new message
278 * @param fmt printf-like format string that produces the text of the new message
279 * @param ... arguments for the format
280 */
281 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_msg_creatfcxx . . $ probe_msg_creatf(2da488f08a70551b).(oval_message_level_tcxx . . $ oval_message_level_t# level, const char *fmt, ...) __attribute__((format(printf, 2, 3), nonnull(2)));
282
283 /*
284 * entities
285 */
286
287 /**
288 * Create a new list of entities.
289 * This function increments its SEXP_t arguments' reference count.
290 * @param name the name of the entity
291 * @param attrs optional entity's attributes argument
292 * @param val the value of the entity
293 * @param ... there can be an arbitrary number of name - attributes - value triples
294 */
295 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_ent_creatcxx . . $ probe_ent_creat(ad4959c2fa136b46).(const char *name, SEXP_tcxx . . $ SEXP_t# * attrs, SEXP_tcxx . . $ SEXP_t# * val, ...);
296
297 /**
298 * Create a new entity.
299 * This function increments its SEXP_t arguments' reference count.
300 * @param name the name of the entity
301 * @param attrs optional entity's attributes argument
302 * @param val the value of the entity
303 */
304 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_ent_creat1cxx . . $ probe_ent_creat1(84b3695e4a0e659a).(const char *name, SEXP_tcxx . . $ SEXP_t# * attrs, SEXP_tcxx . . $ SEXP_t# * val);
305
306 /**
307 * Add a new attribute to an entity.
308 * This function increments its val argument's reference count.
309 * @param ent the entity to be modified
310 * @param name name of the new attribute
311 * @param val value of the new attribute
312 */
313 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_ent_attr_addcxx . . $ probe_ent_attr_add(733bdcb6a09ce7ed).(SEXP_tcxx . . $ SEXP_t# * ent, const char *name, SEXP_tcxx . . $ SEXP_t# * val);
314
315 /**
316 * Get the value of an entity.
317 * The function respects the var_ref attribute and returns the currently selected value.
318 * @param ent the queried entity
319 */
320 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_ent_getvalcxx . . $ probe_ent_getval(2f7f980afaaae0f0).(const SEXP_tcxx . . $ SEXP_t# * ent);
321
322 /**
323 * Get the list of values of an entity.
324 * If the entity uses var_ref, there can be more than one value.
325 * @param ent the queried entity
326 * @param res the resulting value list is stored in this argument
327 * @return number of values in the list stored in the res argument
328 */
329 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_ent_getvalscxx . . $ probe_ent_getvals(87c285983fc46746).(const SEXP_tcxx . . $ SEXP_t# * ent, SEXP_tcxx . . $ SEXP_t# ** res);
330
331 /**
332 * Get the value of an entity's attribute.
333 * @param ent the queried entity
334 * @param name the name of the attribute
335 */
336 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_ent_getattrvalcxx . . $ probe_ent_getattrval(42b37380d22a3312).(const SEXP_tcxx . . $ SEXP_t# * ent, const char *name);
337
338 /**
339 * Check whether the specified attribute exists.
340 * @param ent the queried entity
341 * @param name the name of the attribute
342 */
343 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! probe_ent_attrexistscxx . . $ probe_ent_attrexists(7326d2b72b90fa4d).(const SEXP_tcxx . . $ SEXP_t# * ent, const char *name);
344
345 /**
346 * Set the OVAL data type of an entity.
347 * @param ent the queried entity
348 * @param type the new data type
349 */
350 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_ent_setdatatypecxx . . $ probe_ent_setdatatype(fec947bd1b7be7b5).(SEXP_tcxx . . $ SEXP_t# * ent, oval_datatype_tcxx . . $ oval_datatype_t# type);
351
352 /**
353 * Get the OVAL data type of an entity.
354 * @param ent the queried entity
355 */
356 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! oval_datatype_tcxx . . $ oval_datatype_t# probe_ent_getdatatypecxx . . $ probe_ent_getdatatype(576ef4d818d367a9).(const SEXP_tcxx . . $ SEXP_t# * ent);
357
358 /**
359 * Set entity's mask.
360 * @param ent the queried entity
361 * @mask the new mask
362 */
363 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_ent_setmaskcxx . . $ probe_ent_setmask(a4e805e021c3dfae).(SEXP_tcxx . . $ SEXP_t# * ent, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! mask);
364
365 /**
366 * Get entity's mask.
367 * @param ent the queried entity
368 */
369 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! probe_ent_getmaskcxx . . $ probe_ent_getmask(85f078d1f48ac431).(const SEXP_tcxx . . $ SEXP_t# * ent);
370
371 /**
372 * Set entity's status.
373 * @param ent the entity to be modified
374 * @param status the new status
375 */
376 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_ent_setstatuscxx . . $ probe_ent_setstatus(112b785eb420e6c0).(SEXP_tcxx . . $ SEXP_t# * ent, oval_syschar_status_tcxx . . $ oval_syschar_status_t# status);
377
378 /**
379 * Get entity status.
380 * @param ent the queried entity
381 */
382 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! oval_syschar_status_tcxx . . $ oval_syschar_status_t# probe_ent_getstatuscxx . . $ probe_ent_getstatus(b361a2e29ea6a769).(const SEXP_tcxx . . $ SEXP_t# * ent);
383
384 /**
385 * Get the name of an entity.
386 * @param ent the queried entity
387 */
388 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! char *probe_ent_getnamecxx . . $ probe_ent_getname(c831a2fa12818dfe).(const SEXP_tcxx . . $ SEXP_t# * ent);
389
390 /**
391 * Get the name of an entity.
392 * The name is stored in the provided buffer.
393 * @param ent the queried entity
394 * @param buffer the buffer to store the name in
395 * @param buflen the length of the buffer
396 */
397 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! size_t probe_ent_getname_rcxx . . $ probe_ent_getname_r(ca07af91a4fa826f).(const SEXP_tcxx . . $ SEXP_t# * ent, char *buffer, size_t buflen);
398
399 /**
400 * Free the memory allocated by the probe_* functions.
401 * @param obj the object to be freed
402 */
403 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! void probe_freecxx . . $ probe_free(c6b28547479798f4).(SEXP_tcxx . . $ SEXP_t# * obj);
404
405 /**
406 * Set all of the missing attributes of the 'behaviors' entity
407 * to default values. If the referenced pointer contains NULL,
408 * a new entity is created and stored in the referenced pointer.
409 * @param behaviors address of the pointer to the 'behaviors' entity, must not be NULL
410 */
411 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! void probe_filebehaviors_canonicalizecxx . . $ probe_filebehaviors_canonicalize(e661f441b24a5de6).(SEXP_tcxx . . $ SEXP_t# **behaviors);
412
413 /**
414 * Set all of the missing attributes of the 'behaviors' entity
415 * to default values. If the referenced pointer contains NULL,
416 * a new entity is created and stored in the referenced pointer.
417 * @param behaviors address of the pointer to the 'behaviors' entity, must not be NULL
418 */
419 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! void probe_tfc54behaviors_canonicalizecxx . . $ probe_tfc54behaviors_canonicalize(e661f441b24a5de6).(SEXP_tcxx . . $ SEXP_t# **behaviors);
420
421 #define PROBE_EINVALcxx . . $ `src/OVAL/probes/public/probe-api.h:421:9`! 1 /**< Invalid type/value/format */
422 #define PROBE_ENOELMcxx . . $ `src/OVAL/probes/public/probe-api.h:422:9`! 2 /**< Missing element OBSOLETE: use ENOENT */
423 #define PROBE_ENOVALcxx . . $ `src/OVAL/probes/public/probe-api.h:423:9`! 3 /**< Missing value */
424 #define PROBE_ENOATTRcxx . . $ `src/OVAL/probes/public/probe-api.h:424:9`! 4 /**< Missing attribute */
425 #define PROBE_EINITcxx . . $ `src/OVAL/probes/public/probe-api.h:425:9`! 5 /**< Initialization failed */
426 #define PROBE_ENOMEMcxx . . $ `src/OVAL/probes/public/probe-api.h:426:9`! 6 /**< No memory */
427 #define PROBE_EOPNOTSUPPcxx . . $ `src/OVAL/probes/public/probe-api.h:427:9`! 7 /**< Not supported */
428 #define PROBE_ERANGEcxx . . $ `src/OVAL/probes/public/probe-api.h:428:9`! 8 /**< Out of range */
429 #define PROBE_EDOMcxx . . $ `src/OVAL/probes/public/probe-api.h:429:9`! 9 /**< Out of domain */
430 #define PROBE_EFAULTcxx . . $ `src/OVAL/probes/public/probe-api.h:430:9`! 10 /**< Memory fault/NULL value */
431 #define PROBE_EACCESScxx . . $ `src/OVAL/probes/public/probe-api.h:431:9`! 11 /**< Operation not permitted */
432 #define PROBE_ESETEVALcxx . . $ `src/OVAL/probes/public/probe-api.h:432:9`! 12 /**< Set evaluation failed */
433 #define PROBE_ENOENTcxx . . $ `src/OVAL/probes/public/probe-api.h:433:9`! 13 /**< Missing entity */
434 #define PROBE_ENOOBJcxx . . $ `src/OVAL/probes/public/probe-api.h:434:9`! 14 /**< Missing object */
435 #define PROBE_ECONNABORTEDcxx . . $ `src/OVAL/probes/public/probe-api.h:435:9`! 15 /**< Evaluation aborted */
436 #define PROBE_ESYSTEMcxx . . $ `src/OVAL/probes/public/probe-api.h:436:9`! 253 /**< System call failure */
437 #define PROBE_EFATALcxx . . $ `src/OVAL/probes/public/probe-api.h:437:9`! 254 /**< Unrecoverable error */
438 #define PROBE_EUNKNOWNcxx . . $ `src/OVAL/probes/public/probe-api.h:438:9`! 255 /**< Unknown/Unexpected error */
439
440 #define PROBECMD_STE_FETCHcxx . . $ `src/OVAL/probes/public/probe-api.h:440:9`! 1 /**< State fetch command code */
441 #define PROBECMD_OBJ_EVALcxx . . $ `src/OVAL/probes/public/probe-api.h:441:9`! 2 /**< Object eval command code */
442 #define PROBECMD_RESETcxx . . $ `src/OVAL/probes/public/probe-api.h:442:9`! 3 /**< Reset command code */
443
444 typedef struct probe_ctxcxx . . $ probe_ctx# probe_ctxcxx . . $ probe_ctx#;
445
446 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! probe_item_filteredcxx . . $ probe_item_filtered(24018bafaaa94db3).(const SEXP_tcxx . . $ SEXP_t# *item, const SEXP_tcxx . . $ SEXP_t# *filters);
447
448 /**
449 * Collect generated item (i.e. add it to the collected object)
450 * The function takes ownership of the item reference and takes
451 * care of freeing the item (i.e. don't call SEXP_free(item) after
452 * calling this function). The implementation of this function
453 * is placed in the `probe/icache.c' file.
454 */
455 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_item_collectcxx . . $ probe_item_collect(11bb80e0c30650d7).(probe_ctxcxx . . $ probe_ctx# *ctx, SEXP_tcxx . . $ SEXP_t# *item);
456
457 /**
458 * Return reference to the input object. The reference counter
459 * is NOT incremented by this operation (i.e. don't call SEXP_free
460 * on the return value of this function). Implementation of this
461 * function is placed in the `' file.
462 */
463 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_ctx_getobjectcxx . . $ probe_ctx_getobject(4299b6b53fa804a5).(probe_ctxcxx . . $ probe_ctx# *ctx);
464
465 /**
466 * Return reference to the output object (aka collected object).
467 * Reference counter is NOT incremented (see the description of
468 * probe_ctx_getobject above).
469 */
470 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_ctx_getresultcxx . . $ probe_ctx_getresult(4299b6b53fa804a5).(probe_ctxcxx . . $ probe_ctx# *ctx);
471
472 typedef structcxx . . $ $anonymous_type_d394f0e187586702_0# {
473 oval_datatype_tcxx . . $ oval_datatype_t# typecxx . . $ $anonymous_type_d394f0e187586702_0#type.;
474 void *valuecxx . . $ $anonymous_type_d394f0e187586702_0#value.;
475 } probe_elmatr_tcxx . . $ probe_elmatr_t#;
476
477 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_item_createcxx . . $ probe_item_create(36b16a6622050a9c).(oval_subtype_tcxx . . $ oval_subtype_t# item_subtype, probe_elmatr_tcxx . . $ probe_elmatr_t# *item_attributes[], ...);
478
479 #define PROBE_ENT_AREFcxx . . $ `src/OVAL/probes/public/probe-api.h:479:9`!(ent, dst, attr_name, invalid_exp) \
480 do { \
481 if (((dst) = probe_ent_getattrval(ent, attr_name)) == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { \
482 dEcxx . . $ `src/common/debug_priv.h:63:9`!("Attribute `%s' is missing!", attr_name); \
483 invalid_exp \
484 } \
485 } while(0)
486
487 #define PROBE_ENT_STRVALcxx . . $ `src/OVAL/probes/public/probe-api.h:487:9`!(ent, dst, dstlen, invalid_exp, zerolen_exp) \
488 do { \
489 SEXP_t *___r; \
490 \
491 if ((___r = probe_ent_getval(ent)) == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) { \
492 invalid_exp \
493 } else { \
494 if (!SEXP_stringp(___r)) { \
495 SEXP_free(___r); \
496 invalid_exp \
497 } \
498 else if (SEXP_string_length(___r) == 0) { \
499 SEXP_free(___r); \
500 zerolen_exp \
501 } else { \
502 SEXP_string_cstr_r(___r, dst, dstlen); \
503 SEXP_free(___r); \
504 } \
505 } \
506 } while (0)
507
508 #define PROBE_ENT_I32VALcxx . . $ `src/OVAL/probes/public/probe-api.h:508:9`!(ent, dst, invalid_exp, nil_exp) \
509 do { \
510 SEXP_t *___r; \
511 \
512 if ((___r = probe_ent_getval(ent)) == NULL) { \
513 nil_exp; \
514 } else { \
515 if (!SEXP_numberp(___r)) { \
516 SEXP_free(___r); \
517 invalid_exp; \
518 } else { \
519 dst = SEXP_number_geti_32(___r); \
520 SEXP_free(___r); \
521 } \
522 } \
523 } while (0)
524
525 #endif /* PROBE_API_H */
526
527 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! oval_operation_tcxx . . $ oval_operation_t# probe_ent_getoperationcxx . . $ probe_ent_getoperation(8f085ec993ec77d).(SEXP_tcxx . . $ SEXP_t# *entity, oval_operation_tcxx . . $ oval_operation_t# op);
528
529 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! int probe_item_add_msgcxx . . $ probe_item_add_msg(c5b7a86259de5bd8).(SEXP_tcxx . . $ SEXP_t# *item, oval_message_level_tcxx . . $ oval_message_level_t# msglvl, char *msgfmt, ...);
530
531 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_entval_from_cstrcxx . . $ probe_entval_from_cstr(abb8c272acf0bd7e).(oval_datatype_tcxx . . $ oval_datatype_t# type, const char *value, size_t vallen);
532 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_ent_from_cstrcxx . . $ probe_ent_from_cstr(935b1e6d5a5c8d85).(const char *name, oval_datatype_tcxx . . $ oval_datatype_t# type, const char *value, size_t vallen);
533
534 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! oval_schema_version_tcxx . . $ oval_schema_version_t# probe_obj_get_platform_schema_versioncxx . . $ probe_obj_get_platform_schema_version(5bacca80194debea).(const SEXP_tcxx . . $ SEXP_t# *obj);
535
536 /**
537 * Get object entity mask
538 * @returns a list of masked entities
539 */
540 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! SEXP_tcxx . . $ SEXP_t# *probe_obj_getmaskcxx . . $ probe_obj_getmask(478b347fcbbad3c5).(SEXP_tcxx . . $ SEXP_t# *obj);
541
542 /**
543 * Check if the given path matches any of the paths in the blocked paths list
544 * @param path path to be examined
545 * @param blocked_paths list of blocked paths
546 */
547 OSCAP_APIcxx . . $ `src/common/public/oscap_export.h:42:15`! boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! probe_path_is_blockedcxx . . $ probe_path_is_blocked(6f786adec44f4a13).(const char *path, struct oscap_listcxx . . $ oscap_list# *blocked_paths);
548
549 /// @}