I have am using the following tables which I generated using the MfD 
configuration file:

Table1(ocStbHostAVInterfaceTable)
Table2(ocStbHostAnalogVideoTable)

I added some #define enums to the "ocStbHostAVInterfaceTable_enums.h" Table1 
file and wanted to use these enum values in the Table2_row_prep() routine to 
help me determine if I am processing the correct row of the table or not.

Of course, I added the following #include statement into the 
ocStbHostAnalogVideoTable_data_access.c file (where the Table2_row_prep() 
routine is located) to include the new enums I defined in the Table1 enum file.

 #include 
"OC-STB-HOST-MIB/ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable_enums.h"
 

In Table2_row_prep() routine I have the following code:

   if (rowreq_ctx->data.AVInterfaceType == AV_IFACE_TYPE_BB_VIDEO_IN)
   {
      return MFD_SKIP;
   }

..... and this results in the following compile error:

mibgroup/OC-STB-HOST-MIB/ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_access.c:
 In function `ocStbHostAnalogVideoTable_row_prep':
mibgroup/OC-STB-HOST-MIB/ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_access.c:420:
 error: syntax error before '=' token
make[1]: *** 
[mibgroup/OC-STB-HOST-MIB/ocStbHostAnalogVideoTable/ocStbHostAnalogVideoTable_data_access.lo]
 Error 1
make[1]: Leaving directory `/export/home/rosent1/snmp/net-snmp-5.4/agent'
make: *** [subdirs] Error 1



"Line 420" is the line in which I am checking the "AV_IFACE_TYPE_BB_VIDEO_IN" 
enum value.  If I replace the "AV_IFACE_TYPE_BB_VIDEO_IN" enum value with a 
"5", then everything compiles fine.   


Any idea why Table2 can not use an enum value defined in the Table1 enum.h file?




       
---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection. 
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to