OSDN Git Service

xf86atomic: require CAS support in libatomic_ops
[android-x86/external-libdrm.git] / xf86drmMode.h
1 /*
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
36 #ifndef _XF86DRMMODE_H_
37 #define _XF86DRMMODE_H_
38
39 #if defined(__cplusplus)
40 extern "C" {
41 #endif
42
43 #include <drm.h>
44 #include <stddef.h>
45 #include <stdint.h>
46
47 /*
48  * This is the interface for modesetting for drm.
49  *
50  * In order to use this interface you must include either <stdint.h> or another
51  * header defining uint32_t, int32_t and uint16_t.
52  *
53  * It aims to provide a randr1.2 compatible interface for modesettings in the
54  * kernel, the interface is also meant to be used by libraries like EGL.
55  *
56  * More information can be found in randrproto.txt which can be found here:
57  * http://gitweb.freedesktop.org/?p=xorg/proto/randrproto.git
58  *
59  * There are some major differences to be noted. Unlike the randr1.2 proto you
60  * need to create the memory object of the framebuffer yourself with the ttm
61  * buffer object interface. This object needs to be pinned.
62  */
63
64 /*
65  * If we pickup an old version of drm.h which doesn't include drm_mode.h
66  * we should redefine defines. This is so that builds doesn't breaks with
67  * new libdrm on old kernels.
68  */
69 #ifndef _DRM_MODE_H
70
71 #define DRM_DISPLAY_INFO_LEN    32
72 #define DRM_CONNECTOR_NAME_LEN  32
73 #define DRM_DISPLAY_MODE_LEN    32
74 #define DRM_PROP_NAME_LEN       32
75
76 #define DRM_MODE_TYPE_BUILTIN   (1<<0)
77 #define DRM_MODE_TYPE_CLOCK_C   ((1<<1) | DRM_MODE_TYPE_BUILTIN)
78 #define DRM_MODE_TYPE_CRTC_C    ((1<<2) | DRM_MODE_TYPE_BUILTIN)
79 #define DRM_MODE_TYPE_PREFERRED (1<<3)
80 #define DRM_MODE_TYPE_DEFAULT   (1<<4)
81 #define DRM_MODE_TYPE_USERDEF   (1<<5)
82 #define DRM_MODE_TYPE_DRIVER    (1<<6)
83
84 /* Video mode flags */
85 /* bit compatible with the xorg definitions. */
86 #define DRM_MODE_FLAG_PHSYNC                    (1<<0)
87 #define DRM_MODE_FLAG_NHSYNC                    (1<<1)
88 #define DRM_MODE_FLAG_PVSYNC                    (1<<2)
89 #define DRM_MODE_FLAG_NVSYNC                    (1<<3)
90 #define DRM_MODE_FLAG_INTERLACE                 (1<<4)
91 #define DRM_MODE_FLAG_DBLSCAN                   (1<<5)
92 #define DRM_MODE_FLAG_CSYNC                     (1<<6)
93 #define DRM_MODE_FLAG_PCSYNC                    (1<<7)
94 #define DRM_MODE_FLAG_NCSYNC                    (1<<8)
95 #define DRM_MODE_FLAG_HSKEW                     (1<<9) /* hskew provided */
96 #define DRM_MODE_FLAG_BCAST                     (1<<10)
97 #define DRM_MODE_FLAG_PIXMUX                    (1<<11)
98 #define DRM_MODE_FLAG_DBLCLK                    (1<<12)
99 #define DRM_MODE_FLAG_CLKDIV2                   (1<<13)
100 #define DRM_MODE_FLAG_3D_MASK                   (0x1f<<14)
101 #define  DRM_MODE_FLAG_3D_NONE                  (0<<14)
102 #define  DRM_MODE_FLAG_3D_FRAME_PACKING         (1<<14)
103 #define  DRM_MODE_FLAG_3D_FIELD_ALTERNATIVE     (2<<14)
104 #define  DRM_MODE_FLAG_3D_LINE_ALTERNATIVE      (3<<14)
105 #define  DRM_MODE_FLAG_3D_SIDE_BY_SIDE_FULL     (4<<14)
106 #define  DRM_MODE_FLAG_3D_L_DEPTH               (5<<14)
107 #define  DRM_MODE_FLAG_3D_L_DEPTH_GFX_GFX_DEPTH (6<<14)
108 #define  DRM_MODE_FLAG_3D_TOP_AND_BOTTOM        (7<<14)
109 #define  DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF     (8<<14)
110
111 /* DPMS flags */
112 /* bit compatible with the xorg definitions. */
113 #define DRM_MODE_DPMS_ON        0
114 #define DRM_MODE_DPMS_STANDBY   1
115 #define DRM_MODE_DPMS_SUSPEND   2
116 #define DRM_MODE_DPMS_OFF       3
117
118 /* Scaling mode options */
119 #define DRM_MODE_SCALE_NON_GPU          0
120 #define DRM_MODE_SCALE_FULLSCREEN       1
121 #define DRM_MODE_SCALE_NO_SCALE         2
122 #define DRM_MODE_SCALE_ASPECT           3
123
124 /* Dithering mode options */
125 #define DRM_MODE_DITHERING_OFF  0
126 #define DRM_MODE_DITHERING_ON   1
127
128 #define DRM_MODE_ENCODER_NONE    0
129 #define DRM_MODE_ENCODER_DAC     1
130 #define DRM_MODE_ENCODER_TMDS    2
131 #define DRM_MODE_ENCODER_LVDS    3
132 #define DRM_MODE_ENCODER_TVDAC   4
133 #define DRM_MODE_ENCODER_VIRTUAL 5
134 #define DRM_MODE_ENCODER_DSI     6
135 #define DRM_MODE_ENCODER_DPMST   7
136 #define DRM_MODE_ENCODER_DPI     8
137
138 #define DRM_MODE_SUBCONNECTOR_Automatic 0
139 #define DRM_MODE_SUBCONNECTOR_Unknown   0
140 #define DRM_MODE_SUBCONNECTOR_DVID      3
141 #define DRM_MODE_SUBCONNECTOR_DVIA      4
142 #define DRM_MODE_SUBCONNECTOR_Composite 5
143 #define DRM_MODE_SUBCONNECTOR_SVIDEO    6
144 #define DRM_MODE_SUBCONNECTOR_Component 8
145 #define DRM_MODE_SUBCONNECTOR_SCART     9
146
147 #define DRM_MODE_CONNECTOR_Unknown      0
148 #define DRM_MODE_CONNECTOR_VGA          1
149 #define DRM_MODE_CONNECTOR_DVII         2
150 #define DRM_MODE_CONNECTOR_DVID         3
151 #define DRM_MODE_CONNECTOR_DVIA         4
152 #define DRM_MODE_CONNECTOR_Composite    5
153 #define DRM_MODE_CONNECTOR_SVIDEO       6
154 #define DRM_MODE_CONNECTOR_LVDS         7
155 #define DRM_MODE_CONNECTOR_Component    8
156 #define DRM_MODE_CONNECTOR_9PinDIN      9
157 #define DRM_MODE_CONNECTOR_DisplayPort  10
158 #define DRM_MODE_CONNECTOR_HDMIA        11
159 #define DRM_MODE_CONNECTOR_HDMIB        12
160 #define DRM_MODE_CONNECTOR_TV           13
161 #define DRM_MODE_CONNECTOR_eDP          14
162 #define DRM_MODE_CONNECTOR_VIRTUAL      15
163 #define DRM_MODE_CONNECTOR_DSI          16
164 #define DRM_MODE_CONNECTOR_DPI          17
165
166 #define DRM_MODE_PROP_PENDING   (1<<0)
167 #define DRM_MODE_PROP_RANGE     (1<<1)
168 #define DRM_MODE_PROP_IMMUTABLE (1<<2)
169 #define DRM_MODE_PROP_ENUM      (1<<3) /* enumerated type with text strings */
170 #define DRM_MODE_PROP_BLOB      (1<<4)
171
172 #define DRM_MODE_CURSOR_BO      (1<<0)
173 #define DRM_MODE_CURSOR_MOVE    (1<<1)
174
175 #endif /* _DRM_MODE_H */
176
177
178 /*
179  * Feature defines
180  *
181  * Just because these are defined doesn't mean that the kernel
182  * can do that feature, its just for new code vs old libdrm.
183  */
184 #define DRM_MODE_FEATURE_KMS            1
185 #define DRM_MODE_FEATURE_DIRTYFB        1
186
187
188 typedef struct _drmModeRes {
189
190         int count_fbs;
191         uint32_t *fbs;
192
193         int count_crtcs;
194         uint32_t *crtcs;
195
196         int count_connectors;
197         uint32_t *connectors;
198
199         int count_encoders;
200         uint32_t *encoders;
201
202         uint32_t min_width, max_width;
203         uint32_t min_height, max_height;
204 } drmModeRes, *drmModeResPtr;
205
206 typedef struct _drmModeModeInfo {
207         uint32_t clock;
208         uint16_t hdisplay, hsync_start, hsync_end, htotal, hskew;
209         uint16_t vdisplay, vsync_start, vsync_end, vtotal, vscan;
210
211         uint32_t vrefresh;
212
213         uint32_t flags;
214         uint32_t type;
215         char name[DRM_DISPLAY_MODE_LEN];
216 } drmModeModeInfo, *drmModeModeInfoPtr;
217
218 typedef struct _drmModeFB {
219         uint32_t fb_id;
220         uint32_t width, height;
221         uint32_t pitch;
222         uint32_t bpp;
223         uint32_t depth;
224         /* driver specific handle */
225         uint32_t handle;
226 } drmModeFB, *drmModeFBPtr;
227
228 typedef struct drm_clip_rect drmModeClip, *drmModeClipPtr;
229
230 typedef struct _drmModePropertyBlob {
231         uint32_t id;
232         uint32_t length;
233         void *data;
234 } drmModePropertyBlobRes, *drmModePropertyBlobPtr;
235
236 typedef struct _drmModeProperty {
237         uint32_t prop_id;
238         uint32_t flags;
239         char name[DRM_PROP_NAME_LEN];
240         int count_values;
241         uint64_t *values; /* store the blob lengths */
242         int count_enums;
243         struct drm_mode_property_enum *enums;
244         int count_blobs;
245         uint32_t *blob_ids; /* store the blob IDs */
246 } drmModePropertyRes, *drmModePropertyPtr;
247
248 static __inline int drm_property_type_is(drmModePropertyPtr property,
249                 uint32_t type)
250 {
251         /* instanceof for props.. handles extended type vs original types: */
252         if (property->flags & DRM_MODE_PROP_EXTENDED_TYPE)
253                 return (property->flags & DRM_MODE_PROP_EXTENDED_TYPE) == type;
254         return property->flags & type;
255 }
256
257 typedef struct _drmModeCrtc {
258         uint32_t crtc_id;
259         uint32_t buffer_id; /**< FB id to connect to 0 = disconnect */
260
261         uint32_t x, y; /**< Position on the framebuffer */
262         uint32_t width, height;
263         int mode_valid;
264         drmModeModeInfo mode;
265
266         int gamma_size; /**< Number of gamma stops */
267
268 } drmModeCrtc, *drmModeCrtcPtr;
269
270 typedef struct _drmModeEncoder {
271         uint32_t encoder_id;
272         uint32_t encoder_type;
273         uint32_t crtc_id;
274         uint32_t possible_crtcs;
275         uint32_t possible_clones;
276 } drmModeEncoder, *drmModeEncoderPtr;
277
278 typedef enum {
279         DRM_MODE_CONNECTED         = 1,
280         DRM_MODE_DISCONNECTED      = 2,
281         DRM_MODE_UNKNOWNCONNECTION = 3
282 } drmModeConnection;
283
284 typedef enum {
285         DRM_MODE_SUBPIXEL_UNKNOWN        = 1,
286         DRM_MODE_SUBPIXEL_HORIZONTAL_RGB = 2,
287         DRM_MODE_SUBPIXEL_HORIZONTAL_BGR = 3,
288         DRM_MODE_SUBPIXEL_VERTICAL_RGB   = 4,
289         DRM_MODE_SUBPIXEL_VERTICAL_BGR   = 5,
290         DRM_MODE_SUBPIXEL_NONE           = 6
291 } drmModeSubPixel;
292
293 typedef struct _drmModeConnector {
294         uint32_t connector_id;
295         uint32_t encoder_id; /**< Encoder currently connected to */
296         uint32_t connector_type;
297         uint32_t connector_type_id;
298         drmModeConnection connection;
299         uint32_t mmWidth, mmHeight; /**< HxW in millimeters */
300         drmModeSubPixel subpixel;
301
302         int count_modes;
303         drmModeModeInfoPtr modes;
304
305         int count_props;
306         uint32_t *props; /**< List of property ids */
307         uint64_t *prop_values; /**< List of property values */
308
309         int count_encoders;
310         uint32_t *encoders; /**< List of encoder ids */
311 } drmModeConnector, *drmModeConnectorPtr;
312
313 #define DRM_PLANE_TYPE_OVERLAY 0
314 #define DRM_PLANE_TYPE_PRIMARY 1
315 #define DRM_PLANE_TYPE_CURSOR  2
316
317 typedef struct _drmModeObjectProperties {
318         uint32_t count_props;
319         uint32_t *props;
320         uint64_t *prop_values;
321 } drmModeObjectProperties, *drmModeObjectPropertiesPtr;
322
323 typedef struct _drmModePlane {
324         uint32_t count_formats;
325         uint32_t *formats;
326         uint32_t plane_id;
327
328         uint32_t crtc_id;
329         uint32_t fb_id;
330
331         uint32_t crtc_x, crtc_y;
332         uint32_t x, y;
333
334         uint32_t possible_crtcs;
335         uint32_t gamma_size;
336 } drmModePlane, *drmModePlanePtr;
337
338 typedef struct _drmModePlaneRes {
339         uint32_t count_planes;
340         uint32_t *planes;
341 } drmModePlaneRes, *drmModePlaneResPtr;
342
343 extern void drmModeFreeModeInfo( drmModeModeInfoPtr ptr );
344 extern void drmModeFreeResources( drmModeResPtr ptr );
345 extern void drmModeFreeFB( drmModeFBPtr ptr );
346 extern void drmModeFreeCrtc( drmModeCrtcPtr ptr );
347 extern void drmModeFreeConnector( drmModeConnectorPtr ptr );
348 extern void drmModeFreeEncoder( drmModeEncoderPtr ptr );
349 extern void drmModeFreePlane( drmModePlanePtr ptr );
350 extern void drmModeFreePlaneResources(drmModePlaneResPtr ptr);
351
352 /**
353  * Retrieves all of the resources associated with a card.
354  */
355 extern drmModeResPtr drmModeGetResources(int fd);
356
357 /*
358  * FrameBuffer manipulation.
359  */
360
361 /**
362  * Retrieve information about framebuffer bufferId
363  */
364 extern drmModeFBPtr drmModeGetFB(int fd, uint32_t bufferId);
365
366 /**
367  * Creates a new framebuffer with an buffer object as its scanout buffer.
368  */
369 extern int drmModeAddFB(int fd, uint32_t width, uint32_t height, uint8_t depth,
370                         uint8_t bpp, uint32_t pitch, uint32_t bo_handle,
371                         uint32_t *buf_id);
372 /* ...with a specific pixel format */
373 extern int drmModeAddFB2(int fd, uint32_t width, uint32_t height,
374                          uint32_t pixel_format, const uint32_t bo_handles[4],
375                          const uint32_t pitches[4], const uint32_t offsets[4],
376                          uint32_t *buf_id, uint32_t flags);
377
378 /* ...with format modifiers */
379 int drmModeAddFB2WithModifiers(int fd, uint32_t width, uint32_t height,
380                                uint32_t pixel_format, const uint32_t bo_handles[4],
381                                const uint32_t pitches[4], const uint32_t offsets[4],
382                                const uint64_t modifier[4], uint32_t *buf_id,
383                                    uint32_t flags);
384
385 /**
386  * Destroies the given framebuffer.
387  */
388 extern int drmModeRmFB(int fd, uint32_t bufferId);
389
390 /**
391  * Mark a region of a framebuffer as dirty.
392  */
393 extern int drmModeDirtyFB(int fd, uint32_t bufferId,
394                           drmModeClipPtr clips, uint32_t num_clips);
395
396
397 /*
398  * Crtc functions
399  */
400
401 /**
402  * Retrieve information about the ctrt crtcId
403  */
404 extern drmModeCrtcPtr drmModeGetCrtc(int fd, uint32_t crtcId);
405
406 /**
407  * Set the mode on a crtc crtcId with the given mode modeId.
408  */
409 int drmModeSetCrtc(int fd, uint32_t crtcId, uint32_t bufferId,
410                    uint32_t x, uint32_t y, uint32_t *connectors, int count,
411                    drmModeModeInfoPtr mode);
412
413 /*
414  * Cursor functions
415  */
416
417 /**
418  * Set the cursor on crtc
419  */
420 int drmModeSetCursor(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width, uint32_t height);
421
422 int drmModeSetCursor2(int fd, uint32_t crtcId, uint32_t bo_handle, uint32_t width, uint32_t height, int32_t hot_x, int32_t hot_y);
423 /**
424  * Move the cursor on crtc
425  */
426 int drmModeMoveCursor(int fd, uint32_t crtcId, int x, int y);
427
428 /**
429  * Encoder functions
430  */
431 drmModeEncoderPtr drmModeGetEncoder(int fd, uint32_t encoder_id);
432
433 /*
434  * Connector manipulation
435  */
436
437 /**
438  * Retrieve all information about the connector connectorId. This will do a
439  * forced probe on the connector to retrieve remote information such as EDIDs
440  * from the display device.
441  */
442 extern drmModeConnectorPtr drmModeGetConnector(int fd,
443                                                uint32_t connectorId);
444
445 /**
446  * Retrieve current information, i.e the currently active mode and encoder,
447  * about the connector connectorId. This will not do any probing on the
448  * connector or remote device, and only reports what is currently known.
449  * For the complete set of modes and encoders associated with the connector
450  * use drmModeGetConnector() which will do a probe to determine any display
451  * link changes first.
452  */
453 extern drmModeConnectorPtr drmModeGetConnectorCurrent(int fd,
454                                                       uint32_t connector_id);
455
456 /**
457  * Attaches the given mode to an connector.
458  */
459 extern int drmModeAttachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
460
461 /**
462  * Detaches a mode from the connector
463  * must be unused, by the given mode.
464  */
465 extern int drmModeDetachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
466
467 extern drmModePropertyPtr drmModeGetProperty(int fd, uint32_t propertyId);
468 extern void drmModeFreeProperty(drmModePropertyPtr ptr);
469
470 extern drmModePropertyBlobPtr drmModeGetPropertyBlob(int fd, uint32_t blob_id);
471 extern void drmModeFreePropertyBlob(drmModePropertyBlobPtr ptr);
472 extern int drmModeConnectorSetProperty(int fd, uint32_t connector_id, uint32_t property_id,
473                                     uint64_t value);
474 extern int drmCheckModesettingSupported(const char *busid);
475
476 extern int drmModeCrtcSetGamma(int fd, uint32_t crtc_id, uint32_t size,
477                                uint16_t *red, uint16_t *green, uint16_t *blue);
478 extern int drmModeCrtcGetGamma(int fd, uint32_t crtc_id, uint32_t size,
479                                uint16_t *red, uint16_t *green, uint16_t *blue);
480 extern int drmModePageFlip(int fd, uint32_t crtc_id, uint32_t fb_id,
481                            uint32_t flags, void *user_data);
482 extern int drmModePageFlipTarget(int fd, uint32_t crtc_id, uint32_t fb_id,
483                                  uint32_t flags, void *user_data,
484                                  uint32_t target_vblank);
485
486 extern drmModePlaneResPtr drmModeGetPlaneResources(int fd);
487 extern drmModePlanePtr drmModeGetPlane(int fd, uint32_t plane_id);
488 extern int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
489                            uint32_t fb_id, uint32_t flags,
490                            int32_t crtc_x, int32_t crtc_y,
491                            uint32_t crtc_w, uint32_t crtc_h,
492                            uint32_t src_x, uint32_t src_y,
493                            uint32_t src_w, uint32_t src_h);
494
495 extern drmModeObjectPropertiesPtr drmModeObjectGetProperties(int fd,
496                                                         uint32_t object_id,
497                                                         uint32_t object_type);
498 extern void drmModeFreeObjectProperties(drmModeObjectPropertiesPtr ptr);
499 extern int drmModeObjectSetProperty(int fd, uint32_t object_id,
500                                     uint32_t object_type, uint32_t property_id,
501                                     uint64_t value);
502
503
504 typedef struct _drmModeAtomicReq drmModeAtomicReq, *drmModeAtomicReqPtr;
505
506 extern drmModeAtomicReqPtr drmModeAtomicAlloc(void);
507 extern drmModeAtomicReqPtr drmModeAtomicDuplicate(drmModeAtomicReqPtr req);
508 extern int drmModeAtomicMerge(drmModeAtomicReqPtr base,
509                               drmModeAtomicReqPtr augment);
510 extern void drmModeAtomicFree(drmModeAtomicReqPtr req);
511 extern int drmModeAtomicGetCursor(drmModeAtomicReqPtr req);
512 extern void drmModeAtomicSetCursor(drmModeAtomicReqPtr req, int cursor);
513 extern int drmModeAtomicAddProperty(drmModeAtomicReqPtr req,
514                                     uint32_t object_id,
515                                     uint32_t property_id,
516                                     uint64_t value);
517 extern int drmModeAtomicCommit(int fd,
518                                drmModeAtomicReqPtr req,
519                                uint32_t flags,
520                                void *user_data);
521
522 extern int drmModeCreatePropertyBlob(int fd, const void *data, size_t size,
523                                      uint32_t *id);
524 extern int drmModeDestroyPropertyBlob(int fd, uint32_t id);
525
526 /*
527  * DRM mode lease APIs. These create and manage new drm_masters with
528  * access to a subset of the available DRM resources
529  */
530
531 extern int drmModeCreateLease(int fd, const uint32_t *objects, int num_objects, int flags, uint32_t *lessee_id);
532
533 typedef struct drmModeLesseeList {
534         uint32_t count;
535         uint32_t lessees[0];
536 } drmModeLesseeListRes, *drmModeLesseeListPtr;
537
538 extern drmModeLesseeListPtr drmModeListLessees(int fd);
539
540 typedef struct drmModeObjectList {
541         uint32_t count;
542         uint32_t objects[0];
543 } drmModeObjectListRes, *drmModeObjectListPtr;
544
545 extern drmModeObjectListPtr drmModeGetLease(int fd);
546
547 extern int drmModeRevokeLease(int fd, uint32_t lessee_id);
548
549 #if defined(__cplusplus)
550 }
551 #endif
552
553 #endif