Converted nearly everything to new config object from library.

This commit is contained in:
Thulinma 2012-07-21 04:32:37 +02:00
parent cecb015a4b
commit ffff1f9577
14 changed files with 147 additions and 330 deletions

View file

@ -13,10 +13,11 @@
#include <mist/flv_tag.h> //FLV support
#include <mist/dtsc.h> //DTSC support
#include <mist/amf.h> //AMF support
#include <mist/config.h>
/// Holds all code that converts filetypes to/from DTSC.
namespace Converters{
/// Reads DTSC from STDIN, outputs FLV to STDOUT.
int DTSC2FLV() {
FLV::Tag FLV_out; // Temporary storage for outgoing FLV data.
@ -60,6 +61,8 @@ namespace Converters{
};//Converter namespace
/// Entry point for DTSC2FLV, simply calls Converters::DTSC2FLV().
int main(){
int main(int argc, char ** argv){
Util::Config conf = Util::Config(argv[0], PACKAGE_VERSION);
conf.parseArgs(argc, argv);
return Converters::DTSC2FLV();
}//main

View file

@ -13,6 +13,7 @@
#include <mist/flv_tag.h> //FLV support
#include <mist/dtsc.h> //DTSC support
#include <mist/amf.h> //AMF support
#include <mist/config.h>
/// Holds all code that converts filetypes to/from to DTSC.
namespace Converters{
@ -65,6 +66,8 @@ namespace Converters{
};//Buffer namespace
/// Entry point for FLV2DTSC, simply calls Converters::FLV2DTSC().
int main(){
int main(int argc, char ** argv){
Util::Config conf = Util::Config(argv[0], PACKAGE_VERSION);
conf.parseArgs(argc, argv);
return Converters::FLV2DTSC();
}//main