summaryrefslogtreecommitdiff
path: root/cras/src/server/cras_unified_rclient.h
blob: 19973f884e6d2ce6b8633f8547ec882d0f21da10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright 2020 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_UNIFIED_RCLIENT_H_
#define CRAS_UNIFIED_RCLIENT_H_

struct cras_rclient;

/* Creates a unified rclient structure. This client supports only playback
 * and capture functions but not control features.
 * Args:
 *    fd - The file descriptor used for communication with the client.
 *    id - Unique identifier for this client.
 * Returns:
 *    A pointer to the newly created rclient on success, NULL on failure.
 */
struct cras_rclient *cras_unified_rclient_create(int fd, size_t id);

#endif /* CRAS_UNIFIED_RCLIENT_H_ */