1 /* Copyright 2020 The Chromium OS Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 */ 5 6 #ifndef CRAS_UNIFIED_RCLIENT_H_ 7 #define CRAS_UNIFIED_RCLIENT_H_ 8 9 struct cras_rclient; 10 11 /* Creates a unified rclient structure. This client supports only playback 12 * and capture functions but not control features. 13 * Args: 14 * fd - The file descriptor used for communication with the client. 15 * id - Unique identifier for this client. 16 * Returns: 17 * A pointer to the newly created rclient on success, NULL on failure. 18 */ 19 struct cras_rclient *cras_unified_rclient_create(int fd, size_t id); 20 21 #endif /* CRAS_UNIFIED_RCLIENT_H_ */ 22