pappl-makeresheader(1)

✨ pappl-makeresheader ✨

okay so bestie, this one is a little command-line cutie from the PAPPL family β€” it's a resource header utility, and honestly? it's giving "tiny tool, huge glow-up" πŸ’…


🌸 SYNOPSIS 🌸

pappl-makeresheader FILES > FILENAME.h

πŸ’– DESCRIPTION πŸ’–

okay so pappl-makeresheader makes a C header file that you can literally just include in a printer application. no cap. πŸ–¨οΈβœ¨

that header file creates a C unsigned char array or a string constant, and you can use it with the papplSystemAddResourceData or papplSystemAddResourceString functions β€” or as data for a printer icon in the pappl_icon_t structure. iconic behaviour tbh πŸ‘‘

the C variable names used for each file? generated by replacing all spaces, dots, and dashes with the underscore. so like, a file named my printer-icon.png would have the C variable name my_printer_icon_png. the way it just swaps those characters out... obsessed 🫢


πŸ‘€ SEE ALSO πŸ‘€


Copyright Β© 2019-2020 by Michael S Sweet.

PAPPL is licensed under the Apache License Version 2.0 with an (optional) exception to allow linking against GPL2/LGPL2 software (like older versions of CUPS), so it can be used freely in any project you'd like. See the files LICENSE and NOTICE in the source distribution for more information. πŸ’œ


and that's the whole page, bestie β€” written by Michael R Sweet, this version dated 2020-10-25, living its best life as part of pappl-makeresheader in the PAPPL 1.0 era. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from