]> arthur.barton.de Git - netatalk.git/blob - etc/papd/showppd.c
968f48362e9d65f7924dbf2e64f58584b02e47b7
[netatalk.git] / etc / papd / showppd.c
1 /*
2  * $Id: showppd.c,v 1.5 2002-01-04 04:45:48 sibaz Exp $
3  *
4  * Copyright (c) 1995 Regents of The University of Michigan.
5  * All Rights Reserved.  See COPYRIGHT.
6  */
7
8 #ifdef HAVE_CONFIG_H
9 #include "config.h"
10 #endif /* HAVE_CONFIG_H */
11
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <string.h>
15 #include <atalk/logger.h>
16 #include <sys/types.h>
17 #include <sys/param.h>
18 #include <sys/time.h>
19 #include <netatalk/at.h>
20 #include <atalk/atp.h>
21
22 #include "ppd.h"
23
24 extern struct ppd_font          *ppd_fonts;
25
26 extern struct ppd_feature       ppd_features[];
27
28
29 main( ac, av )
30     int         ac;
31     char        **av;
32 {
33     struct ppd_feature  *pfe;
34     struct ppd_font     *pfo;
35
36     if ( ac != 2 ) {
37         fprintf( stderr, "Usage:\t%s ppdfile\n", av[ 0 ] );
38         exit( 1 );
39     }
40
41     read_ppd( av[ 1 ], 0 );
42     for ( pfo = ppd_fonts; pfo; pfo = pfo->pd_next ) {
43         printf( "Font: %s\n", pfo->pd_font );
44     }
45     for ( pfe = ppd_features; pfe->pd_name; pfe++ ) {
46         printf( "Feature: %s %s\n", pfe->pd_name, pfe->pd_value );
47     }
48
49     exit( 0 );
50 }