Crossreferences on Co signals added

parent 32047803
...@@ -93,6 +93,7 @@ static crrgen_tRefList reflist[] = { ...@@ -93,6 +93,7 @@ static crrgen_tRefList reflist[] = {
{ pwr_cClass_cstoap, "DevBody", "Object", crrgen_eType_Write, crrgen_eTable_Object, 0}, { pwr_cClass_cstoap, "DevBody", "Object", crrgen_eType_Write, crrgen_eTable_Object, 0},
{ pwr_cClass_GetAp, "DevBody", "ApObject", crrgen_eType_Read, crrgen_eTable_Object, 0}, { pwr_cClass_GetAp, "DevBody", "ApObject", crrgen_eType_Read, crrgen_eTable_Object, 0},
{ pwr_cClass_stoap, "DevBody", "Object", crrgen_eType_Write, crrgen_eTable_Object, 0}, { pwr_cClass_stoap, "DevBody", "Object", crrgen_eType_Write, crrgen_eTable_Object, 0},
{ pwr_cClass_GetPi, "DevBody", "CoObject", crrgen_eType_Read, crrgen_eTable_Signal, 0},
{ pwr_cClass_CStoIp, "DevBody", "Object", crrgen_eType_Write, crrgen_eTable_Object, 0}, { pwr_cClass_CStoIp, "DevBody", "Object", crrgen_eType_Write, crrgen_eTable_Object, 0},
{ pwr_cClass_GetIp, "DevBody", "IpObject", crrgen_eType_Read, crrgen_eTable_Object, 0}, { pwr_cClass_GetIp, "DevBody", "IpObject", crrgen_eType_Read, crrgen_eTable_Object, 0},
{ pwr_cClass_StoIp, "DevBody", "Object", crrgen_eType_Write, crrgen_eTable_Object, 0}, { pwr_cClass_StoIp, "DevBody", "Object", crrgen_eType_Write, crrgen_eTable_Object, 0},
...@@ -372,6 +373,7 @@ void wb_crrgen::load( pwr_tStatus *rsts) ...@@ -372,6 +373,7 @@ void wb_crrgen::load( pwr_tStatus *rsts)
case pwr_cClass_Ai: case pwr_cClass_Ai:
case pwr_cClass_Ao: case pwr_cClass_Ao:
case pwr_cClass_Av: case pwr_cClass_Av:
case pwr_cClass_Co:
case pwr_cClass_Ii: case pwr_cClass_Ii:
case pwr_cClass_Io: case pwr_cClass_Io:
case pwr_cClass_Iv: case pwr_cClass_Iv:
...@@ -431,6 +433,7 @@ void wb_crrgen::load( pwr_tStatus *rsts) ...@@ -431,6 +433,7 @@ void wb_crrgen::load( pwr_tStatus *rsts)
case pwr_cClass_Ai: case pwr_cClass_Ai:
case pwr_cClass_Ao: case pwr_cClass_Ao:
case pwr_cClass_Av: case pwr_cClass_Av:
case pwr_cClass_Co:
case pwr_cClass_Ii: case pwr_cClass_Ii:
case pwr_cClass_Io: case pwr_cClass_Io:
case pwr_cClass_Iv: case pwr_cClass_Iv:
......
...@@ -7320,6 +7320,7 @@ static int utl_signalref ( ...@@ -7320,6 +7320,7 @@ static int utl_signalref (
{ pwr_cClass_pos3p, "DevBody", "DoClose", CRR_WRITE, 0}, { pwr_cClass_pos3p, "DevBody", "DoClose", CRR_WRITE, 0},
{ pwr_cClass_inc3p, "DevBody", "DoOpen", CRR_WRITE, 0}, { pwr_cClass_inc3p, "DevBody", "DoOpen", CRR_WRITE, 0},
{ pwr_cClass_inc3p, "DevBody", "DoClose", CRR_WRITE, 0}, { pwr_cClass_inc3p, "DevBody", "DoClose", CRR_WRITE, 0},
{ pwr_cClass_GetPi, "DevBody", "CoObject", CRR_READ, 0},
{ 0, }}; { 0, }};
/* get all the children to the object */ /* get all the children to the object */
...@@ -11733,8 +11734,9 @@ static int cross_get_object_page( ...@@ -11733,8 +11734,9 @@ static int cross_get_object_page(
#define CROSSLIST_IO 6 #define CROSSLIST_IO 6
#define CROSSLIST_II 7 #define CROSSLIST_II 7
#define CROSSLIST_IV 8 #define CROSSLIST_IV 8
#define CROSSLIST_OBJ 9 #define CROSSLIST_CO 9
#define CROSSLIST_SIZE 10 #define CROSSLIST_OBJ 10
#define CROSSLIST_SIZE 11
static int cross_crosslist_loaded = 0; static int cross_crosslist_loaded = 0;
static cross_t_list *cross_crosslist[CROSSLIST_SIZE] = {0,0,0,0,0,0,0,0,0,0}; static cross_t_list *cross_crosslist[CROSSLIST_SIZE] = {0,0,0,0,0,0,0,0,0,0};
...@@ -11899,6 +11901,7 @@ static int cross_crosslist_object_insert( ...@@ -11899,6 +11901,7 @@ static int cross_crosslist_object_insert(
{ pwr_cClass_GetIi, "DevBody", "IiObject", CRR_READ, CROSSLIST_II}, { pwr_cClass_GetIi, "DevBody", "IiObject", CRR_READ, CROSSLIST_II},
{ pwr_cClass_GetIo, "DevBody", "IoObject", CRR_READ, CROSSLIST_IO}, { pwr_cClass_GetIo, "DevBody", "IoObject", CRR_READ, CROSSLIST_IO},
{ pwr_cClass_GetIv, "DevBody", "IvObject", CRR_READ, CROSSLIST_IV}, { pwr_cClass_GetIv, "DevBody", "IvObject", CRR_READ, CROSSLIST_IV},
{ pwr_cClass_GetPi, "DevBody", "CoObject", CRR_READ, CROSSLIST_CO},
{ pwr_cClass_ExternRef, "DevBody", "Object", CRR_GETFROMOBJECT, CROSSLIST_OBJ}, { pwr_cClass_ExternRef, "DevBody", "Object", CRR_GETFROMOBJECT, CROSSLIST_OBJ},
{ pwr_cClass_reset_so, "DevBody", "OrderObject", CRR_READ, CROSSLIST_OBJ}, { pwr_cClass_reset_so, "DevBody", "OrderObject", CRR_READ, CROSSLIST_OBJ},
{ pwr_cClass_GetData, "DevBody", "DataObject", CRR_REF, CROSSLIST_OBJ}, { pwr_cClass_GetData, "DevBody", "DataObject", CRR_REF, CROSSLIST_OBJ},
...@@ -12266,6 +12269,8 @@ static int crr_crossref( ...@@ -12266,6 +12269,8 @@ static int crr_crossref(
cr_index = CROSSLIST_IO; cr_index = CROSSLIST_IO;
else if ( cid == pwr_cClass_Iv) else if ( cid == pwr_cClass_Iv)
cr_index = CROSSLIST_IV; cr_index = CROSSLIST_IV;
else if ( cid == pwr_cClass_Co)
cr_index = CROSSLIST_CO;
else else
cr_index = CROSSLIST_OBJ; cr_index = CROSSLIST_OBJ;
......
...@@ -4613,6 +4613,7 @@ static int wnav_crossref_func( void *client_data, ...@@ -4613,6 +4613,7 @@ static int wnav_crossref_func( void *client_data,
case pwr_cClass_Iv: case pwr_cClass_Iv:
case pwr_cClass_Ii: case pwr_cClass_Ii:
case pwr_cClass_Io: case pwr_cClass_Io:
case pwr_cClass_Co:
case pwr_cClass_Sv: case pwr_cClass_Sv:
case pwr_cClass_ATv: case pwr_cClass_ATv:
case pwr_cClass_DTv: case pwr_cClass_DTv:
......
...@@ -613,6 +613,7 @@ int WItemBaseObject::open_crossref( WNav *wnav, double x, double y) ...@@ -613,6 +613,7 @@ int WItemBaseObject::open_crossref( WNav *wnav, double x, double y)
case pwr_cClass_Av: case pwr_cClass_Av:
case pwr_cClass_Ai: case pwr_cClass_Ai:
case pwr_cClass_Ao: case pwr_cClass_Ao:
case pwr_cClass_Co:
case pwr_cClass_Iv: case pwr_cClass_Iv:
case pwr_cClass_Ii: case pwr_cClass_Ii:
case pwr_cClass_Io: case pwr_cClass_Io:
......
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