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