Ignore:
Timestamp:
03/25/15 14:22:27 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
f01c479
Parents:
e0be8382
Message:

Add const modifier to trace_get_first_packet

Plus some other doc fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_parallel.h

    r6b98325 ra330384  
    594594 *
    595595 * @param[in] trace The parallel input trace
    596  * @param[in] interval The interval in milliseconds. If 0 this is disabled [default].
     596 * @param[in] millisec The interval in milliseconds. If 0 this is disabled [default].
    597597 * @return 0 if successful otherwise -1
    598598 *
     
    606606 * @see MESSAGE_TICK_INTERVAL, trace_set_tick_count()
    607607 */
    608 DLLEXPORT int trace_set_tick_interval(libtrace_t *trace, size_t interval);
     608DLLEXPORT int trace_set_tick_interval(libtrace_t *trace, size_t millisec);
    609609
    610610/** Set the count between tick messages.
     
    10081008
    10091009/** TODO WHAT TO DO WITH THIS ? */
    1010 DLLEXPORT uint64_t tv_to_usec(struct timeval *tv);
     1010DLLEXPORT uint64_t tv_to_usec(const struct timeval *tv);
    10111011
    10121012
     
    10241024 * -1 is returned if an error occurs, such as supplied a invalid thread.
    10251025 *
    1026  * The packet returned by this function is shared by all threads and remains
    1027  * valid until MESSAGE_PAUSING is received.
     1026 * The packet and timeval returned by this function is shared by all threads
     1027 * and remain valid until MESSAGE_PAUSING is received.
    10281028 */
    10291029DLLEXPORT int trace_get_first_packet(libtrace_t *libtrace,
    10301030                                     libtrace_thread_t *t,
    1031                                      libtrace_packet_t **packet,
    1032                                      struct timeval **tv);
     1031                                     const libtrace_packet_t **packet,
     1032                                     const struct timeval **tv);
    10331033
    10341034/** Makes a packet safe, a packet will become invalid after a
     
    10921092 *
    10931093 * @note a environment variable interface is provided by default to users via
    1094  * LIBTRACE_CONFIG, see Parallel Configuration for more information.
     1094 * LIBTRACE_CONF, see Parallel Configuration for more information.
    10951095 *
    10961096 * @note this interface is provided to allow a user to configure an application
Note: See TracChangeset for help on using the changeset viewer.