1: /*
2: * $Id: iftab.h,v 1.3 2025/03/09 19:14:25 snw Exp $
3: * Function prototypes, structs, and macros for FreeM
4: * transactions-in-flight symbol table
5: *
6: *
7: * Author: Serena Willis <snw@coherent-logic.com>
8: * Copyright (C) 1998 MUG Deutschland
9: * Copyright (C) 2020, 2025 Coherent Logic Development LLC
10: *
11: *
12: * This file is part of FreeM.
13: *
14: * FreeM is free software: you can redistribute it and/or modify
15: * it under the terms of the GNU Affero Public License as published by
16: * the Free Software Foundation, either version 3 of the License, or
17: * (at your option) any later version.
18: *
19: * FreeM is distributed in the hope that it will be useful,
20: * but WITHOUT ANY WARRANTY; without even the implied warranty of
21: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22: * GNU Affero Public License for more details.
23: *
24: * You should have received a copy of the GNU Affero Public License
25: * along with FreeM. If not, see <https://www.gnu.org/licenses/>.
26: *
27: * $Log: iftab.h,v $
28: * Revision 1.3 2025/03/09 19:14:25 snw
29: * First phase of REUSE compliance and header reformat
30: *
31: *
32: * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
33: * SPDX-License-Identifier: AGPL-3.0-or-later
34: **/
35:
36: typedef struct iftab {
37: short action;
38: char *key;
39: char *data;
40: int tlevel;
41: int killed;
42:
43: struct iftab *next;
44: } iftab;
45:
46: extern iftab *iftab_head;
47:
48: extern iftab *iftab_insert(short action, char *key, char *data, int tlevel);
49: extern iftab *iftab_retrieve(char *key, char *data);
50: extern void iftab_delete(char *key);
51: iftab *iftab_kill(char *key);
52: extern void iftab_pop_tlevel(int tlevel);
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>