automotive-dlt
dlt_cdh_streamer.h File Reference
#include <stdio.h>
#include <zlib.h>
#include "dlt_cdh_definitions.h"
Include dependency graph for dlt_cdh_streamer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  file_streamer_t
 

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)
 
cdh_status_t stream_finish (file_streamer_t *p_fs)
 
cdh_status_t stream_move_to_offest (file_streamer_t *p_fs, unsigned int p_offset)
 
cdh_status_t 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.h.

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