summaryrefslogtreecommitdiff
path: root/support/dktools/wxdcomp.h
blob: a7cf5a2a273cc67b31a11655e33f5368f792b398 (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
/*
Copyright (C) 2018-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: wxdcomp.ctr
*/

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


#line 8 "wxdcomp.ctr"

/**	@file	wxdcomp.h	Compare drawing objects.
*/

#ifndef	DK4TYPES_H_INCLUDED
#include "dk4types.h"
#endif

#ifndef	WXDTYPES_H_INCLUDED
#include "wxdtypes.h"
#endif


#ifdef	__cplusplus
extern "C" {
#endif

/**	Compare drawing objects.
	@param	l	Left object.
	@param	r	Right object or name.
	@param	cr	Comparison criteria, ignored.
	@return	Comparison result: -1: l<r, 0: l=r, 1 l>r.
*/

int
wxd2lat_compare_object(const void *l, const void *r, int cr);


/**	Find category for object type.
	@param	ot	Object type.
	@return	Category for object type.
*/

int
wxd2lat_object_category(int8_t ot);


#ifdef	__cplusplus
}
#endif


#endif