Navigation


Changeset 1088:1d1a20a0779d in freeDiameter for libfdproto/sessions.c


Ignore:
Timestamp:
May 5, 2013, 4:25:27 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Second part of changeset 1083, now the code compiles again. Still missing some functions implementation, though

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/sessions.c

    r1085 r1088  
    6969        int               eyec; /* An eye catcher also used to ensure the object is valid, must be SH_EYEC */
    7070        int               id;   /* A unique integer to identify this handler */
    71         void            (*cleanup)(session_state *, os0_t, void *); /* The cleanup function to be called for cleaning a state */
    72         session_state_dump *state_dump; /* dumper function */
     71        void            (*cleanup)(struct sess_state *, os0_t, void *); /* The cleanup function to be called for cleaning a state */
     72        session_state_dump state_dump; /* dumper function */
    7373        void             *opaque; /* a value that is passed as is to the cleanup callback */
    7474};
     
    8181struct state {
    8282        int                      eyec;  /* Must be SD_EYEC */
    83         session_state           *state; /* The state registered by the application, never NULL (or the whole object is deleted) */
     83        struct sess_state       *state; /* The state registered by the application, never NULL (or the whole object is deleted) */
    8484        struct fd_list           chain; /* Chaining in the list of session's states ordered by hdl->id */
    8585        union {
     
    274274
    275275/* Create a new handler */
    276 int fd_sess_handler_create_internal ( struct session_handler ** handler, void (*cleanup)(session_state *, os0_t, void *), session_state_dump dumper, void * opaque )
     276int fd_sess_handler_create ( struct session_handler ** handler, void (*cleanup)(struct sess_state *, os0_t, void *), session_state_dump dumper, void * opaque )
    277277{
    278278        struct session_handler *new;
     
    720720
    721721/* Save a state information with a session */
    722 int fd_sess_state_store_internal ( struct session_handler * handler, struct session * session, session_state ** state )
     722int fd_sess_state_store ( struct session_handler * handler, struct session * session, struct sess_state ** state )
    723723{
    724724        struct state *new;
     
    773773
    774774/* Get the data back */
    775 int fd_sess_state_retrieve_internal ( struct session_handler * handler, struct session * session, session_state ** state )
     775int fd_sess_state_retrieve ( struct session_handler * handler, struct session * session, struct sess_state ** state )
    776776{
    777777        struct fd_list * li;
Note: See TracChangeset for help on using the changeset viewer.