@@ -539,24 +539,16 @@ err_allocs:
return r;
}
+/* deprecated */
int drmModeAttachMode(int fd, uint32_t connector_id, drmModeModeInfoPtr mode_info)
{
- struct drm_mode_mode_cmd res;
-
- memcpy(&res.mode, mode_info, sizeof(struct drm_mode_modeinfo));
- res.connector_id = connector_id;
-
- return DRM_IOCTL(fd, DRM_IOCTL_MODE_ATTACHMODE, &res);
+ return -EINVAL;
}
+/* deprecated */
int drmModeDetachMode(int fd, uint32_t connector_id, drmModeModeInfoPtr mode_info)
{
- struct drm_mode_mode_cmd res;
-
- memcpy(&res.mode, mode_info, sizeof(struct drm_mode_modeinfo));
- res.connector_id = connector_id;
-
- return DRM_IOCTL(fd, DRM_IOCTL_MODE_DETACHMODE, &res);
+ return -EINVAL;
}
@@ -398,15 +398,9 @@ drmModeEncoderPtr drmModeGetEncoder(int fd, uint32_t encoder_id);
extern drmModeConnectorPtr drmModeGetConnector(int fd,
uint32_t connectorId);
-/**
- * Attaches the given mode to an connector.
- */
+/* deprecated */
extern int drmModeAttachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
-
-/**
- * Detaches a mode from the connector
- * must be unused, by the given mode.
- */
+/* deprecated */
extern int drmModeDetachMode(int fd, uint32_t connectorId, drmModeModeInfoPtr mode_info);
extern drmModePropertyPtr drmModeGetProperty(int fd, uint32_t propertyId);