blob: baf3d5dc85d4891c16a58a657c93cb5f08235bcd [file] [log] [blame]
Jesse Barnes731cd552008-12-17 10:09:49 -08001/*
2 * \file xf86drmMode.h
3 * Header for DRM modesetting interface.
4 *
5 * \author Jakob Bornecrantz <wallbraker@gmail.com>
6 *
7 * \par Acknowledgements:
8 * Feb 2007, Dave Airlie <airlied@linux.ie>
9 */
10
11/*
12 * Copyright (c) 2007-2008 Tungsten Graphics, Inc., Cedar Park, Texas.
13 * Copyright (c) 2007-2008 Dave Airlie <airlied@linux.ie>
14 * Copyright (c) 2007-2008 Jakob Bornecrantz <wallbraker@gmail.com>
15 *
16 * Permission is hereby granted, free of charge, to any person obtaining a
17 * copy of this software and associated documentation files (the "Software"),
18 * to deal in the Software without restriction, including without limitation
19 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
20 * and/or sell copies of the Software, and to permit persons to whom the
21 * Software is furnished to do so, subject to the following conditions:
22 *
23 * The above copyright notice and this permission notice shall be included in
24 * all copies or substantial portions of the Software.
25 *
26 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
31 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
32 * IN THE SOFTWARE.
33 *
34 */
35
David Herrmanfd39e612012-03-09 13:40:14 -050036#ifndef _XF86DRMMODE_H_
37#define _XF86DRMMODE_H_
38
Tapani Pälli1c205742015-08-07 10:37:56 +030039#if defined(__cplusplus)
Tapani Pällicfee5212011-09-23 14:17:42 +030040extern "C" {
41#endif
42
Jesse Barnes731cd552008-12-17 10:09:49 -080043#include <drm.h>
Simon Serb82ed182020-12-11 22:23:00 +010044#include <drm_mode.h>
Simon Serd5682de2019-10-26 19:36:37 +020045#include <stddef.h>
46#include <stdint.h>
Jesse Barnes731cd552008-12-17 10:09:49 -080047
48/*
49 * This is the interface for modesetting for drm.
50 *
Jesse Barnes731cd552008-12-17 10:09:49 -080051 * It aims to provide a randr1.2 compatible interface for modesettings in the
Eric Engestrom360292c2018-12-19 14:55:45 +000052 * kernel, the interface is also meant to be used by libraries like EGL.
Jesse Barnes731cd552008-12-17 10:09:49 -080053 *
54 * More information can be found in randrproto.txt which can be found here:
55 * http://gitweb.freedesktop.org/?p=xorg/proto/randrproto.git
56 *
Eric Engestrom360292c2018-12-19 14:55:45 +000057 * There are some major differences to be noted. Unlike the randr1.2 proto you
Jesse Barnes731cd552008-12-17 10:09:49 -080058 * need to create the memory object of the framebuffer yourself with the ttm
59 * buffer object interface. This object needs to be pinned.
60 */
61
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +010062/*
Jakob Bornecrantz3e486132009-11-24 18:00:12 +010063 * Feature defines
64 *
65 * Just because these are defined doesn't mean that the kernel
66 * can do that feature, its just for new code vs old libdrm.
67 */
68#define DRM_MODE_FEATURE_KMS 1
69#define DRM_MODE_FEATURE_DIRTYFB 1
70
71
Jesse Barnes731cd552008-12-17 10:09:49 -080072typedef struct _drmModeRes {
73
74 int count_fbs;
75 uint32_t *fbs;
76
77 int count_crtcs;
78 uint32_t *crtcs;
79
80 int count_connectors;
81 uint32_t *connectors;
82
83 int count_encoders;
84 uint32_t *encoders;
85
86 uint32_t min_width, max_width;
87 uint32_t min_height, max_height;
88} drmModeRes, *drmModeResPtr;
89
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +010090typedef struct _drmModeModeInfo {
91 uint32_t clock;
92 uint16_t hdisplay, hsync_start, hsync_end, htotal, hskew;
93 uint16_t vdisplay, vsync_start, vsync_end, vtotal, vscan;
94
Marcin Kościelnicki694ef592010-02-27 15:04:42 +000095 uint32_t vrefresh;
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +010096
97 uint32_t flags;
98 uint32_t type;
99 char name[DRM_DISPLAY_MODE_LEN];
100} drmModeModeInfo, *drmModeModeInfoPtr;
101
102typedef struct _drmModeFB {
103 uint32_t fb_id;
104 uint32_t width, height;
105 uint32_t pitch;
106 uint32_t bpp;
107 uint32_t depth;
108 /* driver specific handle */
109 uint32_t handle;
110} drmModeFB, *drmModeFBPtr;
Jesse Barnes731cd552008-12-17 10:09:49 -0800111
Daniel Stoned8731e92020-02-11 12:19:16 -0800112typedef struct _drmModeFB2 {
113 uint32_t fb_id;
114 uint32_t width, height;
115 uint32_t pixel_format; /* fourcc code from drm_fourcc.h */
116 uint64_t modifier; /* applies to all buffers */
117 uint32_t flags;
118
119 /* per-plane GEM handle; may be duplicate entries for multiple planes */
120 uint32_t handles[4];
121 uint32_t pitches[4]; /* bytes */
122 uint32_t offsets[4]; /* bytes */
123} drmModeFB2, *drmModeFB2Ptr;
124
Jakob Bornecrantz3e486132009-11-24 18:00:12 +0100125typedef struct drm_clip_rect drmModeClip, *drmModeClipPtr;
126
Jesse Barnes731cd552008-12-17 10:09:49 -0800127typedef struct _drmModePropertyBlob {
128 uint32_t id;
129 uint32_t length;
130 void *data;
131} drmModePropertyBlobRes, *drmModePropertyBlobPtr;
132
133typedef struct _drmModeProperty {
134 uint32_t prop_id;
135 uint32_t flags;
136 char name[DRM_PROP_NAME_LEN];
137 int count_values;
Daniel Kurtz0f4452b2013-08-26 23:39:16 +0800138 uint64_t *values; /* store the blob lengths */
Jesse Barnes731cd552008-12-17 10:09:49 -0800139 int count_enums;
140 struct drm_mode_property_enum *enums;
141 int count_blobs;
Daniel Kurtz0f4452b2013-08-26 23:39:16 +0800142 uint32_t *blob_ids; /* store the blob IDs */
Jesse Barnes731cd552008-12-17 10:09:49 -0800143} drmModePropertyRes, *drmModePropertyPtr;
144
Daniel Kurtzd20314d2015-03-24 18:01:02 -0700145static __inline int drm_property_type_is(drmModePropertyPtr property,
Rob Clarkfb417702013-10-12 12:16:44 -0400146 uint32_t type)
147{
148 /* instanceof for props.. handles extended type vs original types: */
149 if (property->flags & DRM_MODE_PROP_EXTENDED_TYPE)
150 return (property->flags & DRM_MODE_PROP_EXTENDED_TYPE) == type;
151 return property->flags & type;
152}
153
Jesse Barnes731cd552008-12-17 10:09:49 -0800154typedef struct _drmModeCrtc {
155 uint32_t crtc_id;
156 uint32_t buffer_id; /**< FB id to connect to 0 = disconnect */
157
158 uint32_t x, y; /**< Position on the framebuffer */
159 uint32_t width, height;
160 int mode_valid;
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100161 drmModeModeInfo mode;
Jesse Barnes731cd552008-12-17 10:09:49 -0800162
163 int gamma_size; /**< Number of gamma stops */
164
165} drmModeCrtc, *drmModeCrtcPtr;
166
167typedef struct _drmModeEncoder {
168 uint32_t encoder_id;
169 uint32_t encoder_type;
170 uint32_t crtc_id;
171 uint32_t possible_crtcs;
172 uint32_t possible_clones;
173} drmModeEncoder, *drmModeEncoderPtr;
174
Simon Serdf373422020-11-18 10:58:59 +0100175/**
176 * Describes the connector status.
177 *
178 * DRM_MODE_CONNECTED means that the connector has a sink plugged in.
179 * DRM_MODE_DISCONNECTED means the contrary. DRM_MODE_UNKNOWNCONNECTION is used
180 * when it could be either.
181 *
182 * User-space should first try to enable DRM_MODE_CONNECTED connectors and
183 * ignore other connectors. If there are no DRM_MODE_CONNECTED connectors,
184 * user-space should then try to probe and enable DRM_MODE_UNKNOWNCONNECTION
185 * connectors.
186 */
Jesse Barnes731cd552008-12-17 10:09:49 -0800187typedef enum {
188 DRM_MODE_CONNECTED = 1,
189 DRM_MODE_DISCONNECTED = 2,
190 DRM_MODE_UNKNOWNCONNECTION = 3
191} drmModeConnection;
192
193typedef enum {
194 DRM_MODE_SUBPIXEL_UNKNOWN = 1,
195 DRM_MODE_SUBPIXEL_HORIZONTAL_RGB = 2,
196 DRM_MODE_SUBPIXEL_HORIZONTAL_BGR = 3,
197 DRM_MODE_SUBPIXEL_VERTICAL_RGB = 4,
198 DRM_MODE_SUBPIXEL_VERTICAL_BGR = 5,
199 DRM_MODE_SUBPIXEL_NONE = 6
200} drmModeSubPixel;
201
202typedef struct _drmModeConnector {
203 uint32_t connector_id;
204 uint32_t encoder_id; /**< Encoder currently connected to */
205 uint32_t connector_type;
206 uint32_t connector_type_id;
207 drmModeConnection connection;
208 uint32_t mmWidth, mmHeight; /**< HxW in millimeters */
209 drmModeSubPixel subpixel;
210
211 int count_modes;
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100212 drmModeModeInfoPtr modes;
Jesse Barnes731cd552008-12-17 10:09:49 -0800213
214 int count_props;
215 uint32_t *props; /**< List of property ids */
216 uint64_t *prop_values; /**< List of property values */
217
218 int count_encoders;
219 uint32_t *encoders; /**< List of encoder ids */
220} drmModeConnector, *drmModeConnectorPtr;
221
Matt Roper8fc62ca2014-04-10 14:23:12 -0700222#define DRM_PLANE_TYPE_OVERLAY 0
223#define DRM_PLANE_TYPE_PRIMARY 1
224#define DRM_PLANE_TYPE_CURSOR 2
225
Paulo Zanoni8c757032012-05-15 18:38:28 -0300226typedef struct _drmModeObjectProperties {
227 uint32_t count_props;
228 uint32_t *props;
229 uint64_t *prop_values;
230} drmModeObjectProperties, *drmModeObjectPropertiesPtr;
231
Jesse Barnesac168bf2011-04-29 08:53:53 -0700232typedef struct _drmModePlane {
233 uint32_t count_formats;
234 uint32_t *formats;
235 uint32_t plane_id;
Jesse Barnes731cd552008-12-17 10:09:49 -0800236
Jesse Barnesac168bf2011-04-29 08:53:53 -0700237 uint32_t crtc_id;
238 uint32_t fb_id;
239
240 uint32_t crtc_x, crtc_y;
241 uint32_t x, y;
242
243 uint32_t possible_crtcs;
244 uint32_t gamma_size;
245} drmModePlane, *drmModePlanePtr;
246
247typedef struct _drmModePlaneRes {
248 uint32_t count_planes;
249 uint32_t *planes;
250} drmModePlaneRes, *drmModePlaneResPtr;
Jesse Barnes731cd552008-12-17 10:09:49 -0800251
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100252extern void drmModeFreeModeInfo( drmModeModeInfoPtr ptr );
Jesse Barnes731cd552008-12-17 10:09:49 -0800253extern void drmModeFreeResources( drmModeResPtr ptr );
254extern void drmModeFreeFB( drmModeFBPtr ptr );
Daniel Stoned8731e92020-02-11 12:19:16 -0800255extern void drmModeFreeFB2( drmModeFB2Ptr ptr );
Jesse Barnes731cd552008-12-17 10:09:49 -0800256extern void drmModeFreeCrtc( drmModeCrtcPtr ptr );
257extern void drmModeFreeConnector( drmModeConnectorPtr ptr );
258extern void drmModeFreeEncoder( drmModeEncoderPtr ptr );
Jesse Barnesac168bf2011-04-29 08:53:53 -0700259extern void drmModeFreePlane( drmModePlanePtr ptr );
Ville Syrjäläa14c3dd2012-02-02 14:53:41 -0500260extern void drmModeFreePlaneResources(drmModePlaneResPtr ptr);
Jesse Barnes731cd552008-12-17 10:09:49 -0800261
262/**
Eric Engestrom360292c2018-12-19 14:55:45 +0000263 * Retrieves all of the resources associated with a card.
Jesse Barnes731cd552008-12-17 10:09:49 -0800264 */
265extern drmModeResPtr drmModeGetResources(int fd);
266
267/*
268 * FrameBuffer manipulation.
269 */
270
271/**
Eric Engestrom360292c2018-12-19 14:55:45 +0000272 * Retrieve information about framebuffer bufferId
Jesse Barnes731cd552008-12-17 10:09:49 -0800273 */
274extern drmModeFBPtr drmModeGetFB(int fd, uint32_t bufferId);
Daniel Stoned8731e92020-02-11 12:19:16 -0800275extern drmModeFB2Ptr drmModeGetFB2(int fd, uint32_t bufferId);
Jesse Barnes731cd552008-12-17 10:09:49 -0800276
277/**
278 * Creates a new framebuffer with an buffer object as its scanout buffer.
279 */
280extern int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth,
281 uint8_t bpp, uint32_t pitch, uint32_t bo_handle,
282 uint32_t *buf_id);
Jesse Barnesac168bf2011-04-29 08:53:53 -0700283/* ...with a specific pixel format */
284extern int drmModeAddFB2(int fd, uint32_t width, uint32_t height,
Tobias Jakobi09be5412017-10-10 12:12:52 +0200285 uint32_t pixel_format, const uint32_t bo_handles[4],
286 const uint32_t pitches[4], const uint32_t offsets[4],
Jesse Barnesac168bf2011-04-29 08:53:53 -0700287 uint32_t *buf_id, uint32_t flags);
Kristian H. Kristensenabfa6802016-09-08 13:08:59 -0700288
289/* ...with format modifiers */
290int drmModeAddFB2WithModifiers(int fd, uint32_t width, uint32_t height,
Tobias Jakobi09be5412017-10-10 12:12:52 +0200291 uint32_t pixel_format, const uint32_t bo_handles[4],
292 const uint32_t pitches[4], const uint32_t offsets[4],
293 const uint64_t modifier[4], uint32_t *buf_id,
294 uint32_t flags);
Kristian H. Kristensenabfa6802016-09-08 13:08:59 -0700295
Jesse Barnes731cd552008-12-17 10:09:49 -0800296/**
297 * Destroies the given framebuffer.
298 */
299extern int drmModeRmFB(int fd, uint32_t bufferId);
300
Jakob Bornecrantz3e486132009-11-24 18:00:12 +0100301/**
302 * Mark a region of a framebuffer as dirty.
303 */
304extern int drmModeDirtyFB(int fd, uint32_t bufferId,
305 drmModeClipPtr clips, uint32_t num_clips);
306
307
Jesse Barnes731cd552008-12-17 10:09:49 -0800308/*
309 * Crtc functions
310 */
311
312/**
Eric Engestrom360292c2018-12-19 14:55:45 +0000313 * Retrieve information about the ctrt crtcId
Jesse Barnes731cd552008-12-17 10:09:49 -0800314 */
315extern drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtcId);
316
317/**
318 * Set the mode on a crtc crtcId with the given mode modeId.
319 */
320int drmModeSetCrtc(int fd, uint32_t crtcId, uint32_t bufferId,
321 uint32_t x, uint32_t y, uint32_t *connectors, int count,
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100322 drmModeModeInfoPtr mode);
Jesse Barnes731cd552008-12-17 10:09:49 -0800323
324/*
325 * Cursor functions
326 */
327
328/**
329 * Set the cursor on crtc
330 */
331int drmModeSetCursor(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width, uint32_t height);
332
Dave Airlie2e0ab622013-07-02 09:21:06 +0100333int drmModeSetCursor2(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width, uint32_t height, int32_t hot_x, int32_t hot_y);
Jesse Barnes731cd552008-12-17 10:09:49 -0800334/**
335 * Move the cursor on crtc
336 */
337int drmModeMoveCursor(int fd, uint32_t crtcId, int x, int y);
338
339/**
340 * Encoder functions
341 */
342drmModeEncoderPtr drmModeGetEncoder(int fd, uint32_t encoder_id);
343
344/*
345 * Connector manipulation
346 */
347
348/**
Chris Wilson5ed5fa12015-03-04 10:07:19 +0000349 * Retrieve all information about the connector connectorId. This will do a
350 * forced probe on the connector to retrieve remote information such as EDIDs
351 * from the display device.
Jesse Barnes731cd552008-12-17 10:09:49 -0800352 */
353extern drmModeConnectorPtr drmModeGetConnector(int fd,
Chris Wilson5ed5fa12015-03-04 10:07:19 +0000354 uint32_t connectorId);
355
356/**
357 * Retrieve current information, i.e the currently active mode and encoder,
358 * about the connector connectorId. This will not do any probing on the
359 * connector or remote device, and only reports what is currently known.
360 * For the complete set of modes and encoders associated with the connector
361 * use drmModeGetConnector() which will do a probe to determine any display
362 * link changes first.
363 */
364extern drmModeConnectorPtr drmModeGetConnectorCurrent(int fd,
365 uint32_t connector_id);
Jesse Barnes731cd552008-12-17 10:09:49 -0800366
367/**
368 * Attaches the given mode to an connector.
369 */
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100370extern int drmModeAttachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
Jesse Barnes731cd552008-12-17 10:09:49 -0800371
372/**
373 * Detaches a mode from the connector
374 * must be unused, by the given mode.
375 */
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100376extern int drmModeDetachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
Jesse Barnes731cd552008-12-17 10:09:49 -0800377
378extern drmModePropertyPtr drmModeGetProperty(int fd, uint32_t propertyId);
379extern void drmModeFreeProperty(drmModePropertyPtr ptr);
380
381extern drmModePropertyBlobPtr drmModeGetPropertyBlob(int fd, uint32_t blob_id);
382extern void drmModeFreePropertyBlob(drmModePropertyBlobPtr ptr);
383extern int drmModeConnectorSetProperty(int fd, uint32_t connector_id, uint32_t property_id,
384 uint64_t value);
385extern int drmCheckModesettingSupported(const char *busid);
386
387extern int drmModeCrtcSetGamma(int fd, uint32_t crtc_id, uint32_t size,
388 uint16_t *red, uint16_t *green, uint16_t *blue);
389extern int drmModeCrtcGetGamma(int fd, uint32_t crtc_id, uint32_t size,
390 uint16_t *red, uint16_t *green, uint16_t *blue);
Kristian Høgsbergb80bcff2009-11-12 14:06:45 -0500391extern int drmModePageFlip(int fd, uint32_t crtc_id, uint32_t fb_id,
392 uint32_t flags, void *user_data);
Michel Dänzer7dd28472016-06-29 18:07:25 +0900393extern int drmModePageFlipTarget(int fd, uint32_t crtc_id, uint32_t fb_id,
394 uint32_t flags, void *user_data,
395 uint32_t target_vblank);
Tapani Pällicfee5212011-09-23 14:17:42 +0300396
Jesse Barnesac168bf2011-04-29 08:53:53 -0700397extern drmModePlaneResPtr drmModeGetPlaneResources(int fd);
398extern drmModePlanePtr drmModeGetPlane(int fd, uint32_t plane_id);
399extern int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
400 uint32_t fb_id, uint32_t flags,
Daniel Kurtz828c3e82014-05-01 19:56:43 +0800401 int32_t crtc_x, int32_t crtc_y,
Jesse Barnesac168bf2011-04-29 08:53:53 -0700402 uint32_t crtc_w, uint32_t crtc_h,
403 uint32_t src_x, uint32_t src_y,
404 uint32_t src_w, uint32_t src_h);
405
Paulo Zanoni8c757032012-05-15 18:38:28 -0300406extern drmModeObjectPropertiesPtr drmModeObjectGetProperties(int fd,
407 uint32_t object_id,
408 uint32_t object_type);
409extern void drmModeFreeObjectProperties(drmModeObjectPropertiesPtr ptr);
410extern int drmModeObjectSetProperty(int fd, uint32_t object_id,
411 uint32_t object_type, uint32_t property_id,
412 uint64_t value);
413
Ville Syrjäläed44e0b2015-06-22 17:26:02 +0100414
415typedef struct _drmModeAtomicReq drmModeAtomicReq, *drmModeAtomicReqPtr;
416
417extern drmModeAtomicReqPtr drmModeAtomicAlloc(void);
418extern drmModeAtomicReqPtr drmModeAtomicDuplicate(drmModeAtomicReqPtr req);
419extern int drmModeAtomicMerge(drmModeAtomicReqPtr base,
420 drmModeAtomicReqPtr augment);
421extern void drmModeAtomicFree(drmModeAtomicReqPtr req);
422extern int drmModeAtomicGetCursor(drmModeAtomicReqPtr req);
423extern void drmModeAtomicSetCursor(drmModeAtomicReqPtr req, int cursor);
424extern int drmModeAtomicAddProperty(drmModeAtomicReqPtr req,
425 uint32_t object_id,
426 uint32_t property_id,
427 uint64_t value);
428extern int drmModeAtomicCommit(int fd,
429 drmModeAtomicReqPtr req,
430 uint32_t flags,
431 void *user_data);
432
Daniel Stone32471b22015-06-22 17:26:03 +0100433extern int drmModeCreatePropertyBlob(int fd, const void *data, size_t size,
434 uint32_t *id);
435extern int drmModeDestroyPropertyBlob(int fd, uint32_t id);
436
Keith Packardc4171532017-03-16 18:11:05 -0700437/*
438 * DRM mode lease APIs. These create and manage new drm_masters with
439 * access to a subset of the available DRM resources
440 */
441
442extern int drmModeCreateLease(int fd, const uint32_t *objects, int num_objects, int flags, uint32_t *lessee_id);
443
444typedef struct drmModeLesseeList {
445 uint32_t count;
Simon Ser31dc1482020-11-26 17:20:04 +0100446 uint32_t lessees[];
Keith Packardc4171532017-03-16 18:11:05 -0700447} drmModeLesseeListRes, *drmModeLesseeListPtr;
448
449extern drmModeLesseeListPtr drmModeListLessees(int fd);
450
451typedef struct drmModeObjectList {
452 uint32_t count;
Simon Ser31dc1482020-11-26 17:20:04 +0100453 uint32_t objects[];
Keith Packardc4171532017-03-16 18:11:05 -0700454} drmModeObjectListRes, *drmModeObjectListPtr;
455
456extern drmModeObjectListPtr drmModeGetLease(int fd);
457
458extern int drmModeRevokeLease(int fd, uint32_t lessee_id);
Daniel Stone32471b22015-06-22 17:26:03 +0100459
Tapani Pälli1c205742015-08-07 10:37:56 +0300460#if defined(__cplusplus)
Tapani Pällicfee5212011-09-23 14:17:42 +0300461}
462#endif
David Herrmanfd39e612012-03-09 13:40:14 -0500463
464#endif