"Fossies" - the Fresh Open Source Software Archive 
Member "npadmin-0.14/npastructs.h" (22 Nov 2002, 3347 Bytes) of package /linux/misc/old/npadmin-0.14.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /* Copyright (c) 2000 Ben Woodard
2 * All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public Licence
6 * as published by the Free Software Foundation; either version 2
7 * of the Licence, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRENTY; without even the implied warrenty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public Licence in the COPYING file for more
13 * details.
14 *
15 * You should have received a copy of the GNU Library General
16 * Public License along with the GNU C Library; see the file
17 * COPYING.LIB. If not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21 #ifndef __NPASTRUCTS_H__
22 #define __NPASTRUCTS_H__
23
24 struct ConnectionInfo{
25 long connState;
26 unsigned char *remhost;
27 };
28
29 class ConnectionInfoRequest{
30 public:
31 unsigned short port;
32 char *statebuf;
33 char *remaddrbuf;
34 ConnectionInfoRequest *next;
35
36 ConnectionInfo *conninfo;
37
38 inline ConnectionInfoRequest(unsigned short prt,ConnectionInfoRequest *nxt):
39 port(prt),next(nxt){}
40 };
41
42 class GeneralPrinterInfo {
43 public:
44 char *sysDesc;
45 char *sysContact;
46 char *sysLocation;
47 char *hwaddr;
48 unsigned char *gateway;
49 unsigned char *netmask;
50 long iftype;
51 /* this isn't necessary it just makes debugging easier */
52 inline GeneralPrinterInfo():sysDesc(NULL),sysContact(NULL),sysLocation(NULL),
53 hwaddr(NULL),gateway(NULL),netmask(NULL){}
54 };
55
56 struct HostPrinterInfo {
57 long memsize;
58 long prstatus;
59 };
60
61 struct HPPrivInfo {
62 char *status;
63 char *frontpanel;
64 long pagecount;
65 };
66
67 struct MediaPathInfo{
68 long maxSpeedPrintUnit;
69 long mediaSizeUnit;
70 long maxSpeed;
71 long maxMediaFeedDir;
72 long maxMediaXFeedDir;
73 long minMediaFeedDir;
74 long minMediaXFeedDir;
75 long type;
76 long status;
77 char *description;
78 };
79
80 struct InputTrayInfo {
81 long type;
82 long dimUnit;
83 long dimFeedDir;
84 long dimXFeedDir;
85 long capUnit;
86 long maxCap;
87 long curLev;
88 long status;
89 char *mediaName;
90 char *name;
91 char *desc;
92 }; // base input tray initial data
93
94 struct LangInfo{
95 long family;
96 char *langLevel;
97 char *langVersion;
98 char *description;
99 char *version;
100 long orientation;
101 long feedAddressability;
102 long xFeedAddressability;
103 long twoWay;
104 };
105
106 struct HrStorageTable{
107 char *desc;
108 long allocunits;
109 long size;
110 long used;
111 long failures;
112 };
113
114 struct CoverTable{
115 char *desc;
116 long status;
117 };
118
119 struct ProtocolTable{
120 long type;
121 char *version;
122 long curjclidx;
123 long defpdlidx;
124 long state;
125 long status;
126 };
127
128 struct MarkerTable{
129 long marktech;
130 long counterunits;
131 long lifecount;
132 long processcolorants;
133 long addrunits;
134 long addrfeeddir;
135 long addrxfeeddir;
136 long northmargin;
137 long southmargin;
138 long eastmargin;
139 long westmargin;
140 long status;
141 };
142
143 struct MarkerSuppliesTable{
144 long colorantidx;
145 long msclass;
146 long type;
147 char *desc;
148 long supplyunit;
149 long maxcap;
150 long level;
151 };
152
153 struct AlertTable{
154 long severityLevel;
155 long trainingLevel;
156 long group;
157 long groupIndex;
158 long location;
159 long code;
160 char *desc;
161 unsigned long time;
162
163 const char *decode_code();
164 };
165
166 struct GeneralPrintmib{
167 char *serial;
168 };
169 #endif