summaryrefslogtreecommitdiff
path: root/support/dktools/WxdkdrawRead.h
blob: 2791fbe67bd8722c4182908f2dd2ec8fa9f40524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
Copyright (C) 2019-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: WxdkdrawRead.cpt
*/

/**	@file WxdkdrawRead.h Header file for the WxdkdrawRead module.
*/

#ifndef WXDKDRAWREAD_H_INCLUDED
/** Avoid multiple inclusions. */
#define WXDKDRAWREAD_H_INCLUDED 1


#line 8 "WxdkdrawRead.cpt"

#ifndef	WXDKDRAWTYPES_H_INCLUDED
#include "WxdkdrawTypes.h"
#endif



/* PROTOTYPES (start) */


/**	Initialize status structure to "no error occured".
	After initializing the status structure set the wxe component
	to the wxChar encoding obtained from the Dk4WxApplicationHelper class,
	method GetWxEncoding().
	@param	pstat	Status structure to initialize.
*/
void
wxdrd_status_init(wxdrd_status_t *pstat);


/**	Read drawing from file.
	@param	fin		Input file opened for text reading.
	@param	pstat	Status structure, must be initialized.
	@return	Valid pointer on success, NULL on error.
*/
Wxd_drawing_t *
wxdrd_read_file(FILE *fin, wxdrd_status_t *pstat);

/**	Read library element from file.
	@param	pdrw	Drawing to insert the library element.
	@param	fin		Input file opened for text reading.
	@param	pstat	Status structure, must be initialized.
	@return	Pointer to new group object on success, NULL on error.
*/
Wxd_object_t *
wxdrd_read_symbol(Wxd_drawing_t *pdrw, FILE *fin, wxdrd_status_t *pstat);


/* PROTOTYPES (end) */


/* vim: set ai sw=4 ts=4 : */


#endif