paul@98 | 1 | /* |
paul@100 | 2 | * Generation of message structure access operations. |
paul@98 | 3 | * |
paul@98 | 4 | * Copyright (C) 2019 Paul Boddie <paul@boddie.org.uk> |
paul@98 | 5 | * |
paul@98 | 6 | * This program is free software; you can redistribute it and/or |
paul@98 | 7 | * modify it under the terms of the GNU General Public License as |
paul@98 | 8 | * published by the Free Software Foundation; either version 2 of |
paul@98 | 9 | * the License, or (at your option) any later version. |
paul@98 | 10 | * |
paul@98 | 11 | * This program is distributed in the hope that it will be useful, |
paul@98 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@98 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@98 | 14 | * GNU General Public License for more details. |
paul@98 | 15 | * |
paul@98 | 16 | * You should have received a copy of the GNU General Public License |
paul@98 | 17 | * along with this program; if not, write to the Free Software |
paul@98 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@98 | 19 | * Boston, MA 02110-1301, USA |
paul@98 | 20 | */ |
paul@98 | 21 | |
paul@98 | 22 | #pragma once |
paul@98 | 23 | |
paul@98 | 24 | #include <stdio.h> |
paul@98 | 25 | #include "types.h" |
paul@98 | 26 | |
paul@98 | 27 | void write_accessor_declaration(int input_words, int output_words, |
paul@124 | 28 | const char *opname, FILE *fp); |
paul@98 | 29 | |
paul@98 | 30 | void write_accessor_initialisation(enum specifier direction, |
paul@98 | 31 | enum component_role component, |
paul@129 | 32 | enum function_role function, |
paul@124 | 33 | const char *opname, FILE *fp); |
paul@98 | 34 | |
paul@98 | 35 | void write_message_access(struct parameter *param, enum component_role component, |
paul@129 | 36 | enum function_role function, enum specifier direction, |
paul@129 | 37 | enum parameter_class cls, FILE *fp); |