Changeset 1088:1d1a20a0779d in freeDiameter for libfdproto/sessions.c
- Timestamp:
- May 5, 2013, 4:25:27 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/sessions.c
r1085 r1088 69 69 int eyec; /* An eye catcher also used to ensure the object is valid, must be SH_EYEC */ 70 70 int id; /* A unique integer to identify this handler */ 71 void (*cleanup)(s ession_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 */ 73 73 void *opaque; /* a value that is passed as is to the cleanup callback */ 74 74 }; … … 81 81 struct state { 82 82 int eyec; /* Must be SD_EYEC */ 83 s ession_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) */ 84 84 struct fd_list chain; /* Chaining in the list of session's states ordered by hdl->id */ 85 85 union { … … 274 274 275 275 /* 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 )276 int fd_sess_handler_create ( struct session_handler ** handler, void (*cleanup)(struct sess_state *, os0_t, void *), session_state_dump dumper, void * opaque ) 277 277 { 278 278 struct session_handler *new; … … 720 720 721 721 /* Save a state information with a session */ 722 int fd_sess_state_store _internal ( struct session_handler * handler, struct session * session, session_state ** state )722 int fd_sess_state_store ( struct session_handler * handler, struct session * session, struct sess_state ** state ) 723 723 { 724 724 struct state *new; … … 773 773 774 774 /* Get the data back */ 775 int fd_sess_state_retrieve _internal ( struct session_handler * handler, struct session * session, session_state ** state )775 int fd_sess_state_retrieve ( struct session_handler * handler, struct session * session, struct sess_state ** state ) 776 776 { 777 777 struct fd_list * li;
Note: See TracChangeset
for help on using the changeset viewer.