net-snmp 5.7
pdu_api.h
00001 #ifndef NET_SNMP_PDU_API_H
00002 #define NET_SNMP_PDU_API_H
00003 
00008 #include <net-snmp/types.h>
00009 
00010 #ifdef __cplusplus
00011 extern          "C" {
00012 #endif
00013 
00014 NETSNMP_IMPORT
00015 netsnmp_pdu    *snmp_pdu_create(int type);
00016 NETSNMP_IMPORT
00017 netsnmp_pdu    *snmp_clone_pdu(netsnmp_pdu *pdu);
00018 NETSNMP_IMPORT
00019 netsnmp_pdu    *snmp_fix_pdu(  netsnmp_pdu *pdu, int idx);
00020 NETSNMP_IMPORT
00021 void            snmp_free_pdu( netsnmp_pdu *pdu);
00022 
00023 #ifdef __cplusplus
00024 }
00025 #endif
00026 
00027     /*
00028      *    Having extracted the main ("public API") calls relevant
00029      *  to this area of the Net-SNMP project, the next step is to
00030      *  identify the related "public internal API" routines.
00031      *
00032      *    In due course, these should probably be gathered
00033      *  together into a companion 'library/pdu_api.h' header file.
00034      *  [Or some suitable name]
00035      *
00036      *    But for the time being, the expectation is that the
00037      *  traditional headers that provided the above definitions
00038      *  will probably also cover the relevant internal API calls.
00039      *  Hence they are listed here:
00040      */
00041 
00042 #include <net-snmp/library/snmp_api.h>
00043 #include <net-snmp/library/snmp_client.h>
00044 #include <net-snmp/library/asn1.h>
00045 
00046 #endif                          /* NET_SNMP_PDU_API_H */