c_tlm_stream.h
Go to the documentation of this file.
1 /*
2  * SocialLedge.com - Copyright (C) 2013
3  *
4  * This file is part of free software framework for embedded processors.
5  * You can use it and/or distribute it as long as this copyright header
6  * remains unmodified. The code is free for personal use and requires
7  * permission to use in a commercial product.
8  *
9  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
10  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
12  * I SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
13  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
14  *
15  * You can reach the author of this software at :
16  * p r e e t . w i k i @ g m a i l . c o m
17  */
18 
19 #ifndef TLM_STREAM_H__
20 #define TLM_STREAM_H__
21 #include "c_tlm_comp.h"
22 #include <stdio.h>
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 
28 
76 typedef void (*stream_callback_type)(const char* str, void *arg);
77 
84 void tlm_stream_one(tlm_component *comp, stream_callback_type stream, void *print_ascii, void *arg);
85 
92 void tlm_stream_all(stream_callback_type stream_func, void *arg, bool ascii);
93 
99 void tlm_stream_one_file(tlm_component *comp_ptr, FILE *file);
100 
106 void tlm_stream_all_file(FILE *file);
107 
113 bool tlm_stream_decode_file(FILE *file);
114 
115 
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 #endif /* TLM_STREAM_H__ */
void tlm_stream_all(stream_callback_type stream_func, void *arg, bool ascii)
Definition: c_tlm_stream.c:218
void tlm_stream_one(tlm_component *comp, stream_callback_type stream, void *print_ascii, void *arg)
Definition: c_tlm_stream.c:175
void tlm_stream_one_file(tlm_component *comp_ptr, FILE *file)
Definition: c_tlm_stream.c:235
Definition: str.hpp:100
bool tlm_stream_decode_file(FILE *file)
Definition: c_tlm_stream.c:266
void(* stream_callback_type)(const char *str, void *arg)
Definition: c_tlm_stream.h:76
void tlm_stream_all_file(FILE *file)
Definition: c_tlm_stream.c:256
Definition: c_tlm_comp.h:51