mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-18 08:56:42 -05:00
More documentation. Added mode argument to i/o_stdio_open.
This commit is contained in:
parent
53fc0f6332
commit
de4cfc3e4b
12 changed files with 1525 additions and 784 deletions
11
src/output.c
11
src/output.c
|
|
@ -187,10 +187,17 @@ int snd_output_stdio_attach(snd_output_t **outputp, FILE *fp, int close)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int snd_output_stdio_open(snd_output_t **outputp, const char *file)
|
||||
/**
|
||||
* \brief Open a new output to a file
|
||||
* \param outputp Pointer to returned output handle
|
||||
* \param file File name
|
||||
* \param mode fopen(3) open mode
|
||||
* \return 0 on success otherwise a negative error code
|
||||
*/
|
||||
int snd_output_stdio_open(snd_output_t **outputp, const char *file, const char *mode)
|
||||
{
|
||||
int err;
|
||||
FILE *fp = fopen(file, "w");
|
||||
FILE *fp = fopen(file, mode);
|
||||
if (!fp) {
|
||||
//SYSERR("fopen");
|
||||
return -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue