/* Copyright (C) 2011-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: dk3paper.ctr */ /** @file dk3paper.h Header file for the dk3paper module. */ #ifndef DK3PAPER_H_INCLUDED /** Avoid multiple inclusions. */ #define DK3PAPER_H_INCLUDED 1 #line 10 "dk3paper.ctr" #ifdef __cplusplus extern "C" { #endif /** Create paper sizes collection, read dk3paper.conf files. @param app Application structure for diagnostics and file search, must not be NULL. @return Pointer to new collection on success, NULL on error. */ dk3_paper_size_collection_t * dk3paper_open_app(dk3_app_t *app); /** Find paper size by name. @param psc Paper size collection. @param psn Paper size name. @return Pointer to paper size on success, NULL on error. */ dk3_paper_size_t const * dk3paper_find(dk3_paper_size_collection_t *psc, dkChar const *psn); /** Close paper size collection, release memory. @param psc Collection to close. */ void dk3paper_close(dk3_paper_size_collection_t *psc); /** Prepare traversing the paper size collection for named paper sizes. @param psc Paper size collection. */ void dk3paper_reset(dk3_paper_size_collection_t *psc); /** Retrieve next named paper size from size collection. @param psc Paper size collection. @return Pointer to named paper size on success, NULL on error/end. */ dk3_named_paper_size_t const * dk3paper_next(dk3_paper_size_collection_t *psc); #ifdef __cplusplus } #endif #endif