blob: 71acb441b0d4dded70009082d0477efd26e781ec (
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
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2021, Google Inc.
*
* camera3_hal.cpp - cros-specific components of Android Camera HALv3 module
*/
#include <cros-camera/cros_camera_hal.h>
#include "../camera_hal_manager.h"
#include "../cros_mojo_token.h"
static void set_up(cros::CameraMojoChannelManagerToken *token)
{
gCrosMojoToken = token;
}
static void tear_down()
{
delete CameraHalManager::instance();
}
cros::cros_camera_hal_t CROS_CAMERA_EXPORT CROS_CAMERA_HAL_INFO_SYM = {
.set_up = set_up,
.tear_down = tear_down
};
|