Navigation



Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r946 r950  
    11581158};
    11591159
     1160/****
     1161 Callbacks defined in libfdproto/dictionary_functions.c file -- see that file for usage.
     1162 */
     1163
     1164/* Convert an Address type AVP into a struct sockaddr_storage */
     1165int fd_dictfct_Address_encode(void * data, union avp_value * avp_value);
     1166int fd_dictfct_Address_interpret(union avp_value * avp_value, void * interpreted);
     1167char * fd_dictfct_Address_dump(union avp_value * avp_value);
     1168
     1169/* Display the content of an AVP of type UTF8String in the log file */
     1170char * fd_dictfct_UTF8String_dump(union avp_value * avp_value);
     1171
     1172/* For Time AVPs, map with time_t value directly */
     1173int fd_dictfct_Time_encode(void * data, union avp_value * avp_value);
     1174int fd_dictfct_Time_interpret(union avp_value * avp_value, void * interpreted);
     1175char * fd_dictfct_Time_dump(union avp_value * avp_value);
     1176
     1177
     1178
     1179/****/
    11601180
    11611181/***
     
    11881208 
    11891209*/
    1190          
     1210
    11911211/*
    11921212 ***************************************************************************
     
    17901810 *
    17911811 * RETURN VALUE:
    1792  *  0           : The session is created.
    1793  *  EINVAL      : A parameter is invalid.
    1794  *  EALREADY    : A session with the same name already exists (returned in *session)
     1812 *  0           : The session is created, the initial msg refcount is 1.
     1813 *  EINVAL      : A parameter is invalid.
     1814 *  EALREADY    : A session with the same name already exists (returned in *session), the msg refcount is increased.
    17951815 *  ENOMEM      : Not enough memory to complete the operation
    17961816 */
     
    24792499int fd_msg_sess_get(struct dictionary * dict, struct msg * msg, struct session ** session, int * isnew);
    24802500
     2501/* This one is used by the libfdcore, you should use fd_msg_new_session rather than fd_sess_new, when possible */
     2502int fd_msg_sess_set(struct msg * msg, struct session * session);
     2503
     2504
    24812505/***************************************/
    24822506/*   Manage AVP values                 */
Note: See TracChangeset for help on using the changeset viewer.