summaryrefslogtreecommitdiff
path: root/include/term/term_types.h
blob: 78be37175d227242575144925a351b21b6fd4a9a (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
#ifndef TERM_TYPES_H
#define TERM_TYPES_H

/* Marks the public functions. The library builds with hidden symbols, so
 * only these are visible outside a shared build. A host can define it
 * first, for example as __declspec(dllimport). */
#ifndef TERM_API
#if defined(__GNUC__) || defined(__clang__)
#define TERM_API __attribute__((visibility("default")))
#else
#define TERM_API
#endif
#endif

#ifdef __cplusplus
extern "C" {
#endif

struct term_vector2i {
    int x, y;
};

struct term_span {
    int begin;
    int end;
};

#ifdef __cplusplus
}
#endif

#endif