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
|
|
|
|
{
|
2004-11-16 12:07:55 +00:00
|
|
|
Term label;
|
2006-04-25 14:58:14 +01:00
|
|
|
int ignore;
|
2004-11-16 12:07:55 +00:00
|
|
|
Protocol protocol;
|
|
|
|
Term sendrole;
|
|
|
|
Term readrole;
|
2004-08-27 12:52:43 +01:00
|
|
|
};
|
|
|
|
|
2004-11-16 12:07:55 +00:00
|
|
|
typedef struct labelinfo *Labelinfo;
|
2004-08-27 12:52:43 +01:00
|
|
|
|
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
|