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

Function cupsRasterReadHeader2

cups/raster-stubs.c:191–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 */
190
191unsigned /* O - 1 on success, 0 on failure/end-of-file */
192cupsRasterReadHeader2(
193 cups_raster_t *r, /* I - Raster stream */
194 cups_page_header2_t *h) /* I - Pointer to header data */
195{
196 /*
197 * Get the raster header...
198 */
199
200 if (!_cupsRasterReadHeader(r))
201 {
202 memset(h, 0, sizeof(cups_page_header2_t));
203 return (0);
204 }
205
206 /*
207 * Copy the header to the user-supplied buffer...
208 */
209
210 memcpy(h, &(r->header), sizeof(cups_page_header2_t));
211 return (1);
212}
213
214
215/*

Callers 9

raster_to_psFunction · 0.85
raster_to_pclFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
do_ras_fileFunction · 0.85
do_raster_testsFunction · 0.85
read_testFunction · 0.85

Calls 1

_cupsRasterReadHeaderFunction · 0.85

Tested by 2

do_ras_fileFunction · 0.68
do_raster_testsFunction · 0.68