automotive-dlt
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <syslog.h>
#include "dlt_cdh_streamer.h"
Go to the source code of this file.
Macros | |
#define | Z_CHUNK_SZ 1024*128 |
#define | Z_MODE_STR "wb1" |
Functions | |
cdh_status_t | stream_init (file_streamer_t *p_fs, const char *p_src_fname, const char *p_dst_fname) |
cdh_status_t | stream_close (file_streamer_t *p_fs) |
cdh_status_t | stream_read (file_streamer_t *p_fs, void *p_buf, unsigned int p_size) |
int | stream_finish (file_streamer_t *p_fs) |
int | stream_move_to_offest (file_streamer_t *p_fs, unsigned int p_offset) |
int | stream_move_ahead (file_streamer_t *p_fs, unsigned int p_nbbytes) |
unsigned int | stream_get_offset (file_streamer_t *p_fs) |
Definition in file dlt_cdh_streamer.c.
#define Z_CHUNK_SZ 1024*128 |
Definition at line 35 of file dlt_cdh_streamer.c.
Referenced by stream_finish(), stream_init(), and stream_move_ahead().
#define Z_MODE_STR "wb1" |
Definition at line 36 of file dlt_cdh_streamer.c.
Referenced by stream_init().
cdh_status_t stream_close | ( | file_streamer_t * | p_fs | ) |
Definition at line 93 of file dlt_cdh_streamer.c.
References CDH_NOK, CDH_OK, file_streamer_t::gz_dst_file, NULL, file_streamer_t::read_buf, and file_streamer_t::stream.
Referenced by close_coredump().
int stream_finish | ( | file_streamer_t * | p_fs | ) |
Definition at line 153 of file dlt_cdh_streamer.c.
References CDH_NOK, CDH_OK, file_streamer_t::gz_dst_file, NULL, file_streamer_t::offset, file_streamer_t::read_buf, file_streamer_t::stream, and Z_CHUNK_SZ.
Referenced by treat_coredump().
unsigned int stream_get_offset | ( | file_streamer_t * | p_fs | ) |
Definition at line 226 of file dlt_cdh_streamer.c.
References CDH_NOK, NULL, and file_streamer_t::offset.
cdh_status_t stream_init | ( | file_streamer_t * | p_fs, |
const char * | p_src_fname, | ||
const char * | p_dst_fname | ||
) |
Definition at line 38 of file dlt_cdh_streamer.c.
References CDH_NOK, CDH_OK, file_streamer_t::gz_dst_file, NULL, file_streamer_t::read_buf, file_streamer_t::stream, Z_CHUNK_SZ, and Z_MODE_STR.
Referenced by init_coredump().
int stream_move_ahead | ( | file_streamer_t * | p_fs, |
unsigned int | p_nbbytes | ||
) |
Definition at line 194 of file dlt_cdh_streamer.c.
References CDH_NOK, CDH_OK, file_streamer_t::gz_dst_file, NULL, file_streamer_t::offset, file_streamer_t::read_buf, file_streamer_t::stream, and Z_CHUNK_SZ.
Referenced by stream_move_to_offest().
int stream_move_to_offest | ( | file_streamer_t * | p_fs, |
unsigned int | p_offset | ||
) |
Definition at line 179 of file dlt_cdh_streamer.c.
References CDH_NOK, NULL, file_streamer_t::offset, and stream_move_ahead().
Referenced by read_elf_headers(), and read_notes().
cdh_status_t stream_read | ( | file_streamer_t * | p_fs, |
void * | p_buf, | ||
unsigned int | p_size | ||
) |
Definition at line 123 of file dlt_cdh_streamer.c.
References CDH_NOK, CDH_OK, file_streamer_t::gz_dst_file, NULL, file_streamer_t::offset, and file_streamer_t::stream.
Referenced by read_elf_headers(), and read_notes().