paul@99 | 1 | /* |
paul@106 | 2 | * Generation of server dispatch and handle functions. |
paul@99 | 3 | * |
paul@162 | 4 | * Copyright (C) 2019, 2020 Paul Boddie <paul@boddie.org.uk> |
paul@99 | 5 | * |
paul@99 | 6 | * This program is free software; you can redistribute it and/or |
paul@99 | 7 | * modify it under the terms of the GNU General Public License as |
paul@99 | 8 | * published by the Free Software Foundation; either version 2 of |
paul@99 | 9 | * the License, or (at your option) any later version. |
paul@99 | 10 | * |
paul@99 | 11 | * This program is distributed in the hope that it will be useful, |
paul@99 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@99 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@99 | 14 | * GNU General Public License for more details. |
paul@99 | 15 | * |
paul@99 | 16 | * You should have received a copy of the GNU General Public License |
paul@99 | 17 | * along with this program; if not, write to the Free Software |
paul@99 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@99 | 19 | * Boston, MA 02110-1301, USA |
paul@99 | 20 | */ |
paul@99 | 21 | |
paul@99 | 22 | #pragma once |
paul@99 | 23 | |
paul@99 | 24 | #include <stdio.h> |
paul@99 | 25 | #include "types.h" |
paul@99 | 26 | |
paul@99 | 27 | void write_dispatcher(struct signature *sig, FILE *fp, struct interface *iface); |
paul@162 | 28 | void write_dispatcher_cases(struct signature *sig, FILE *fp, |
paul@162 | 29 | struct interface *iface, int compound); |
paul@110 | 30 | void write_dispatcher_signature(const char *name, enum signature_role role, FILE *fp); |
paul@110 | 31 | void write_handler_signature(const char *name, enum signature_role role, FILE *fp); |