Top secrets sources NedoPC pentevo

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

#ifndef _NLMESSAGES_H
#define _NLMESSAGES_H
/* nlmessages.h */
/*****************************************************************************/
/* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only                     */
/*                                                                           */
/* AS-Portierung                                                             */
/*                                                                           */
/* Einlesen und Verwalten von Meldungs-Strings                               */
/*                                                                           */
/* Historie: 13. 8.1997 Grundsteinlegung                                     */
/*           17. 8.1997 Verallgemeinerung auf mehrere Kataloge               */
/*                                                                           */
/*****************************************************************************/

#include <stddef.h>
#include "datatypes.h"

typedef struct
{
  char *MsgBlock;
  LongInt *StrPosis, MsgCount;
} TMsgCat, *PMsgCat;

extern char *catgetmessage(PMsgCat Catalog, int Num);

extern void msg_catalog_open_file(PMsgCat p_catalog, const char *p_file_name, const char *p_exe_path, LongInt file_msg_id1, LongInt file_msg_id2);
extern void msg_catalog_open_buffer(PMsgCat p_catalog, const unsigned char *p_buffer, size_t buffer_size, LongInt file_msg_id1, LongInt file_msg_id2);

extern char *getmessage(int Num);

extern void nlmessages_init_file(const char *p_file_name, char *p_exe_path, LongInt msg_id1, LongInt msg_id2);
extern void nlmessages_init_buffer(const unsigned char *p_buffer, size_t buffer_size, LongInt msg_id1, LongInt msg_id2);

#endif /* _NLMESSAGES_H */