MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cupsdCreateCommonData

Function cupsdCreateCommonData

scheduler/printers.c:138–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 */
137
138void
139cupsdCreateCommonData(void)
140{
141 int i; /* Looping var */
142 ipp_attribute_t *attr; /* Attribute data */
143 cups_dir_t *dir; /* Notifier directory */
144 cups_dentry_t *dent; /* Notifier directory entry */
145 cups_array_t *notifiers; /* Notifier array */
146 char filename[1024], /* Filename */
147 *notifier; /* Current notifier */
148 cupsd_policy_t *p; /* Current policy */
149 int k_supported; /* Maximum file size supported */
150#ifdef HAVE_STATVFS
151 struct statvfs spoolinfo; /* FS info for spool directory */
152 double spoolsize; /* FS size */
153#elif defined(HAVE_STATFS)
154 struct statfs spoolinfo; /* FS info for spool directory */
155 double spoolsize; /* FS size */
156#endif /* HAVE_STATVFS */
157 static const char * const page_delivery[] =
158 { /* page-delivery-supported values */
159 "reverse-order",
160 "same-order"
161 };
162 static const char * const print_scaling[] =
163 { /* print-scaling-supported values */
164 "auto",
165 "auto-fit",
166 "fill",
167 "fit",
168 "none"
169 };
170 static const int number_up[] = /* number-up-supported values */
171 { 1, 2, 4, 6, 9, 16 };
172 static const char * const number_up_layout[] =
173 { /* number-up-layout-supported values */
174 "btlr",
175 "btrl",
176 "lrbt",
177 "lrtb",
178 "rlbt",
179 "rltb",
180 "tblr",
181 "tbrl"
182 };
183 static const int orients[4] =/* orientation-requested-supported values */
184 {
185 IPP_PORTRAIT,
186 IPP_LANDSCAPE,
187 IPP_REVERSE_LANDSCAPE,
188 IPP_REVERSE_PORTRAIT
189 };
190 static const char * const holds[] = /* job-hold-until-supported values */
191 {
192 "no-hold",
193 "indefinite",
194 "day-time",
195 "evening",

Callers 2

cupsdReadConfigurationFunction · 0.85
cupsdSetPrinterAttrsFunction · 0.85

Calls 15

ippDeleteFunction · 0.85
ippNewFunction · 0.85
ippAddStringFunction · 0.85
ippAddStringsFunction · 0.85
ippAddIntegerFunction · 0.85
ippAddRangeFunction · 0.85
ippAddBooleanFunction · 0.85
cupsArrayCountFunction · 0.85
cupsdLogMessageFunction · 0.85
_cupsStrAllocFunction · 0.85
cupsArrayFirstFunction · 0.85
cupsArrayNextFunction · 0.85

Tested by

no test coverage detected