Changeset c37ab9f for lib/trace.c


Ignore:
Timestamp:
05/02/06 00:58:09 (16 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, 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:
998bee5
Parents:
ca2887e
Message:

More documentation, add some enum's documenting the convention for directions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    re6d963c rc37ab9f  
    10311031 * @param direction the new direction (0,1,2,3)
    10321032 * @returns a signed value containing the direction flag, or -1 if this is not supported
    1033  * @author Daniel Lawson
    1034  */
    1035 DLLEXPORT int8_t trace_set_direction(libtrace_packet_t *packet, int8_t direction) {
     1033 */
     1034DLLEXPORT libtrace_direction_t trace_set_direction(libtrace_packet_t *packet,
     1035                libtrace_direction_t direction)
     1036{
    10361037        assert(packet);
    10371038        assert(packet->size>0 && packet->size<65536);
     
    10511052 * @author Daniel Lawson
    10521053 */
    1053 DLLEXPORT int8_t trace_get_direction(const libtrace_packet_t *packet) {
     1054DLLEXPORT libtrace_direction_t trace_get_direction(const libtrace_packet_t *packet)
     1055{
    10541056        assert(packet);
    10551057        assert(packet->size>0 && packet->size<65536);
Note: See TracChangeset for help on using the changeset viewer.