1: /*
2: * $Id: objects.h,v 1.3 2025/03/09 19:50:47 snw Exp $
3: * prototypes, structures, and macros for OO support
4: *
5: *
6: * Author: Serena Willis <snw@coherent-logic.com>
7: * Copyright (C) 1998 MUG Deutschland
8: * Copyright (C) 2023, 2025 Coherent Logic Development LLC
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: *
26: * $Log: objects.h,v $
27: * Revision 1.3 2025/03/09 19:50:47 snw
28: * Second phase of REUSE compliance and header reformat
29: *
30: *
31: * SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
32: * SPDX-License-Identifier: AGPL-3.0-or-later
33: **/
34:
35: #if !defined(_FREEM_OBJECTS_H)
36: # define _FREEM_OBJECTS_H
37: extern void obj_init(void);
38: extern short obj_is_field_private(char *key);
39: extern void obj_set_field_private(char *key);
40: extern void obj_set_field_public(char *key);
41: extern short obj_is_object(char *inst);
42: extern short obj_instance_of(char *inst, char *class);
43: extern void obj_set_attribute(char *inst, char *attrib, char *value);
44: extern short obj_get_attribute(char *inst, char *attrib, char *buf);
45: extern void obj_destroy(char *inst);
46: extern void obj_create_symbols(char *objvar, char *class);
47: extern void obj_get_constructor(char *constructor, char *class, char *instvar);
48:
49: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>