Navigation


Changeset 1393:357e9cec520f in freeDiameter


Ignore:
Timestamp:
Nov 15, 2019, 7:29:15 PM (4 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

libfdproto: add fd_fifo_set_max

This function sets the maximum size for a FIFO.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1392 r1393  
    30333033
    30343034/*
     3035 * FUNCTION:    fd_fifo_set_max
     3036 *
     3037 * PARAMETERS:
     3038 *  queue       : The queue for which to set the maximum value
     3039 *  max         : max number of items in the queue.
     3040 *
     3041 * DESCRIPTION:
     3042 *  Modify the maximum number of entries in a queue
     3043 *
     3044 * RETURN VALUE :
     3045 *   0         : Success
     3046 */
     3047int fd_fifo_set_max ( struct fifo * queue, int max );
     3048
     3049/*
    30353050 * FUNCTION:    fd_fifo_del
    30363051 *
  • libfdproto/fifo.c

    r1385 r1393  
    118118}
    119119
     120int fd_fifo_set_max (struct fifo * queue, int max)
     121{
     122    queue->max = max;
     123    return 0;
     124}
     125
     126
    120127/* Dump the content of a queue */
    121128DECLARE_FD_DUMP_PROTOTYPE(fd_fifo_dump, char * name, struct fifo * queue, fd_fifo_dump_item_cb dump_item)
Note: See TracChangeset for help on using the changeset viewer.