libRASCH: pl_comm.c File Reference
pl_comm.c File Reference
Include dependency graph for pl_comm.c:
Go to the source code of this file.
Defines
#define _LIBRASCH_BUILD
Functions
void _trace_signame (int level, const char *sender, const char *sig_name, int num_para, struct comm_para *para)
print infos about a signal (for debug)
void _trace_sigdest (int level, const char *dest)
print signal destination (for debug)
LIBRAAPI int ra_comm_add (meas_handle mh, plugin_handle p, dest_handle dh, const char *sig_name)
add a signal receiver
LIBRAAPI void ra_comm_del (meas_handle mh, dest_handle dh, const char *sig_name)
delete a signal receiver
LIBRAAPI void ra_comm_emit (meas_handle mh, const char *sender, const char *sig_name, int num_para, struct comm_para *para)
emits a signal
signal * find_signal (struct plugin_comm *plc, const char *sig_name)
look for a signal
signal * add_signal (struct plugin_comm *plc, const char *sig_name)
add a signal
int find_slot (struct signal *sig, dest_handle dh)
checks if a signal can be handled
Detailed Description
This file implements the inter-plugin-communication.
Author: Raphael Schneider (rasch@med1.med.tum.de )
Definition in file pl_comm.c .
Define Documentation
Function Documentation
void _trace_sigdest
(
int
level ,
const char *
dest
)
void _trace_signame
(
int
level ,
const char *
sender ,
const char *
sig_name ,
int
num_para ,
struct comm_para *
para
)
Parameters:
<level> level of the current signal
<sender> name of the sender
<sig_name> name of the signal
<num_para> number of parameters
<para> pointer to a communication-parameter struct
For debugging purposes. The function prints debug information about a signal. Is only called when the define 'TRACE_SIGNAL' is set when compiling this source.
Definition at line 240 of file pl_comm.c .
References comm_para::b , comm_para::c , comm_para::d , comm_para::f , comm_para::l , comm_para::n , PARA_BYTE , PARA_CHAR , PARA_CHAR_POINTER , PARA_DOUBLE , PARA_FLOAT , PARA_INT , PARA_LONG , PARA_SHORT , PARA_UNSIGNED_INT , PARA_UNSIGNED_LONG , PARA_UNSIGNED_SHORT , comm_para::pc , ra_print_debug_infos , comm_para::sn , comm_para::ul , comm_para::un , comm_para::usn , and utf8_to_local() .
Referenced by ra_comm_emit() .
LIBRAAPI void ra_comm_emit
(
meas_handle
mh ,
const char *
sender ,
const char *
sig_name ,
int
num_para ,
struct comm_para *
para
)
Parameters:
<mh> measurement handle
<sender> name of the sender (needed for debug, can be NULL)
<sig_name> name of the signal
<num_para> number of signal parameters
<para> signal parameters
This function emits the signal sig_name wit num_para parameters.
Definition at line 118 of file pl_comm.c .
References _trace_sigdest() , _trace_signame() , slot_info::dest , find_signal() , plugin_struct::handle_signal , plugin_struct::info , plugin_infos::name , signal::num_slots , ra_meas::plc , slot_info::plugin , and signal::slot .
Generated on Fri May 27 11:33:03 2005 for libRASCH by
1.4.2