Changeset f724640 for examples/skeleton
- Timestamp:
- 07/27/10 17:06:49 (10 years ago)
- 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:
- 6d3f99b
- Parents:
- d025ff7
- Location:
- examples/skeleton
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/skeleton/complete.c
r0f42351 rf724640 9 9 #include <getopt.h> 10 10 #include <stdlib.h> 11 #include <assert.h> 11 12 12 13 static void per_packet(libtrace_packet_t *packet) 13 14 { 15 assert(packet); 14 16 /* Your code goes here */ 15 17 } -
examples/skeleton/event.c
r0f42351 rf724640 51 51 static void per_packet(libtrace_packet_t *packet) { 52 52 53 assert(packet); 53 54 /* Your code goes here */ 54 55 } -
examples/skeleton/output.c
r0f42351 rf724640 7 7 #include "libtrace.h" 8 8 #include <stdio.h> 9 #include <assert.h> 9 10 10 11 static void per_packet(libtrace_packet_t *packet) 11 12 { 13 assert(packet); 12 14 /* Your code goes here */ 13 15 } -
examples/skeleton/trivial.c
r0f42351 rf724640 15 15 { 16 16 /* You really should consider using complete.c instead */ 17 assert(packet); 18 19 /* Your code goes here */ 17 20 18 /* Your code goes here */19 21 } 20 22
Note: See TracChangeset
for help on using the changeset viewer.