Robotran C Documentation
Functions
user_load.c File Reference
#include "mbs_data.h"

Functions

void user_load_post (MbsData *mbs_data)
 User own initialization operations. More...
 
void user_free (MbsData *mbs_data)
 User own freeing operations. More...
 

Detailed Description

This files enable the user to call custom code to initialize the project at loading and properly closing it at freeing.

Author
Robotran team

(c) Universite catholique de Louvain

Function Documentation

◆ user_free()

void user_free ( MbsData mbs_data)

User own freeing operations.

This function will automatically be called at the project freeing by mbs_delete_data() function. All memory allocated by the user (in the user model)ie. in a user model) should be properly freed. Such memory may have been allocated in the user_load_post() function.

Parameters
[in,out]mbs_datadata structure of the model

◆ user_load_post()

void user_load_post ( MbsData mbs_data)

User own initialization operations.

This function will automatically be called at the project loading by mbs_load() function. The user can define in this function various initialization, allocation or configuration steps required by the project (ie. allocating and configuring user model of type being structure).

Parameters
[in,out]mbs_dataData structure of the model.