actf 0.0.1
An acute CTF reader
Loading...
Searching...
No Matches
/home/adwe/code/actf/flags.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_FLAGS_H
26#define ACTF_FLAGS_H
27
28#include <stdint.h>
29#include <unistd.h>
30
31#include "types.h"
32
34typedef struct actf_flags actf_flags;
35
49const char *actf_flags_find(const actf_flags *f, uint64_t val, actf_it *it);
50
61const char *actf_flags_find_first_match(const actf_flags *f, uint64_t val);
62
63#endif /* ACTF_FLAGS_H */
const char * actf_flags_find(const actf_flags *f, uint64_t val, actf_it *it)
Find the next flag name matching the provided value.
const char * actf_flags_find_first_match(const actf_flags *f, uint64_t val)
Find the first flag name matching the provided value.
struct actf_flags actf_flags
Flags map names to bit index range sets.
Definition flags.h:34
An iterator.
Definition types.h:136
Basic types used by ACTF.