netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
common.h
Go to the documentation of this file.
1/*
2 *
3 * (c) 1997 Stefan Bethke. All rights reserved.
4 * (c) 2025 Daniel Markstedt. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 typedef void (*outputfunc_t)(char *buffer, int len);
22
23 typedef struct {
24 char *network;
25 char *netmask;
26 char *nameserver;
27 char *zone;
28 char *unprivileged_user;
29} macip_options;
30
31 macip_options *read_options(const char *);
outputfunc_t
void(* outputfunc_t)(char *buffer, int len)
Definition common.h:21
read_options
macip_options * read_options(const char *)
Definition contrib/macipgw/main.c:197
buffer
char buffer[MAXPATHLEN+2]
Definition netacnv.c:35
macip_options
Definition common.h:23
macip_options::unprivileged_user
char * unprivileged_user
Definition common.h:28
macip_options::network
char * network
Definition common.h:24
macip_options::zone
char * zone
Definition common.h:27
macip_options::nameserver
char * nameserver
Definition common.h:26
macip_options::netmask
char * netmask
Definition common.h:25