c_tlm_comp.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 C_TLM_COMP_H__
20 #define C_TLM_COMP_H__
21 #include "c_list.h"
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
51 typedef struct {
52  const char *name;
55 
59 typedef void (*tlm_comp_callback)(tlm_component *comp_ptr, void *arg1, void *arg2);
60 
67 tlm_component* tlm_component_add(const char *name);
68 
73 tlm_component* tlm_component_get_by_name(const char *name);
74 
81 void tlm_component_for_each(tlm_comp_callback callback, void *arg1, void *arg2);
82 
83 
84 
85 #ifdef __cplusplus
86 }
87 #endif
88 #endif /* C_TLM_COMP_H__ */
tlm_component * tlm_component_get_by_name(const char *name)
Definition: c_tlm_comp.c:84
tlm_component * tlm_component_add(const char *name)
Definition: c_tlm_comp.c:43
const char * name
Definition: c_tlm_comp.h:52
void tlm_component_for_each(tlm_comp_callback callback, void *arg1, void *arg2)
Definition: c_tlm_comp.c:96
void(* tlm_comp_callback)(tlm_component *comp_ptr, void *arg1, void *arg2)
Definition: c_tlm_comp.h:59
c_list_ptr var_list
Definition: c_tlm_comp.h:53
void * c_list_ptr
Definition: c_list.h:80
Definition: c_tlm_comp.h:51