Computer Laboratory

tesla_class.c File Reference
#include "tesla_internal.h"
#include <inttypes.h>
#include <stdio.h>
+ Include dependency graph for tesla_class.c:

Go to the source code of this file.

Functions

int tesla_class_init (struct tesla_class *tclass, enum tesla_context context, uint32_t instances)
 Initialize tesla_class internals. More...
 
void tesla_class_destroy (struct tesla_class *class)
 Clean up a tesla_class. More...
 
int tesla_match (struct tesla_class *tclass, const struct tesla_key *pattern, struct tesla_instance **array, uint32_t *size)
 Find all automata instances in a class that match a particular key. More...
 
int tesla_instance_active (const struct tesla_instance *i)
 Checks whether or not a TESLA automata instance is active (in use). More...
 
int32_t tesla_instance_new (struct tesla_class *tclass, const struct tesla_key *name, uint32_t state, struct tesla_instance **out)
 Create a new tesla_instance. More...
 
int tesla_instance_clone (struct tesla_class *tclass, const struct tesla_instance *orig, struct tesla_instance **copy)
 Clone an existing instance into a new instance. More...
 
void tesla_instance_clear (struct tesla_instance *tip)
 Zero an instance for re-use. More...
 
void tesla_class_put (struct tesla_class *tsp)
 Release resources (e.g., locks) associated with a tesla_class. More...
 
void tesla_class_reset (struct tesla_class *c)
 Reset a tesla_class for re-use from a clean state. More...