Navigation


Changeset 1423:67c263056d78 in freeDiameter for include


Ignore:
Timestamp:
Feb 19, 2020, 8:20:20 AM (4 years ago)
Author:
Luke Mewburn <luke@mewburn.net>
Branch:
default
Phase:
public
Message:

fd_msg_search_avp: search msg_or_avp, not just msg

Change fd_msg_search_avp() to support searching
struct msg or struct avp, and not just struct msg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1422 r1423  
    23672367 *
    23682368 * PARAMETERS:
    2369  *  msg         : The message structure in which to search the AVP.
     2369 *  reference   : Pointer to a valid msg or avp in which to search the AVP.
    23702370 *  what        : The dictionary model of the AVP to search.
    23712371 *  avp         : location where the AVP reference is stored if found.
    23722372 *
    23732373 * DESCRIPTION:
    2374  *   Search the first top-level AVP of a given model inside a message.
     2374 *   Search for the first top-level AVP of a given model inside a message or AVP.
    23752375 * Note: only the first instance of the AVP is returned by this function.
    23762376 * Note: only top-level AVPs are searched, not inside grouped AVPs.
     
    23822382 *  ENOENT      : No AVP has been found, and "avp" was NULL (otherwise, *avp is set to NULL and 0 returned).
    23832383 */
    2384 int fd_msg_search_avp ( struct msg * msg, struct dict_object * what, struct avp ** avp );
     2384int fd_msg_search_avp ( msg_or_avp * reference, struct dict_object * what, struct avp ** avp );
    23852385
    23862386/*
Note: See TracChangeset for help on using the changeset viewer.