paul@100 | 1 | /* |
paul@100 | 2 | * Server code generation. |
paul@100 | 3 | * |
paul@214 | 4 | * Copyright (C) 2019, 2022 Paul Boddie <paul@boddie.org.uk> |
paul@100 | 5 | * |
paul@100 | 6 | * This program is free software; you can redistribute it and/or |
paul@100 | 7 | * modify it under the terms of the GNU General Public License as |
paul@100 | 8 | * published by the Free Software Foundation; either version 2 of |
paul@100 | 9 | * the License, or (at your option) any later version. |
paul@100 | 10 | * |
paul@100 | 11 | * This program is distributed in the hope that it will be useful, |
paul@100 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@100 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@100 | 14 | * GNU General Public License for more details. |
paul@100 | 15 | * |
paul@100 | 16 | * You should have received a copy of the GNU General Public License |
paul@100 | 17 | * along with this program; if not, write to the Free Software |
paul@100 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@100 | 19 | * Boston, MA 02110-1301, USA |
paul@100 | 20 | */ |
paul@100 | 21 | |
paul@100 | 22 | #pragma once |
paul@100 | 23 | |
paul@100 | 24 | #include <stdio.h> |
paul@100 | 25 | #include "types.h" |
paul@100 | 26 | |
paul@125 | 27 | |
paul@125 | 28 | |
paul@125 | 29 | /* Attribute-configured signature and function definitions. */ |
paul@125 | 30 | |
paul@125 | 31 | void write_server_signature(struct signature *sig, |
paul@125 | 32 | enum signature_role role, |
paul@107 | 33 | FILE *fp, struct interface *iface); |
paul@100 | 34 | |
paul@125 | 35 | void write_server_function(struct signature *sig, FILE *fp, |
paul@125 | 36 | struct interface *iface); |
paul@125 | 37 | |
paul@125 | 38 | /* Specific signature variant generation. */ |
paul@125 | 39 | |
paul@110 | 40 | void write_server_interface_signature(struct signature *sig, |
paul@110 | 41 | enum signature_role role, FILE *fp, |
paul@110 | 42 | struct interface *iface); |