automotive-dlt
dlt_cdh_streamer.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <syslog.h>
#include "dlt_cdh_streamer.h"
Include dependency graph for dlt_cdh_streamer.c:

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)
 

Detailed Description

Author
Magneti Marelli http://www.magnetimarelli.com
Lutz Helwing lutz_.nosp@m.helw.nosp@m.ing@m.nosp@m.ento.nosp@m.r.com

Definition in file dlt_cdh_streamer.c.

Macro Definition Documentation

#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().

Function Documentation

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 
)
int stream_move_ahead ( file_streamer_t p_fs,
unsigned int  p_nbbytes 
)
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 
)