Janus
Home
Demos
Documentation
Cite us!
Discuss Janus
Meetecho
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
record.h
Go to the documentation of this file.
1
19
#ifndef _JANUS_RECORD_H
20
#define _JANUS_RECORD_H
21
22
#include <inttypes.h>
23
#include <string.h>
24
#include <stdio.h>
25
#include <stdlib.h>
26
27
#include "
mutex.h
"
28
29
31
typedef
struct
janus_recorder
{
33
char
*
dir
;
35
char
*
filename
;
37
FILE *
file
;
39
int
video
:1;
41
int
writable
:1;
43
janus_mutex
mutex
;
44
}
janus_recorder
;
45
46
54
janus_recorder
*
janus_recorder_create
(
const
char
*dir,
int
video,
const
char
*filename);
60
int
janus_recorder_save_frame
(
janus_recorder
*recorder,
char
*buffer,
int
length);
64
int
janus_recorder_close
(
janus_recorder
*recorder);
68
int
janus_recorder_free
(
janus_recorder
*recorder);
69
70
#endif