The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
generic_tlv_min.h
Go to the documentation of this file.
1 
25 #include <projectcommon.h>
26 
28 #define GENERICTLV_HDRSZ (sizeof(guint16)+/*sizeof(guint24)*/3)
29 
30 WINEXPORT guint16 get_generic_tlv_type(gconstpointer tlv_vp, gconstpointer pktend);
31 WINEXPORT guint32 get_generic_tlv_len(gconstpointer tlv_vp, gconstpointer pktend);
32 WINEXPORT gconstpointer get_generic_tlv_value(gconstpointer tlv_vp, gconstpointer pktend);
33 WINEXPORT gpointer get_generic_tlv_nonconst_value(gpointer tlv_vp, gconstpointer pktend);
34 WINEXPORT guint32 get_generic_tlv_totalsize(gsize datasize);
35 WINEXPORT gboolean is_valid_generic_tlv_packet(gconstpointer tlv_vp, gconstpointer pktend);
36 WINEXPORT gconstpointer get_generic_tlv_first(gconstpointer packet, gconstpointer pktend);
37 WINEXPORT gconstpointer get_generic_tlv_next(gconstpointer tlv_vp, gconstpointer pktend);
38 WINEXPORT gconstpointer find_next_generic_tlv_type(gconstpointer tlv_vp, guint16 tlvtype, gconstpointer pktend);
39 WINEXPORT void set_generic_tlv_type(gpointer tlv_vp, guint16 newtype, gconstpointer pktend);
40 WINEXPORT void set_generic_tlv_len(gpointer tlv_vp, guint32 newsize, gconstpointer pktend);
41 WINEXPORT void set_generic_tlv_value(gpointer tlv_vp, void* srcdata, guint32 srcsize, gconstpointer pktend);