linux/drivers/media/v4l2-core/v4l2-event.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * v4l2-event.c
 *
 * V4L2 events.
 *
 * Copyright (C) 2009--2010 Nokia Corporation.
 *
 * Contact: Sakari Ailus <[email protected]>
 */

#include <media/v4l2-dev.h>
#include <media/v4l2-fh.h>
#include <media/v4l2-event.h>

#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/export.h>

static unsigned int sev_pos(const struct v4l2_subscribed_event *sev, unsigned int idx)
{}

static int __v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event)
{}

int v4l2_event_dequeue(struct v4l2_fh *fh, struct v4l2_event *event,
		       int nonblocking)
{}
EXPORT_SYMBOL_GPL();

/* Caller must hold fh->vdev->fh_lock! */
static struct v4l2_subscribed_event *v4l2_event_subscribed(
		struct v4l2_fh *fh, u32 type, u32 id)
{}

static void __v4l2_event_queue_fh(struct v4l2_fh *fh,
				  const struct v4l2_event *ev, u64 ts)
{}

void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev)
{}
EXPORT_SYMBOL_GPL();

void v4l2_event_queue_fh(struct v4l2_fh *fh, const struct v4l2_event *ev)
{}
EXPORT_SYMBOL_GPL();

int v4l2_event_pending(struct v4l2_fh *fh)
{}
EXPORT_SYMBOL_GPL();

void v4l2_event_wake_all(struct video_device *vdev)
{}
EXPORT_SYMBOL_GPL();

static void __v4l2_event_unsubscribe(struct v4l2_subscribed_event *sev)
{}

int v4l2_event_subscribe(struct v4l2_fh *fh,
			 const struct v4l2_event_subscription *sub, unsigned int elems,
			 const struct v4l2_subscribed_event_ops *ops)
{}
EXPORT_SYMBOL_GPL();

void v4l2_event_unsubscribe_all(struct v4l2_fh *fh)
{}
EXPORT_SYMBOL_GPL();

int v4l2_event_unsubscribe(struct v4l2_fh *fh,
			   const struct v4l2_event_subscription *sub)
{}
EXPORT_SYMBOL_GPL();

int v4l2_event_subdev_unsubscribe(struct v4l2_subdev *sd, struct v4l2_fh *fh,
				  struct v4l2_event_subscription *sub)
{}
EXPORT_SYMBOL_GPL();

static void v4l2_event_src_replace(struct v4l2_event *old,
				const struct v4l2_event *new)
{}

static void v4l2_event_src_merge(const struct v4l2_event *old,
				struct v4l2_event *new)
{}

static const struct v4l2_subscribed_event_ops v4l2_event_src_ch_ops =;

int v4l2_src_change_event_subscribe(struct v4l2_fh *fh,
				const struct v4l2_event_subscription *sub)
{}
EXPORT_SYMBOL_GPL();

int v4l2_src_change_event_subdev_subscribe(struct v4l2_subdev *sd,
		struct v4l2_fh *fh, struct v4l2_event_subscription *sub)
{}
EXPORT_SYMBOL_GPL();