/usr/include/libprelude/idmef-path.h is in libprelude-dev 4.1.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | /*****
*
*
* Copyright (C) 2002-2017 CS-SI. All Rights Reserved.
* Author: Yoann Vandoorselaere <yoann.v@prelude-ids.com>
* Author: Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl>
*
* This file is part of the Prelude library.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*****/
#ifndef _LIBPRELUDE_IDMEF_PATH_H
#define _LIBPRELUDE_IDMEF_PATH_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
typedef struct idmef_path idmef_path_t;
#include <stdarg.h>
#include "prelude-macros.h"
#include "idmef-value.h"
#include "idmef-tree-wrap.h"
int idmef_path_get(const idmef_path_t *path, void *object, idmef_value_t **ret);
int idmef_path_set(const idmef_path_t *path, void *object, idmef_value_t *value);
int idmef_path_new(idmef_path_t **path, const char *format, ...) PRELUDE_FMT_PRINTF(2, 3);
int idmef_path_new_v(idmef_path_t **path, const char *format, va_list args) PRELUDE_FMT_PRINTF(2, 0);
int idmef_path_new_from_root_fast(idmef_path_t **path, idmef_class_id_t rootclass, const char *buffer);
int idmef_path_new_fast(idmef_path_t **path, const char *buffer);
idmef_class_id_t idmef_path_get_class(const idmef_path_t *path, int depth);
idmef_value_type_id_t idmef_path_get_value_type(const idmef_path_t *path, int depth);
int idmef_path_set_index(idmef_path_t *path, unsigned int depth, int index);
int idmef_path_undefine_index(idmef_path_t *path, unsigned int depth);
int idmef_path_get_index(const idmef_path_t *path, unsigned int depth);
int idmef_path_get_key(const idmef_path_t *path, unsigned int depth, const char **key);
int idmef_path_make_child(idmef_path_t *path, const char *child_name, int index);
int idmef_path_make_parent(idmef_path_t *path);
void idmef_path_destroy(idmef_path_t *path);
int idmef_path_ncompare(const idmef_path_t *p1, const idmef_path_t *p2, unsigned int depth);
int idmef_path_compare(const idmef_path_t *p1, const idmef_path_t *p2);
int idmef_path_clone(const idmef_path_t *src, idmef_path_t **dst);
idmef_path_t *idmef_path_ref(idmef_path_t *path);
const char *idmef_path_get_name(const idmef_path_t *path, int depth);
prelude_bool_t idmef_path_is_ambiguous(const idmef_path_t *path);
int idmef_path_has_lists(const idmef_path_t *path);
prelude_bool_t idmef_path_is_list(const idmef_path_t *path, int depth);
unsigned int idmef_path_get_depth(const idmef_path_t *path);
int idmef_path_check_operator(const idmef_path_t *path, idmef_criterion_operator_t op);
int idmef_path_get_applicable_operators(const idmef_path_t *path, idmef_criterion_operator_t *result);
#ifndef SWIG
void _idmef_path_cache_lock(void);
void _idmef_path_cache_reinit(void);
void _idmef_path_cache_unlock(void);
void _idmef_path_cache_destroy(void);
#endif
#ifdef __cplusplus
}
#endif
#endif /* _LIBPRELUDE_IDMEF_PATH_H */
|