main.cc File Reference

#include "common.h"
#include "singleton.h"
#include "server.h"
#include "process.h"
#include "config_manager.h"
#include "content_manager.h"
#include "timer.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <syslog.h>
#include <string.h>
#include <pthread.h>
#include <signal.h>
#include <pwd.h>
#include <grp.h>
#include <limits.h>

Go to the source code of this file.

Functions

void print_copyright ()
void signal_handler (int signum)
int main (int argc, char **argv, char **envp)

Variables

int shutdown_flag = 0
int restart_flag = 0
pthread_t main_thread_id
Ref< Timertimer = nil

Detailed Description

Definition in file main.cc.


Function Documentation

int main ( int  argc,
char **  argv,
char **  envp 
)
void print_copyright (  ) 

Definition at line 81 of file main.cc.

References DESC_MANUFACTURER_URL.

Referenced by main().

void signal_handler ( int  signum  ) 

Definition at line 731 of file main.cc.

References log_error, log_info, log_warning, main_thread_id, nil, restart_flag, and shutdown_flag.

Referenced by main().


Variable Documentation

pthread_t main_thread_id

Definition at line 78 of file main.cc.

Referenced by main(), and signal_handler().

int restart_flag = 0

Definition at line 77 of file main.cc.

Referenced by main(), and signal_handler().

int shutdown_flag = 0

Definition at line 76 of file main.cc.

Referenced by main(), and signal_handler().

Ref<Timer> timer = nil

Definition at line 79 of file main.cc.


Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1