1 /* Copyright 2019 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_CAPTURE_RCLIENT_H_ 7 #define CRAS_CAPTURE_RCLIENT_H_ 8 9 struct cras_rclient; 10 11 /* Creates a capture rclient structure. 12 * Args: 13 * fd - The file descriptor used for communication with the client. 14 * id - Unique identifier for this client. 15 * Returns: 16 * A pointer to the newly created rclient on success, NULL on failure. 17 */ 18 struct cras_rclient *cras_capture_rclient_create(int fd, size_t id); 19 20 #endif /* CRAS_CAPTURE_RCLIENT_H_ */ 21