Rev 155 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 155 | Rev 156 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | extern "C" { |
5 | extern "C" { |
6 | #endif |
6 | #endif |
7 | 7 | ||
8 | #include <cvidef.h> |
8 | #include <cvidef.h> |
9 | #include <ivi.h> |
9 | #include <ivi.h> |
- | 10 | ||
10 | //#include "WIENER_SNMP.h" |
11 | //#include "WIENER_SNMP.h" |
11 | //************************* WIENER_SNMP.h ***************************** |
12 | //************************* WIENER_SNMP.h ***************************** |
12 | #ifdef _MSC_VER |
13 | #ifdef _MSC_VER |
13 | #define EXPORT extern "C" _declspec(dllexport) |
14 | #define EXPORT extern "C" _declspec(dllexport) |
14 | #else |
15 | #else |
Line 32... | Line 33... | ||
32 | 33 | ||
33 | EXPORT int snmpInit(void); |
34 | EXPORT int snmpInit(void); |
34 | EXPORT void snmpCleanup(void); |
35 | EXPORT void snmpCleanup(void); |
35 | EXPORT void snmpSetReadCommunityName(const char * const readCommunityName); |
36 | EXPORT void snmpSetReadCommunityName(const char * const readCommunityName); |
36 | EXPORT void snmpSetWriteCommunityName(const char * const writeCommunityName); |
37 | EXPORT void snmpSetWriteCommunityName(const char * const writeCommunityName); |
37 | 38 | ||
38 | EXPORT HSNMP snmpOpen(const char * const ipAddress); |
39 | EXPORT HSNMP snmpOpen(const char * const ipAddress); |
39 | EXPORT void snmpClose(HSNMP session); |
40 | EXPORT void snmpClose(HSNMP session); |
40 | EXPORT char *snmpGetLastError(void); |
41 | EXPORT char *snmpGetLastError(void); |
41 | 42 | ||
42 | // System Functions |
43 | // System Functions |
Line 217... | Line 218... | ||
217 | int _VI_FUNC MPOD_SetInt (int mpodn, char *oidstr, int iset); |
218 | int _VI_FUNC MPOD_SetInt (int mpodn, char *oidstr, int iset); |
218 | 219 | ||
219 | double _VI_FUNC MPOD_GetDouble (int mpodn, char *oidstr); |
220 | double _VI_FUNC MPOD_GetDouble (int mpodn, char *oidstr); |
220 | 221 | ||
221 | double _VI_FUNC MPOD_SetDouble (int mpodn, char *oidstr, double dset); |
222 | double _VI_FUNC MPOD_SetDouble (int mpodn, char *oidstr, double dset); |
- | 223 | ||
- | 224 | char * _VI_FUNC MPOD_GetString (int mpodn, char *oidstr); |
|
222 | 225 | ||
223 | int _VI_FUNC MPOD_GetIntCh (int mpodn, char *oidstrbase, int ich); |
226 | int _VI_FUNC MPOD_GetIntCh (int mpodn, char *oidstrbase, int ich); |
224 | 227 | ||
225 | int _VI_FUNC MPOD_SetIntCh (int mpodn, char *oidstrbase, int ich, int iset); |
228 | int _VI_FUNC MPOD_SetIntCh (int mpodn, char *oidstrbase, int ich, int iset); |
226 | 229 | ||
227 | double _VI_FUNC MPOD_GetDoubleCh (int mpodn, char *oidstrbase, int ich); |
230 | double _VI_FUNC MPOD_GetDoubleCh (int mpodn, char *oidstrbase, int ich); |
228 | 231 | ||
229 | double _VI_FUNC MPOD_SetDoubleCh (int mpodn, char *oidstrbase, int ich, |
232 | double _VI_FUNC MPOD_SetDoubleCh (int mpodn, char *oidstrbase, int ich, |
230 | double dset); |
233 | double dset); |
- | 234 | ||
- | 235 | char * _VI_FUNC MPOD_GetStringCh (int mpodn, char oidstrbase[], int ich); |
|
231 | 236 | ||
232 | int _VI_FUNC MPOD_Close (int mpodn); |
237 | int _VI_FUNC MPOD_Close (int mpodn); |
233 | 238 | ||
234 | int _VI_FUNC MPOD_End (void); |
239 | int _VI_FUNC MPOD_End (void); |
235 | 240 |