/* Copyright (C) 2017-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: dk4gralo.ctr */ /** @file dk4gralo.h Header file for the dk4gralo module. */ #ifndef DK4GRALO_H_INCLUDED /** Avoid multiple inclusions. */ #define DK4GRALO_H_INCLUDED 1 #line 8 "dk4gralo.ctr" #ifndef DK4CONF_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include "dk4conf.h" #else #include #endif #endif #ifndef DK4TYPES_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include "dk4types.h" #else #include #endif #endif #ifndef DK4APP_H_INCLUDED #if DK4_BUILDING_DKTOOLS4 #include "dk4app.h" #else #include #endif #endif #ifdef __cplusplus extern "C" { #endif /** Obtain array of localized texts. @param app Application structure. @return String table of localized texts. The table can be used only as long as app is valid, as app manages the memory for the string table. */ const dkChar * const * dk4gralog_localized_texts(dk4_app_t *app); /** Find string table size (number of strings) in default string array. @return Number of strings required in string table file. */ size_t dk4gralog_sz_localized_texts(void); /** Issue message of 1 component (const). @param app Aplication structure. @param priority Message priority. @param i1 Index of first constant part in message array. */ void dk4gralog_1( dk4_app_t *app, int priority, size_t i1 ); /** Issue message of 3 components (const, variable, const). @param app Aplication structure. @param priority Message priority. @param i1 Index of first constant part in message array. @param i2 Index of second constant part in message array. @param t1 Variable text. */ void dk4gralog_3( dk4_app_t *app, int priority, size_t i1, size_t i2, const dkChar *t1 ); /** Write error message about illegal resolution value. @param app Application structure for diagnostics. @param priority Diagnostic message priority. @param t1 Text entered by the user. @param allowed Allowed texts to use instead. */ void dk4gralog_choice( dk4_app_t *app, int priority, const dkChar *t1, const dkChar *allowed ); #ifdef __cplusplus } #endif /* vim: set ai sw=4 ts=4 : */ #endif