pdu_api.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef NET_SNMP_PDU_API_H
  2. #define NET_SNMP_PDU_API_H
  3. /**
  4. * Library API routines concerned with SNMP PDUs.
  5. */
  6. #include <net-snmp/types.h>
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. NETSNMP_IMPORT
  11. netsnmp_pdu *snmp_pdu_create(int type);
  12. NETSNMP_IMPORT
  13. netsnmp_pdu *snmp_clone_pdu(netsnmp_pdu *pdu);
  14. NETSNMP_IMPORT
  15. netsnmp_pdu *snmp_fix_pdu( netsnmp_pdu *pdu, int idx);
  16. NETSNMP_IMPORT
  17. void snmp_free_pdu( netsnmp_pdu *pdu);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. /*
  22. * Having extracted the main ("public API") calls relevant
  23. * to this area of the Net-SNMP project, the next step is to
  24. * identify the related "public internal API" routines.
  25. *
  26. * In due course, these should probably be gathered
  27. * together into a companion 'library/pdu_api.h' header file.
  28. * [Or some suitable name]
  29. *
  30. * But for the time being, the expectation is that the
  31. * traditional headers that provided the above definitions
  32. * will probably also cover the relevant internal API calls.
  33. * Hence they are listed here:
  34. */
  35. #include <net-snmp/library/snmp_api.h>
  36. #include <net-snmp/library/snmp_client.h>
  37. #include <net-snmp/library/asn1.h>
  38. #endif /* NET_SNMP_PDU_API_H */