blob: abd0c1ce68216388968ef2f4739e8fbeb6fcac1f [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 *
51 * In order to use this interface you must include either <stdint.h> or another
52 * header defining uint32_t, int32_t and uint16_t.
53 *
54 * It aims to provide a randr1.2 compatible interface for modesettings in the
Eric Engestrom360292c2018-12-19 14:55:45 +000055 * kernel, the interface is also meant to be used by libraries like EGL.
Jesse Barnes731cd552008-12-17 10:09:49 -080056 *
57 * More information can be found in randrproto.txt which can be found here:
58 * http://gitweb.freedesktop.org/?p=xorg/proto/randrproto.git
59 *
Eric Engestrom360292c2018-12-19 14:55:45 +000060 * There are some major differences to be noted. Unlike the randr1.2 proto you
Jesse Barnes731cd552008-12-17 10:09:49 -080061 * need to create the memory object of the framebuffer yourself with the ttm
62 * buffer object interface. This object needs to be pinned.
63 */
64
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +010065/*
Jakob Bornecrantz3e486132009-11-24 18:00:12 +010066 * Feature defines
67 *
68 * Just because these are defined doesn't mean that the kernel
69 * can do that feature, its just for new code vs old libdrm.
70 */
71#define DRM_MODE_FEATURE_KMS 1
72#define DRM_MODE_FEATURE_DIRTYFB 1
73
74
Jesse Barnes731cd552008-12-17 10:09:49 -080075typedef struct _drmModeRes {
76
77 int count_fbs;
78 uint32_t *fbs;
79
80 int count_crtcs;
81 uint32_t *crtcs;
82
83 int count_connectors;
84 uint32_t *connectors;
85
86 int count_encoders;
87 uint32_t *encoders;
88
89 uint32_t min_width, max_width;
90 uint32_t min_height, max_height;
91} drmModeRes, *drmModeResPtr;
92
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +010093typedef struct _drmModeModeInfo {
94 uint32_t clock;
95 uint16_t hdisplay, hsync_start, hsync_end, htotal, hskew;
96 uint16_t vdisplay, vsync_start, vsync_end, vtotal, vscan;
97
Marcin Kościelnicki694ef592010-02-27 15:04:42 +000098 uint32_t vrefresh;
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +010099
100 uint32_t flags;
101 uint32_t type;
102 char name[DRM_DISPLAY_MODE_LEN];
103} drmModeModeInfo, *drmModeModeInfoPtr;
104
105typedef struct _drmModeFB {
106 uint32_t fb_id;
107 uint32_t width, height;
108 uint32_t pitch;
109 uint32_t bpp;
110 uint32_t depth;
111 /* driver specific handle */
112 uint32_t handle;
113} drmModeFB, *drmModeFBPtr;
Jesse Barnes731cd552008-12-17 10:09:49 -0800114
Daniel Stoned8731e92020-02-11 12:19:16 -0800115typedef struct _drmModeFB2 {
116 uint32_t fb_id;
117 uint32_t width, height;
118 uint32_t pixel_format; /* fourcc code from drm_fourcc.h */
119 uint64_t modifier; /* applies to all buffers */
120 uint32_t flags;
121
122 /* per-plane GEM handle; may be duplicate entries for multiple planes */
123 uint32_t handles[4];
124 uint32_t pitches[4]; /* bytes */
125 uint32_t offsets[4]; /* bytes */
126} drmModeFB2, *drmModeFB2Ptr;
127
Jakob Bornecrantz3e486132009-11-24 18:00:12 +0100128typedef struct drm_clip_rect drmModeClip, *drmModeClipPtr;
129
Jesse Barnes731cd552008-12-17 10:09:49 -0800130typedef struct _drmModePropertyBlob {
131 uint32_t id;
132 uint32_t length;
133 void *data;
134} drmModePropertyBlobRes, *drmModePropertyBlobPtr;
135
136typedef struct _drmModeProperty {
137 uint32_t prop_id;
138 uint32_t flags;
139 char name[DRM_PROP_NAME_LEN];
140 int count_values;
Daniel Kurtz0f4452b2013-08-26 23:39:16 +0800141 uint64_t *values; /* store the blob lengths */
Jesse Barnes731cd552008-12-17 10:09:49 -0800142 int count_enums;
143 struct drm_mode_property_enum *enums;
144 int count_blobs;
Daniel Kurtz0f4452b2013-08-26 23:39:16 +0800145 uint32_t *blob_ids; /* store the blob IDs */
Jesse Barnes731cd552008-12-17 10:09:49 -0800146} drmModePropertyRes, *drmModePropertyPtr;
147
Daniel Kurtzd20314d2015-03-24 18:01:02 -0700148static __inline int drm_property_type_is(drmModePropertyPtr property,
Rob Clarkfb417702013-10-12 12:16:44 -0400149 uint32_t type)
150{
151 /* instanceof for props.. handles extended type vs original types: */
152 if (property->flags & DRM_MODE_PROP_EXTENDED_TYPE)
153 return (property->flags & DRM_MODE_PROP_EXTENDED_TYPE) == type;
154 return property->flags & type;
155}
156
Jesse Barnes731cd552008-12-17 10:09:49 -0800157typedef struct _drmModeCrtc {
158 uint32_t crtc_id;
159 uint32_t buffer_id; /**< FB id to connect to 0 = disconnect */
160
161 uint32_t x, y; /**< Position on the framebuffer */
162 uint32_t width, height;
163 int mode_valid;
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100164 drmModeModeInfo mode;
Jesse Barnes731cd552008-12-17 10:09:49 -0800165
166 int gamma_size; /**< Number of gamma stops */
167
168} drmModeCrtc, *drmModeCrtcPtr;
169
170typedef struct _drmModeEncoder {
171 uint32_t encoder_id;
172 uint32_t encoder_type;
173 uint32_t crtc_id;
174 uint32_t possible_crtcs;
175 uint32_t possible_clones;
176} drmModeEncoder, *drmModeEncoderPtr;
177
Simon Serdf373422020-11-18 10:58:59 +0100178/**
179 * Describes the connector status.
180 *
181 * DRM_MODE_CONNECTED means that the connector has a sink plugged in.
182 * DRM_MODE_DISCONNECTED means the contrary. DRM_MODE_UNKNOWNCONNECTION is used
183 * when it could be either.
184 *
185 * User-space should first try to enable DRM_MODE_CONNECTED connectors and
186 * ignore other connectors. If there are no DRM_MODE_CONNECTED connectors,
187 * user-space should then try to probe and enable DRM_MODE_UNKNOWNCONNECTION
188 * connectors.
189 */
Jesse Barnes731cd552008-12-17 10:09:49 -0800190typedef enum {
191 DRM_MODE_CONNECTED = 1,
192 DRM_MODE_DISCONNECTED = 2,
193 DRM_MODE_UNKNOWNCONNECTION = 3
194} drmModeConnection;
195
196typedef enum {
197 DRM_MODE_SUBPIXEL_UNKNOWN = 1,
198 DRM_MODE_SUBPIXEL_HORIZONTAL_RGB = 2,
199 DRM_MODE_SUBPIXEL_HORIZONTAL_BGR = 3,
200 DRM_MODE_SUBPIXEL_VERTICAL_RGB = 4,
201 DRM_MODE_SUBPIXEL_VERTICAL_BGR = 5,
202 DRM_MODE_SUBPIXEL_NONE = 6
203} drmModeSubPixel;
204
205typedef struct _drmModeConnector {
206 uint32_t connector_id;
207 uint32_t encoder_id; /**< Encoder currently connected to */
208 uint32_t connector_type;
209 uint32_t connector_type_id;
210 drmModeConnection connection;
211 uint32_t mmWidth, mmHeight; /**< HxW in millimeters */
212 drmModeSubPixel subpixel;
213
214 int count_modes;
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100215 drmModeModeInfoPtr modes;
Jesse Barnes731cd552008-12-17 10:09:49 -0800216
217 int count_props;
218 uint32_t *props; /**< List of property ids */
219 uint64_t *prop_values; /**< List of property values */
220
221 int count_encoders;
222 uint32_t *encoders; /**< List of encoder ids */
223} drmModeConnector, *drmModeConnectorPtr;
224
Matt Roper8fc62ca2014-04-10 14:23:12 -0700225#define DRM_PLANE_TYPE_OVERLAY 0
226#define DRM_PLANE_TYPE_PRIMARY 1
227#define DRM_PLANE_TYPE_CURSOR 2
228
Paulo Zanoni8c757032012-05-15 18:38:28 -0300229typedef struct _drmModeObjectProperties {
230 uint32_t count_props;
231 uint32_t *props;
232 uint64_t *prop_values;
233} drmModeObjectProperties, *drmModeObjectPropertiesPtr;
234
Jesse Barnesac168bf2011-04-29 08:53:53 -0700235typedef struct _drmModePlane {
236 uint32_t count_formats;
237 uint32_t *formats;
238 uint32_t plane_id;
Jesse Barnes731cd552008-12-17 10:09:49 -0800239
Jesse Barnesac168bf2011-04-29 08:53:53 -0700240 uint32_t crtc_id;
241 uint32_t fb_id;
242
243 uint32_t crtc_x, crtc_y;
244 uint32_t x, y;
245
246 uint32_t possible_crtcs;
247 uint32_t gamma_size;
248} drmModePlane, *drmModePlanePtr;
249
250typedef struct _drmModePlaneRes {
251 uint32_t count_planes;
252 uint32_t *planes;
253} drmModePlaneRes, *drmModePlaneResPtr;
Jesse Barnes731cd552008-12-17 10:09:49 -0800254
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100255extern void drmModeFreeModeInfo( drmModeModeInfoPtr ptr );
Jesse Barnes731cd552008-12-17 10:09:49 -0800256extern void drmModeFreeResources( drmModeResPtr ptr );
257extern void drmModeFreeFB( drmModeFBPtr ptr );
Daniel Stoned8731e92020-02-11 12:19:16 -0800258extern void drmModeFreeFB2( drmModeFB2Ptr ptr );
Jesse Barnes731cd552008-12-17 10:09:49 -0800259extern void drmModeFreeCrtc( drmModeCrtcPtr ptr );
260extern void drmModeFreeConnector( drmModeConnectorPtr ptr );
261extern void drmModeFreeEncoder( drmModeEncoderPtr ptr );
Jesse Barnesac168bf2011-04-29 08:53:53 -0700262extern void drmModeFreePlane( drmModePlanePtr ptr );
Ville Syrjäläa14c3dd2012-02-02 14:53:41 -0500263extern void drmModeFreePlaneResources(drmModePlaneResPtr ptr);
Jesse Barnes731cd552008-12-17 10:09:49 -0800264
265/**
Eric Engestrom360292c2018-12-19 14:55:45 +0000266 * Retrieves all of the resources associated with a card.
Jesse Barnes731cd552008-12-17 10:09:49 -0800267 */
268extern drmModeResPtr drmModeGetResources(int fd);
269
270/*
271 * FrameBuffer manipulation.
272 */
273
274/**
Eric Engestrom360292c2018-12-19 14:55:45 +0000275 * Retrieve information about framebuffer bufferId
Jesse Barnes731cd552008-12-17 10:09:49 -0800276 */
277extern drmModeFBPtr drmModeGetFB(int fd, uint32_t bufferId);
Daniel Stoned8731e92020-02-11 12:19:16 -0800278extern drmModeFB2Ptr drmModeGetFB2(int fd, uint32_t bufferId);
Jesse Barnes731cd552008-12-17 10:09:49 -0800279
280/**
281 * Creates a new framebuffer with an buffer object as its scanout buffer.
282 */
283extern int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth,
284 uint8_t bpp, uint32_t pitch, uint32_t bo_handle,
285 uint32_t *buf_id);
Jesse Barnesac168bf2011-04-29 08:53:53 -0700286/* ...with a specific pixel format */
287extern int drmModeAddFB2(int fd, uint32_t width, uint32_t height,
Tobias Jakobi09be5412017-10-10 12:12:52 +0200288 uint32_t pixel_format, const uint32_t bo_handles[4],
289 const uint32_t pitches[4], const uint32_t offsets[4],
Jesse Barnesac168bf2011-04-29 08:53:53 -0700290 uint32_t *buf_id, uint32_t flags);
Kristian H. Kristensenabfa6802016-09-08 13:08:59 -0700291
292/* ...with format modifiers */
293int drmModeAddFB2WithModifiers(int fd, uint32_t width, uint32_t height,
Tobias Jakobi09be5412017-10-10 12:12:52 +0200294 uint32_t pixel_format, const uint32_t bo_handles[4],
295 const uint32_t pitches[4], const uint32_t offsets[4],
296 const uint64_t modifier[4], uint32_t *buf_id,
297 uint32_t flags);
Kristian H. Kristensenabfa6802016-09-08 13:08:59 -0700298
Jesse Barnes731cd552008-12-17 10:09:49 -0800299/**
300 * Destroies the given framebuffer.
301 */
302extern int drmModeRmFB(int fd, uint32_t bufferId);
303
Jakob Bornecrantz3e486132009-11-24 18:00:12 +0100304/**
305 * Mark a region of a framebuffer as dirty.
306 */
307extern int drmModeDirtyFB(int fd, uint32_t bufferId,
308 drmModeClipPtr clips, uint32_t num_clips);
309
310
Jesse Barnes731cd552008-12-17 10:09:49 -0800311/*
312 * Crtc functions
313 */
314
315/**
Eric Engestrom360292c2018-12-19 14:55:45 +0000316 * Retrieve information about the ctrt crtcId
Jesse Barnes731cd552008-12-17 10:09:49 -0800317 */
318extern drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtcId);
319
320/**
321 * Set the mode on a crtc crtcId with the given mode modeId.
322 */
323int drmModeSetCrtc(int fd, uint32_t crtcId, uint32_t bufferId,
324 uint32_t x, uint32_t y, uint32_t *connectors, int count,
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100325 drmModeModeInfoPtr mode);
Jesse Barnes731cd552008-12-17 10:09:49 -0800326
327/*
328 * Cursor functions
329 */
330
331/**
332 * Set the cursor on crtc
333 */
334int drmModeSetCursor(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width, uint32_t height);
335
Dave Airlie2e0ab622013-07-02 09:21:06 +0100336int 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 -0800337/**
338 * Move the cursor on crtc
339 */
340int drmModeMoveCursor(int fd, uint32_t crtcId, int x, int y);
341
342/**
343 * Encoder functions
344 */
345drmModeEncoderPtr drmModeGetEncoder(int fd, uint32_t encoder_id);
346
347/*
348 * Connector manipulation
349 */
350
351/**
Chris Wilson5ed5fa12015-03-04 10:07:19 +0000352 * Retrieve all information about the connector connectorId. This will do a
353 * forced probe on the connector to retrieve remote information such as EDIDs
354 * from the display device.
Jesse Barnes731cd552008-12-17 10:09:49 -0800355 */
356extern drmModeConnectorPtr drmModeGetConnector(int fd,
Chris Wilson5ed5fa12015-03-04 10:07:19 +0000357 uint32_t connectorId);
358
359/**
360 * Retrieve current information, i.e the currently active mode and encoder,
361 * about the connector connectorId. This will not do any probing on the
362 * connector or remote device, and only reports what is currently known.
363 * For the complete set of modes and encoders associated with the connector
364 * use drmModeGetConnector() which will do a probe to determine any display
365 * link changes first.
366 */
367extern drmModeConnectorPtr drmModeGetConnectorCurrent(int fd,
368 uint32_t connector_id);
Jesse Barnes731cd552008-12-17 10:09:49 -0800369
370/**
371 * Attaches the given mode to an connector.
372 */
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100373extern int drmModeAttachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
Jesse Barnes731cd552008-12-17 10:09:49 -0800374
375/**
376 * Detaches a mode from the connector
377 * must be unused, by the given mode.
378 */
Jakob Bornecrantzeb78c532009-02-11 16:43:20 +0100379extern int drmModeDetachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
Jesse Barnes731cd552008-12-17 10:09:49 -0800380
381extern drmModePropertyPtr drmModeGetProperty(int fd, uint32_t propertyId);
382extern void drmModeFreeProperty(drmModePropertyPtr ptr);
383
384extern drmModePropertyBlobPtr drmModeGetPropertyBlob(int fd, uint32_t blob_id);
385extern void drmModeFreePropertyBlob(drmModePropertyBlobPtr ptr);
386extern int drmModeConnectorSetProperty(int fd, uint32_t connector_id, uint32_t property_id,
387 uint64_t value);
388extern int drmCheckModesettingSupported(const char *busid);
389
390extern int drmModeCrtcSetGamma(int fd, uint32_t crtc_id, uint32_t size,
391 uint16_t *red, uint16_t *green, uint16_t *blue);
392extern int drmModeCrtcGetGamma(int fd, uint32_t crtc_id, uint32_t size,
393 uint16_t *red, uint16_t *green, uint16_t *blue);
Kristian Høgsbergb80bcff2009-11-12 14:06:45 -0500394extern int drmModePageFlip(int fd, uint32_t crtc_id, uint32_t fb_id,
395 uint32_t flags, void *user_data);
Michel Dänzer7dd28472016-06-29 18:07:25 +0900396extern int drmModePageFlipTarget(int fd, uint32_t crtc_id, uint32_t fb_id,
397 uint32_t flags, void *user_data,
398 uint32_t target_vblank);
Tapani Pällicfee5212011-09-23 14:17:42 +0300399
Jesse Barnesac168bf2011-04-29 08:53:53 -0700400extern drmModePlaneResPtr drmModeGetPlaneResources(int fd);
401extern drmModePlanePtr drmModeGetPlane(int fd, uint32_t plane_id);
402extern int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
403 uint32_t fb_id, uint32_t flags,
Daniel Kurtz828c3e82014-05-01 19:56:43 +0800404 int32_t crtc_x, int32_t crtc_y,
Jesse Barnesac168bf2011-04-29 08:53:53 -0700405 uint32_t crtc_w, uint32_t crtc_h,
406 uint32_t src_x, uint32_t src_y,
407 uint32_t src_w, uint32_t src_h);
408
Paulo Zanoni8c757032012-05-15 18:38:28 -0300409extern drmModeObjectPropertiesPtr drmModeObjectGetProperties(int fd,
410 uint32_t object_id,
411 uint32_t object_type);
412extern void drmModeFreeObjectProperties(drmModeObjectPropertiesPtr ptr);
413extern int drmModeObjectSetProperty(int fd, uint32_t object_id,
414 uint32_t object_type, uint32_t property_id,
415 uint64_t value);
416
Ville Syrjäläed44e0b2015-06-22 17:26:02 +0100417
418typedef struct _drmModeAtomicReq drmModeAtomicReq, *drmModeAtomicReqPtr;
419
420extern drmModeAtomicReqPtr drmModeAtomicAlloc(void);
421extern drmModeAtomicReqPtr drmModeAtomicDuplicate(drmModeAtomicReqPtr req);
422extern int drmModeAtomicMerge(drmModeAtomicReqPtr base,
423 drmModeAtomicReqPtr augment);
424extern void drmModeAtomicFree(drmModeAtomicReqPtr req);
425extern int drmModeAtomicGetCursor(drmModeAtomicReqPtr req);
426extern void drmModeAtomicSetCursor(drmModeAtomicReqPtr req, int cursor);
427extern int drmModeAtomicAddProperty(drmModeAtomicReqPtr req,
428 uint32_t object_id,
429 uint32_t property_id,
430 uint64_t value);
431extern int drmModeAtomicCommit(int fd,
432 drmModeAtomicReqPtr req,
433 uint32_t flags,
434 void *user_data);
435
Daniel Stone32471b22015-06-22 17:26:03 +0100436extern int drmModeCreatePropertyBlob(int fd, const void *data, size_t size,
437 uint32_t *id);
438extern int drmModeDestroyPropertyBlob(int fd, uint32_t id);
439
Keith Packardc4171532017-03-16 18:11:05 -0700440/*
441 * DRM mode lease APIs. These create and manage new drm_masters with
442 * access to a subset of the available DRM resources
443 */
444
445extern int drmModeCreateLease(int fd, const uint32_t *objects, int num_objects, int flags, uint32_t *lessee_id);
446
447typedef struct drmModeLesseeList {
448 uint32_t count;
Simon Ser31dc1482020-11-26 17:20:04 +0100449 uint32_t lessees[];
Keith Packardc4171532017-03-16 18:11:05 -0700450} drmModeLesseeListRes, *drmModeLesseeListPtr;
451
452extern drmModeLesseeListPtr drmModeListLessees(int fd);
453
454typedef struct drmModeObjectList {
455 uint32_t count;
Simon Ser31dc1482020-11-26 17:20:04 +0100456 uint32_t objects[];
Keith Packardc4171532017-03-16 18:11:05 -0700457} drmModeObjectListRes, *drmModeObjectListPtr;
458
459extern drmModeObjectListPtr drmModeGetLease(int fd);
460
461extern int drmModeRevokeLease(int fd, uint32_t lessee_id);
Daniel Stone32471b22015-06-22 17:26:03 +0100462
Tapani Pälli1c205742015-08-07 10:37:56 +0300463#if defined(__cplusplus)
Tapani Pällicfee5212011-09-23 14:17:42 +0300464}
465#endif
David Herrmanfd39e612012-03-09 13:40:14 -0500466
467#endif