C++程序  |  21行  |  635 B

/* Copyright 2016 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef CRAS_DEVICE_MONITOR_H_
#define CRAS_DEVICE_MONITOR_H_

#include "cras_iodev.h"

/* Asks main thread to reset a device */
int cras_device_monitor_reset_device(struct cras_iodev *iodev);

/* Asks main thread to set mute/unmute state on a device. */
int cras_device_monitor_set_device_mute_state(struct cras_iodev *iodev);

/* Initializes device monitor and sets main thread callback. */
int cras_device_monitor_init();

#endif /* CRAS_DEVICE_MONITOR_H_ */