diff options
author | Christian Pointner <equinox@helsinki.at> | 2011-04-16 13:44:39 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2011-04-16 13:44:39 (GMT) |
commit | 1203b5f7c95b5a90d4d8c04121e4ea65f713e946 (patch) | |
tree | 0b48e980256df2b27cad3a68bc6f555816cba569 /src/writer.h | |
parent | 5e183ae4ee1871b16689ef7d374474a71823ffb8 (diff) |
file modes can now be configured
Diffstat (limited to 'src/writer.h')
-rw-r--r-- | src/writer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/writer.h b/src/writer.h index 9e21dd3..1e1b236 100644 --- a/src/writer.h +++ b/src/writer.h @@ -31,10 +31,12 @@ #include <gst/gst.h> #include <glib.h> #include <time.h> +#include <sys/types.h> struct file_struct { int fd_; char* path_; + mode_t mode_; }; typedef struct file_struct file_t; @@ -46,6 +48,7 @@ struct writer_struct { GThread* thread_; const char* name_format_; const char* output_dir_; + mode_t mode_; GstClockTime interval_; GstClockTime offset_; file_t current_; @@ -54,7 +57,7 @@ struct writer_struct { }; typedef struct writer_struct writer_t; -int writer_init(writer_t* writer, GMainLoop *loop, const char* name_format, const char* output_dir, int interval, int offset); +int writer_init(writer_t* writer, GMainLoop *loop, const char* name_format, mode_t mode, const char* output_dir, int interval, int offset); int writer_start(writer_t* writer); void writer_stop(writer_t* writer); |