2 * $Id: showppd.c,v 1.5.10.1 2004-06-09 01:25:54 bfernhomberg Exp $
4 * Copyright (c) 1995 Regents of The University of Michigan.
5 * All Rights Reserved. See COPYRIGHT.
10 #endif /* HAVE_CONFIG_H */
15 #include <atalk/logger.h>
16 #include <sys/types.h>
17 #include <sys/param.h>
19 #include <netatalk/at.h>
20 #include <atalk/atp.h>
24 extern struct ppd_font *ppd_fonts;
26 extern struct ppd_feature ppd_features[];
33 struct ppd_feature *pfe;
37 fprintf( stderr, "Usage:\t%s ppdfile\n", av[ 0 ] );
41 read_ppd( av[ 1 ], 0 );
42 for ( pfo = ppd_fonts; pfo; pfo = pfo->pd_next ) {
43 printf( "Font: %s\n", pfo->pd_font );
45 for ( pfe = ppd_features; pfe->pd_name; pfe++ ) {
46 printf( "Feature: %s %s\n", pfe->pd_name, (pfe->pd_value)?pfe->pd_value:"NULL" );