automotive-dlt
dlt-daemon.c File Reference
#include <netdb.h>
#include <ctype.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <syslog.h>
#include <errno.h>
#include <pthread.h>
#include <sys/stat.h>
#include <sys/time.h>
#include "dlt_types.h"
#include "dlt-daemon.h"
#include "dlt-daemon_cfg.h"
#include "dlt_daemon_common_cfg.h"
#include "dlt_daemon_socket.h"
#include "dlt_daemon_unix_socket.h"
#include "dlt_daemon_serial.h"
#include "dlt_daemon_client.h"
#include "dlt_daemon_connection.h"
#include "dlt_daemon_event_handler.h"
#include "dlt_daemon_offline_logstorage.h"
#include "dlt_gateway.h"
Include dependency graph for dlt-daemon.c:

Go to the source code of this file.

Functions

static int dlt_daemon_log_internal (DltDaemon *daemon, DltDaemonLocal *daemon_local, char *str, int verbose)
 
void usage ()
 
int option_handling (DltDaemonLocal *daemon_local, int argc, char *argv[])
 
int option_file_parser (DltDaemonLocal *daemon_local)
 
int main (int argc, char *argv[])
 
int dlt_daemon_local_init_p1 (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
int dlt_daemon_local_init_p2 (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
static int dlt_daemon_init_serial (DltDaemonLocal *daemon_local)
 
static int dlt_daemon_init_fifo (DltDaemonLocal *daemon_local)
 
int dlt_daemon_local_connection_init (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
int dlt_daemon_local_ecu_version_init (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
void dlt_daemon_local_cleanup (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
void dlt_daemon_signal_handler (int sig)
 
void dlt_daemon_daemonize (int verbose)
 
int dlt_daemon_process_client_connect (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_client_messages (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_client_messages_serial (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_control_connect (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_control_messages (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
static int dlt_daemon_process_user_message_not_sup (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_user_messages (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_user_message_overflow (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_send_message_overflow (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
int dlt_daemon_process_user_message_register_application (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_register_context (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_unregister_application (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_unregister_context (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_log (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_set_app_ll_ts (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_log_mode (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_marker (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_send_ringbuffer_to_client (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
int create_timer_fd (DltDaemonLocal *daemon_local, int period_sec, int starts_in, DltTimers timer_id)
 
int dlt_daemon_close_socket (int sock, DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 

Variables

static char str [DLT_DAEMON_TEXTBUFSIZE]
 
int g_exit = 0
 
static dlt_daemon_process_user_message_func process_user_func [DLT_USER_MESSAGE_NOT_SUPPORTED]
 
static char dlt_timer_conn_types [DLT_TIMER_UNKNOWN+1]
 
static char dlt_timer_names [DLT_TIMER_UNKNOWN+1][32]
 

Detailed Description

Author
Alexander Wenzel alexa.nosp@m.nder.nosp@m..aw.w.nosp@m.enze.nosp@m.l@bmw.nosp@m..de Markus Klein Marku.nosp@m.s.Kl.nosp@m.ein@e.nosp@m.sk.f.nosp@m.raunh.nosp@m.ofer.nosp@m..de Mikko Rapeli mikko.nosp@m..rap.nosp@m.eli@b.nosp@m.mw.d.nosp@m.e

Definition in file dlt-daemon.c.