Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 153 → Rev 154

/cvi/instr/MPOD/WIENER_SNMP.c
127,9 → 127,9
 
//static double snmpSetDouble(HSNMP session, const SnmpObject &object, double value);
static double snmpSetDouble(HSNMP session, const SnmpObject *object, double value);
static double snmpGetDouble(HSNMP session, const SnmpObject *object);
double snmpGetDouble(HSNMP session, const SnmpObject *object);
static int snmpSetInt(HSNMP session, const SnmpObject *object, int value);
static int snmpGetInt(HSNMP session, const SnmpObject *object);
int snmpGetInt(HSNMP session, const SnmpObject *object);
static char *snmpGetString(HSNMP session, const SnmpObject *object);
 
char snmpStringBuffer[1024];
183,7 → 183,8
* @param object the resolved OID
* @return true on success, false otherwise
*/
static int getNode(const char * const node, SnmpObject *object)
//static int getNode(const char * const node, SnmpObject *object)
int getNode(const char * const node, SnmpObject *object)
{
object->len = MAX_OID_LEN;
if (!get_node(node, object->id, &object->len)) {
1743,7 → 1744,7
return pdu;
}
 
static int snmpGetInt(HSNMP session, const SnmpObject *object)
int snmpGetInt(HSNMP session, const SnmpObject *object)
{
int value = 0;
 
1789,7 → 1790,7
return result;
}
 
static double snmpGetDouble(HSNMP session, const SnmpObject *object)
double snmpGetDouble(HSNMP session, const SnmpObject *object)
{
double value = 0.0;