Fork me on GitHub
 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;
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);
68 int janus_recorder_free(janus_recorder *recorder);
69 
70 #endif