Changeset 40ba6ad


Ignore:
Timestamp:
08/03/05 14:50:06 (15 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
7d69878
Parents:
dd22d84
Message:

trace_help() function, stub implementation in trace.c - calls all registered help() functions in format modules

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcap.c

    rdd22d84 r40ba6ad  
    258258
    259259static void pcap_help() {
     260        printf("pcap format module: $Id$\n");
     261        printf("Supported input URIs:\n");
     262        printf("\tpcap:/path/to/file\n");
     263        printf("\n");
     264        printf("\te.g.: pcap:/tmp/trace.pcap\n");
     265        printf("Supported output URIs:\n");
     266        printf("\tnone\n");
    260267}
    261268static void pcapint_help() {
     269        printf("pcapint format module: $Id$\n");
     270        printf("Supported input URIs:\n");
     271        printf("\tpcapint:interface\n");
     272        printf("\n");
     273        printf("\te.g.: pcapint:eth0\n");
     274        printf("Supported output URIs:\n");
     275        printf("\tnone\n");
    262276}
    263277static struct format_t pcap = {
  • lib/libtrace.h

    r91ebc50 r40ba6ad  
    187187
    188188
     189/** Prints help information for libtrace
     190 *
     191 * Function prints out some basic help information regarding libtrace,
     192 * and then prints out the help() function registered with each input module
     193 */
     194void trace_help();
    189195
    190196
  • lib/trace.c

    r91ebc50 r40ba6ad  
    173173        format_list[nformats] = f;
    174174        nformats++;
     175}
     176
     177/** Prints help information for libtrace
     178 *
     179 * Function prints out some basic help information regarding libtrace,
     180 * and then prints out the help() function registered with each input module
     181 */
     182void trace_help() {
     183        int i = 0;
     184        printf("libtrace .... \n");
     185        for (i = 0; i < nformats; i++) {
     186                if (format_list[i]->help) {
     187                        format_list[i]->help();
     188                }
     189        }
    175190}
    176191
Note: See TracChangeset for help on using the changeset viewer.