2 * $Id: showppd.c,v 1.7 2009-10-13 22:55:37 didg 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[];
29 int main(int ac, char **av)
31 struct ppd_feature *pfe;
35 fprintf( stderr, "Usage:\t%s ppdfile\n", av[ 0 ] );
39 read_ppd( av[ 1 ], 0 );
40 for ( pfo = ppd_fonts; pfo; pfo = pfo->pd_next ) {
41 printf( "Font: %s\n", pfo->pd_font );
43 for ( pfe = ppd_features; pfe->pd_name; pfe++ ) {
44 printf( "Feature: %s %s\n", pfe->pd_name, (pfe->pd_value)?pfe->pd_value:"NULL" );