Computer Laboratory

tesla_notification.c File Reference
#include "tesla_internal.h"
+ Include dependency graph for tesla_notification.c:

Go to the source code of this file.

Macros

#define ERROR_BUFFER_LENGTH   1024
 
#define FOREACH_ERROR_HANDLER()
 

Functions

int tesla_set_event_handler (struct tesla_event_handlers *tehp)
 Register an event handler vector. More...
 
int tesla_set_event_handlers (struct tesla_event_metahandler *temp)
 Register a set of event handling vectors. More...
 
void ev_new_instance (struct tesla_class *tcp, struct tesla_instance *tip)
 
void ev_transition (struct tesla_class *tcp, struct tesla_instance *tip, const struct tesla_transition *ttp)
 
void ev_clone (struct tesla_class *tcp, struct tesla_instance *orig, struct tesla_instance *copy, const struct tesla_transition *ttp)
 
void ev_no_instance (struct tesla_class *tcp, const struct tesla_key *tkp, const struct tesla_transitions *ttp)
 
void ev_bad_transition (struct tesla_class *tcp, struct tesla_instance *tip, const struct tesla_transitions *ttp)
 
void ev_err (struct tesla_class *tcp, int errno, const char *message)
 
void ev_accept (struct tesla_class *tcp, struct tesla_instance *tip)
 
void ev_ignored (const struct tesla_class *tcp, const struct tesla_key *tkp, const struct tesla_transitions *ttp)
 

Macro Definition Documentation

#define ERROR_BUFFER_LENGTH   1024

Definition at line 35 of file tesla_notification.c.

#define FOREACH_ERROR_HANDLER ( )
Value:
for (uint32_t i = 0; i < event_handlers->tem_length; i++) \
if (event_handlers->tem_mask & (1 << i)) \
event_handlers->tem_handlers[i]

Definition at line 104 of file tesla_notification.c.

Referenced by ev_accept(), ev_bad_transition(), ev_clone(), ev_err(), ev_ignored(), ev_new_instance(), ev_no_instance(), and ev_transition().