File:  [Coherent Logic Development] / freem / src / iftab.h
Revision 1.2: download - view: text, annotated - select for diffs
Sun Mar 9 15:20:18 2025 UTC (7 months, 4 weeks ago) by snw
Branches: MAIN
CVS tags: HEAD
Begin formatting overhaul and REUSE compliance

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>