summaryrefslogtreecommitdiff
path: root/include/uvcgadget/libcamera-source.h
blob: 8e08dcdf46de305edc230795bbbd390c49e7e5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * libcamera video source
 *
 * Copyright (C) 2022 Ideas on Board Oy.
 * Copyright (C) 2022 Kieran Bingham
 *
 * Contact: Kieran Bingham <kieran.bingham@ideasonboard.com>
 */
#ifndef __LIBCAMERA_SOURCE_H__
#define __LIBCAMERA_SOURCE_H__

#include "video-source.h"

struct events;
struct video_source;

#ifdef __cplusplus
extern "C" {
#endif

struct video_source *libcamera_source_create(const char *devname);
void libcamera_source_init(struct video_source *src, struct events *events);

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* __LIBCAMERA_SOURCE_H__ */