Changeset 66ffac4 for lib/libtrace.h.in


Ignore:
Timestamp:
01/17/19 14:33:40 (2 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
c8171e5
Parents:
d4eed70
Message:

Add more meta functions, cleanup function names, DLLEXPORT all meta-api prototypes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    rd4eed70 r66ffac4  
    37323732/*@}*/
    37333733
     3734
     3735
     3736DLLEXPORT int trace_destroy_meta(libtrace_meta_t *result);
     3737
     3738DLLEXPORT libtrace_meta_t *trace_get_interface_name_meta(libtrace_packet_t *packet);
     3739
     3740DLLEXPORT char *trace_get_interface_name(libtrace_packet_t *packet, char *space, int spacelen,
     3741        int index);
     3742
     3743DLLEXPORT libtrace_meta_t *trace_get_interface_mac_meta(libtrace_packet_t *packet);
     3744
     3745DLLEXPORT char *trace_get_interface_mac(libtrace_packet_t *packet, char *space, int spacelen,
     3746        int index);
     3747
     3748DLLEXPORT libtrace_meta_t *trace_get_interface_speed_meta(libtrace_packet_t *packet);
     3749
     3750DLLEXPORT uint64_t trace_get_interface_speed(libtrace_packet_t *packet, int index);
     3751
     3752
     3753DLLEXPORT libtrace_meta_t *trace_get_interface_ipv4_meta(libtrace_packet_t *packet);
     3754
     3755DLLEXPORT uint32_t trace_get_interface_ipv4(libtrace_packet_t *packet, int index);
     3756
     3757DLLEXPORT char *trace_get_interface_ipv4_string(libtrace_packet_t *packet, char *space, int spacelen,
     3758        int index);
     3759
     3760DLLEXPORT libtrace_meta_t *trace_get_interface_ipv6_meta(libtrace_packet_t *packet);
     3761
     3762DLLEXPORT void *trace_get_interface_ipv6(libtrace_packet_t *packet, void *space, int spacelen,
     3763        int index);
     3764
     3765DLLEXPORT char *trace_get_interface_ipv6_string(libtrace_packet_t *packet, char *space, int spacelen,
     3766        int index);
     3767
     3768DLLEXPORT libtrace_meta_t *trace_get_interface_description_meta(libtrace_packet_t *packet);
     3769
     3770DLLEXPORT char *trace_get_interface_description(libtrace_packet_t *packet, char *space, int spacelen,
     3771
     3772        int index);
     3773
     3774DLLEXPORT libtrace_meta_t *trace_get_host_os_meta(libtrace_packet_t *packet);
     3775
     3776DLLEXPORT char *trace_get_host_os(libtrace_packet_t *packet, char *space, int spacelen);
     3777
     3778DLLEXPORT libtrace_meta_t *trace_get_interface_fcslen_meta(libtrace_packet_t *packet);
     3779
     3780DLLEXPORT uint32_t trace_get_interface_fcslen(libtrace_packet_t *packet, int index);
     3781
     3782DLLEXPORT libtrace_meta_t *trace_get_interface_hardware_description_meta(libtrace_packet_t *packet);
     3783
     3784DLLEXPORT char *trace_get_interface_hardware_description(libtrace_packet_t *packet, char *space,
     3785        int spacelen);
     3786
     3787DLLEXPORT libtrace_meta_t *trace_get_interface_comment_meta(libtrace_packet_t *packet);
     3788
     3789DLLEXPORT char *trace_get_interface_comment(libtrace_packet_t *packet, char *space, int spacelen,
     3790        int index);
     3791
     3792DLLEXPORT libtrace_meta_t *trace_get_capture_application_meta(libtrace_packet_t *packet);
     3793
     3794DLLEXPORT char *trace_get_capture_application(libtrace_packet_t *packet, char *space, int spacelen);
     3795
     3796DLLEXPORT libtrace_meta_t *trace_get_section_option(libtrace_packet_t *packet, uint32_t section_code,
     3797        uint16_t option_code);
     3798
     3799DLLEXPORT libtrace_meta_t *trace_get_section(libtrace_packet_t *packet, uint32_t section_code);
     3800
     3801
    37343802#ifdef __cplusplus
    37353803} /* extern "C" */
    37363804#endif /* #ifdef __cplusplus */
    37373805
    3738 int trace_destroy_meta(libtrace_meta_t *result);
    3739 libtrace_meta_t *trace_get_interface_name(libtrace_packet_t *packet);
    3740 libtrace_meta_t *trace_get_interface_mac(libtrace_packet_t *packet);
    3741 libtrace_meta_t *trace_get_interface_speed(libtrace_packet_t *packet);
    3742 libtrace_meta_t *trace_get_interface_ip4(libtrace_packet_t *packet);
    3743 libtrace_meta_t *trace_get_interface_ipv4(libtrace_packet_t *packet);
    3744 libtrace_meta_t *trace_get_interface_ip6(libtrace_packet_t *packet);
    3745 libtrace_meta_t *trace_get_interface_ipv6(libtrace_packet_t *packet);
    3746 libtrace_meta_t *trace_get_interface_description(libtrace_packet_t *packet);
    3747 libtrace_meta_t *trace_get_interface_num(libtrace_packet_t *packet);
    3748 libtrace_meta_t *trace_get_host_os(libtrace_packet_t *packet);
    3749 libtrace_meta_t *trace_get_interface_frame_check_sequence_length(libtrace_packet_t *packet);
    3750 libtrace_meta_t *trace_get_interface_hardware_description(libtrace_packet_t *packet);
    3751 libtrace_meta_t *trace_get_interface_comment(libtrace_packet_t *packet);
    3752 libtrace_meta_t *trace_get_capture_application(libtrace_packet_t *packet);
    3753 libtrace_meta_t *trace_get_section_option(libtrace_packet_t *packet, uint32_t section_code,
    3754         uint16_t option_code);
    3755 libtrace_meta_t *trace_get_section(libtrace_packet_t *packet, uint32_t section_code);
    3756 
    37573806#endif /* LIBTRACE_H_ */
Note: See TracChangeset for help on using the changeset viewer.