actf 0.0.1
An acute CTF reader
Loading...
Searching...
No Matches
/home/adwe/code/actf/fld_loc.h
Go to the documentation of this file.
1/*
2 * This file is a part of ACTF.
3 *
4 * Copyright (C) 2024 Adam Wendelin <adwe live se>
5 *
6 * ACTF is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation, either version 3 of the
9 * License, or (at your option) any later version.
10 *
11 * ACTF is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
14 * Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with ACTF. If not, see
18 * <https://www.gnu.org/licenses/>.
19 */
20
25#ifndef ACTF_FLD_LOC_H
26#define ACTF_FLD_LOC_H
27
30
33 ACTF_FLD_LOC_ORIGIN_NONE,
34 ACTF_FLD_LOC_ORIGIN_PKT_HEADER,
35 ACTF_FLD_LOC_ORIGIN_PKT_CTX,
36 ACTF_FLD_LOC_ORIGIN_EVENT_HEADER,
37 ACTF_FLD_LOC_ORIGIN_EVENT_COMMON_CTX,
38 ACTF_FLD_LOC_ORIGIN_EVENT_SPECIFIC_CTX,
39 ACTF_FLD_LOC_ORIGIN_EVENT_PAYLOAD,
40 ACTF_FLD_LOC_N_ORIGINS,
41};
42
43/* Returns where the field location procedure should start. */
50
63
70
71#endif /* ACTF_FLD_LOC_H */
struct actf_fld_loc actf_fld_loc
A field location.
Definition fld_loc.h:29
size_t actf_fld_loc_path_len(const actf_fld_loc *loc)
Get the number of elements in the field location path.
char ** actf_fld_loc_path(const actf_fld_loc *loc)
Get the path of a field location.
actf_fld_loc_origin
Field location origins.
Definition fld_loc.h:32