Commit 9c4b4fab authored by Aurelio Colosimo's avatar Aurelio Colosimo

include/ppsi/pp-instance.h: define struct pp_link

An array of struct pp_link is defined in struct pp_globals: it will cointain
the result of conf file parsing.
Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent 1aa3f796
......@@ -176,11 +176,23 @@ struct pp_instance {
char *iface_name;
};
/*
* Struct containg the result of ppsi.conf parsing: one for each link
* (see lib/conf.c)
*/
struct pp_link {
char link_name[16];
char iface_name[16];
int proto; /* 0: raw, 1: udp */
int role; /* 0: auto, 1: master, 2: slave */
int ext; /* 0: none, 1: whiterabbit */ /* FIXME extension enumeration */
};
/*
* Structure for the multi-port ppsi instance.
*/
struct pp_globals {
int nports;
int nports; /* FIXME: obsolete, remove it */
struct pp_instance *pp_instances;
UInteger16 frgn_rec_num;
Integer16 frgn_rec_i;
......@@ -198,6 +210,10 @@ struct pp_globals {
DSParent *parentDS; /* page 68 */
DSTimeProperties *timePropertiesDS; /* page 70 */
int nlinks;
int max_links;
struct pp_link *links;
/* FIXME Here include all is common to many interfaces */
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment