1 /* 2 * userdata.h -- userdata.c -- Get data on users (from /etc/passwd). 3 * Copyright (c) 1999 Akim Demaille, Miguel Santana 4 */ 5 6 /* 7 * This file is part of a2ps. 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2, or (at your option) 12 * any later version. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; see the file COPYING. If not, write to 21 * the Free Software Foundation, 59 Temple Place - Suite 330, 22 * Boston, MA 02111-1307, USA. 23 */ 24 25 #ifndef USERDATA_H_ 26 # define USERDATA_H_ 27 28 #ifndef PARAMS 29 # if PROTOTYPES 30 # define PARAMS(protos) protos 31 # else /* no PROTOTYPES */ 32 # define PARAMS(protos) () 33 # endif /* no PROTOTYPES */ 34 #endif 35 36 struct userdata 37 { 38 char *login; 39 char *name; 40 char *comments; 41 char *home; 42 }; 43 44 void userdata_get PARAMS ((struct userdata *udata)); 45 void userdata_free PARAMS ((struct userdata *udata)); 46 #endif /* !USERDATA_H_ */ 47