Changeset b5cd711 for lib/fifo.h


Ignore:
Timestamp:
08/26/05 11:22:23 (15 years ago)
Author:
Shane Alcock <salcock@…>
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:
53f8305
Parents:
1974620
Message:

Changed all references to "fifo" to "tracefifo" with regards to function names and structures.
Fixes namespace conflicts with libfifo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/fifo.h

    ra79ddbe rb5cd711  
    3333#define _FIFO_H_
    3434
    35 struct fifo_t;
     35struct tracefifo_t;
    3636
    37 typedef struct fifo_state {
     37typedef struct tracefifo_state {
    3838        long long int in;
    3939        long long int out;
     
    4141        long long int length;
    4242        long long int used;
    43 } fifo_state_t;
     43} tracefifo_state_t;
    4444
    4545
    46 struct fifo_t *create_fifo(size_t size);
    47 void destroy_fifo(struct fifo_t *fifo);
     46struct tracefifo_t *create_tracefifo(size_t size);
     47void destroy_tracefifo(struct tracefifo_t *fifo);
    4848
    4949
    50 void fifo_stat(struct fifo_t *fifo, char *desc, int delta);
    51 char *fifo_stat_str(struct fifo_t *fifo, char *desc, int delta);
    52 void fifo_stat_int(struct fifo_t *fifo, fifo_state_t *state);
     50void tracefifo_stat(struct tracefifo_t *fifo, char *desc, int delta);
     51char *tracefifo_stat_str(struct tracefifo_t *fifo, char *desc, int delta);
     52void tracefifo_stat_int(struct tracefifo_t *fifo, tracefifo_state_t *state);
    5353
    54 size_t fifo_out_available(struct fifo_t *fifo);
    55 size_t fifo_ack_available(struct fifo_t *fifo);
    56 size_t fifo_free(struct fifo_t *fifo);
    57 size_t fifo_length(struct fifo_t *fifo);
     54size_t tracefifo_out_available(struct tracefifo_t *fifo);
     55size_t tracefifo_ack_available(struct tracefifo_t *fifo);
     56size_t tracefifo_free(struct tracefifo_t *fifo);
     57size_t tracefifo_length(struct tracefifo_t *fifo);
    5858
    59 int fifo_write(struct fifo_t *fifo, void *buffer, size_t len);
     59int tracefifo_write(struct tracefifo_t *fifo, void *buffer, size_t len);
    6060
    61 int fifo_out_read(struct fifo_t *fifo, void *buffer, size_t len);
    62 int fifo_ack_read(struct fifo_t *fifo, void *buffer, size_t len);
    63 int fifo_out_update(struct fifo_t *fifo, size_t len);
    64 int fifo_ack_update(struct fifo_t *fifo, size_t len);
     61int tracefifo_out_read(struct tracefifo_t *fifo, void *buffer, size_t len);
     62int tracefifo_ack_read(struct tracefifo_t *fifo, void *buffer, size_t len);
     63int tracefifo_out_update(struct tracefifo_t *fifo, size_t len);
     64int tracefifo_ack_update(struct tracefifo_t *fifo, size_t len);
    6565
    66 void fifo_out_reset(struct fifo_t *fifo);
     66void tracefifo_out_reset(struct tracefifo_t *fifo);
    6767
    68 void fifo_flush(struct fifo_t *fifo);
     68void tracefifo_flush(struct tracefifo_t *fifo);
    6969
    7070
Note: See TracChangeset for help on using the changeset viewer.