27 tab[0] =
MALP_Trace_crc64( MALP_Blackboard_level_name, strlen(MALP_Blackboard_level_name) );
38 void *
lib_handle = dlopen(plugin_soname, RTLD_NOW);
42 printf(
"Failed to load %s BB plugin\n", plugin_soname );
51 perror(
"Failled to allocate BLackboard level");
52 dlclose( lib_handle );
60 perror(
"Could not load 'BB_level_setup' function from plugin" );
61 dlclose( lib_handle );
69 perror(
"Could not load 'BB_level_teardown' function from plugin" );
70 dlclose( lib_handle );
77 printf(
"MALP Blackboard sucessfully loaded plugin %s\n", plugin_soname );
83 printf(
"Error setting up %s plugin\n", plugin_soname );
84 dlclose( lib_handle );
102 perror(
"Failled to allocate BLackboard level");
114 printf(
"Error setting up plugin\n" );
131 printf(
"Error releasing a plugin\n");
struct MALP_Blackboard_level * MALP_Blackboard_level(struct MALP_blackboard *bb, int(*BB_level_setup)(struct MALP_blackboard *bb, void *arg), int(*BB_level_teardown)(struct MALP_blackboard *bb, void *arg), void *arg)
Create a MALP_Blackboard_level structure using the parameters with NULL value for the handler's mappi...
The MALP_Blackboard_level structure.
static uint64_t MALP_Trace_crc64(char *source, uint64_t size)
Computes the hash of a given data.
The MALP_blackboard structure.
struct MALP_Blackboard_level * MALP_Blackboard_level_load(struct MALP_blackboard *bb, char *plugin_soname, void *arg)
MALP_Blackboard_level_load [UNUSED?].
int MALP_Blackboard_level_unload(struct MALP_blackboard *bb, struct MALP_Blackboard_level *level)
MALP_Blackboard_level_unload [UNUSED?].
int(* BB_level_teardown)(struct MALP_blackboard *bb, void *arg)
int(* BB_level_setup)(struct MALP_blackboard *bb, void *arg)
uint64_t MALP_Blackboard_level_id(char *MALP_Blackboard_level_name, char *object1_name, char *object2_name)
Generate the hashcode for a 3 dimensions table buffer containing a blackboard level and two object na...