uterm_video: add udev device parameter to video_new()

When triggered by seat monitor we need to be able to create uterm_video
objects on a concrete device so enable passing it in.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-05-03 19:24:39 +02:00
parent 60b4fb5100
commit 335182556c
3 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ struct display_ops {
};
struct video_ops {
int (*init) (struct uterm_video *video);
int (*init) (struct uterm_video *video, struct udev_device *dev);
void (*destroy) (struct uterm_video *video);
void (*segfault) (struct uterm_video *video);
int (*use) (struct uterm_video *video);

View File

@ -454,7 +454,7 @@ int uterm_video_new(struct uterm_video **out,
if (ret)
goto err_umon;
ret = VIDEO_CALL(video->ops->init, 0, video);
ret = VIDEO_CALL(video->ops->init, 0, video, NULL);
if (ret)
goto err_umon_add;

View File

@ -659,7 +659,7 @@ err_close:
return ret;
}
static int video_init(struct uterm_video *video)
static int video_init(struct uterm_video *video, struct udev_device *dev_ign)
{
struct udev_enumerate *e;
struct udev_list_entry *name;