Index: xc/programs/xdpyinfo/xdpyinfo.c =================================================================== RCS file: /cvs/xorg/xc/programs/xdpyinfo/xdpyinfo.c,v retrieving revision 1.5 diff -u -2 -0 -r1.5 xdpyinfo.c --- xc/programs/xdpyinfo/xdpyinfo.c 30 Jun 2004 20:06:56 -0000 1.5 +++ xc/programs/xdpyinfo/xdpyinfo.c 11 Aug 2004 14:27:38 -0000 @@ -1265,40 +1265,56 @@ /* Enumerate the list of printers with details */ for( i = 0 ; i < plcount ; i++) { char *printername = printerlist[i].name; XPContext pcontext; char *s; printf(" Attributes of printer '%s':\n", NULLSTR(printername)); pcontext = XpCreateContext(dpy, printername); if (pcontext == None) { printf(" Error: Could not open printer.\n"); continue; } s=XpGetAttributes(dpy, pcontext, XPJobAttr); print_xprint_attrpool("XPJobAttr", s); XFree(s); s=XpGetAttributes(dpy, pcontext, XPDocAttr); print_xprint_attrpool("XPDocAttr", s); XFree(s); s=XpGetAttributes(dpy, pcontext, XPPageAttr); print_xprint_attrpool("XPPageAttr", s); XFree(s); s=XpGetAttributes(dpy, pcontext, XPPrinterAttr); print_xprint_attrpool("XPPrinterAttr", s); XFree(s); s=XpGetAttributes(dpy, pcontext, XPServerAttr); print_xprint_attrpool("XPServerAttr", s); XFree(s); + /* ISO DPA 10175 "attribute objects" */ + s=XpGetAttributes(dpy, pcontext, XPMediumAttr); print_xprint_attrpool("XPMediumAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPFontAttr); print_xprint_attrpool("XPFontAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPResAttr); print_xprint_attrpool("XPResAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPTransAttr); print_xprint_attrpool("XPTransAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPDelAttr); print_xprint_attrpool("XPDelAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPAuxSPkg); print_xprint_attrpool("XPAuxSPkg", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPAuxS); print_xprint_attrpool("XPAuxS", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPFinishAttr); print_xprint_attrpool("XPFinishAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPOutputAttr); print_xprint_attrpool("XPOutputAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPImpAttr); print_xprint_attrpool("XPImpAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPSchedAttr); print_xprint_attrpool("XPSchedAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPIntJobAttr); print_xprint_attrpool("XPIntJobAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPIntDocAttr); print_xprint_attrpool("XPIntDocAttr", s); XFree(s); + s=XpGetAttributes(dpy, pcontext, XPResConAttr); print_xprint_attrpool("XPResConAttr", s); XFree(s); + XpDestroyContext(dpy, pcontext); } XpFreePrinterList(printerlist); return 1; } /* utilities to manage the list of recognized extensions */ typedef int (*ExtensionPrintFunc)( Display *, char * ); typedef struct { char *extname; ExtensionPrintFunc printfunc; Bool printit; } ExtensionPrintInfo;