2004-08-27 12:52:43 +01:00
|
|
|
#ifndef LABEL
|
|
|
|
#define LABEL
|
|
|
|
|
|
|
|
#include "term.h"
|
2004-08-27 13:36:23 +01:00
|
|
|
#include "list.h"
|
|
|
|
#include "system.h"
|
2004-08-27 12:52:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Structure to store label information
|
|
|
|
*/
|
|
|
|
struct labelinfo
|
|
|
|
{
|
|
|
|
Term label;
|
2004-08-30 21:08:11 +01:00
|
|
|
Protocol protocol;
|
2004-08-27 12:52:43 +01:00
|
|
|
Term sendrole;
|
|
|
|
Term readrole;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct labelinfo* Labelinfo;
|
|
|
|
|
2004-08-27 13:36:23 +01:00
|
|
|
Labelinfo label_create (const Term label, const Protocol protocol);
|
2004-08-27 12:52:43 +01:00
|
|
|
void label_destroy (Labelinfo linfo);
|
2004-08-27 13:36:23 +01:00
|
|
|
Labelinfo label_find (List labellist, const Term label);
|
2004-08-27 12:52:43 +01:00
|
|
|
|
|
|
|
#endif
|