summaryrefslogtreecommitdiff
path: root/src/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h55
1 files changed, 25 insertions, 30 deletions
diff --git a/src/options.h b/src/options.h
index 6009246..f639ad4 100644
--- a/src/options.h
+++ b/src/options.h
@@ -36,50 +36,45 @@
#ifndef SYDRA_options_h_INCLUDED
#define SYDRA_options_h_INCLUDED
-#include <sys/types.h>
-#include "string_list.h"
#include "datatypes.h"
struct options_struct {
- char* progname_;
- int daemonize_;
- char* username_;
- char* groupname_;
- char* chroot_dir_;
- char* pid_file_;
- string_list_t log_targets_;
- int debug_;
+ gchar* progname_;
+ gboolean daemonize_;
+ gchar* username_;
+ gchar* groupname_;
+ gchar* chroot_dir_;
+ gchar* pid_file_;
+ gchar** log_targets_;
+ gboolean debug_;
- char* appname_;
+ gchar* appname_;
- char* video_src_;
- char* video_enc_;
- char* video_payloader_;
+ gchar* video_src_;
+ gchar* video_enc_;
+ gchar* video_payloader_;
- char* audio_src_;
- char* audio_enc_;
- char* audio_payloader_;
+ gchar* audio_src_;
+ gchar* audio_enc_;
+ gchar* audio_payloader_;
- char* rtp_host_;
- int rtp_port_base_;
- char* rtp_addr_local_;
- int rtp_port_base_local_;
- int timeout_;
+ gchar* rtp_host_;
+ gint rtp_port_base_;
+ gchar* rtp_addr_local_;
+ gint rtp_port_base_local_;
+ gint timeout_;
- char* preview_videosink_;
+ gchar* preview_videosink_;
- char* video_enc_rec_;
- char* audio_enc_rec_;
- char* rec_mux_;
- char* rec_name_format_;
+ gchar* video_enc_rec_;
+ gchar* audio_enc_rec_;
+ gchar* rec_mux_;
+ gchar* rec_name_format_;
};
typedef struct options_struct options_t;
int options_parse(options_t* opt, int argc, char* argv[]);
-void options_parse_post(options_t* opt);
-void options_default(options_t* opt);
void options_clear(options_t* opt);
-void options_print_usage();
void options_print_version();
void options_print(options_t* opt);