version 1.6, 2003/08/25 21:05:23
|
version 1.7, 2004/06/17 22:04:07
|
Line 1
|
Line 1
|
/* |
/* |
* ISO 13818 stream multiplexer |
* ISO 13818 stream multiplexer |
* Copyright (C) 2001 Convergence Integrated Media GmbH Berlin |
* Copyright (C) 2001 Convergence Integrated Media GmbH Berlin |
* Author: Oskar Schirmer (oskar@scara.com) |
* Author: Oskar Schirmer (schirmer@scara.com) |
* |
* |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
Line 23
|
Line 23
|
* Purpose: Initialization and start the dispatcher loop. |
* Purpose: Initialization and start the dispatcher loop. |
*/ |
*/ |
|
|
|
#include <signal.h> |
#include "global.h" |
#include "global.h" |
#include "crc.h" |
#include "crc.h" |
#include "error.h" |
#include "error.h" |
Line 32
|
Line 33
|
#include "command.h" |
#include "command.h" |
#include "dispatch.h" |
#include "dispatch.h" |
|
|
|
static void signalhandler(int sig) |
|
{ |
|
exit (0); |
|
} |
|
|
|
static void system_init () |
|
{ |
|
signal (SIGINT, (void *) (*signalhandler)); |
|
signal (SIGPIPE, SIG_IGN); |
|
} |
|
|
int main (int argc, |
int main (int argc, |
char *argv[]) |
char *argv[]) |
{ |
{ |
int a; |
int a; |
|
system_init (); |
global_init (); |
global_init (); |
a = msec_now (); |
a = msec_now (); |
gen_crc_table (); |
gen_crc_table (); |