Annotation of freem/src/mref.h, revision 1.3

1.1       snw         1: /*
1.3     ! snw         2:  *   $Id$
1.1       snw         3:  *    supporting functions for handling freem_ref_t structures
                      4:  *
                      5:  *  
1.2       snw         6:  *   Author: Serena Willis <snw@coherent-logic.com>
1.1       snw         7:  *    Copyright (C) 1998 MUG Deutschland
1.3     ! snw         8:  *    Copyright (C) 2020, 2025 Coherent Logic Development LLC
1.1       snw         9:  *
                     10:  *
                     11:  *   This file is part of FreeM.
                     12:  *
                     13:  *   FreeM is free software: you can redistribute it and/or modify
                     14:  *   it under the terms of the GNU Affero Public License as published by
                     15:  *   the Free Software Foundation, either version 3 of the License, or
                     16:  *   (at your option) any later version.
                     17:  *
                     18:  *   FreeM is distributed in the hope that it will be useful,
                     19:  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
                     20:  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     21:  *   GNU Affero Public License for more details.
                     22:  *
                     23:  *   You should have received a copy of the GNU Affero Public License
                     24:  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
                     25:  *
1.3     ! snw        26:  *   $Log$
        !            27:  *
        !            28:  * SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
        !            29:  * SPDX-License-Identifier: AGPL-3.0-or-later
1.1       snw        30:  **/
                     31: 
                     32: #if !defined(_MREF_H)
                     33: #define _MREF_H
                     34: 
                     35: #include "freem.h"
                     36: 
                     37: extern freem_ref_t *mref_init (freem_ref_t *ref, short ref_type, char *name);
                     38: extern char *mref_get_subscript (freem_ref_t *ref, int index);
                     39: extern freem_ref_t *mref_set_subscript (freem_ref_t *ref, int index, char *value);
                     40: extern void mref_to_internal_prealloc (char *res, freem_ref_t *ref);
                     41: extern char *mref_to_internal (freem_ref_t *ref);
                     42: extern freem_ref_t *internal_to_mref (freem_ref_t *ref, char *key);
                     43: extern void mref_to_external (freem_ref_t *ref, char *buf);
                     44: extern short mref_is_descendant(freem_ref_t *a, freem_ref_t *b);
                     45: #endif

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