backend for session to session event trading

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1157 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-04-14 16:43:49 +00:00
parent 0ec4d10479
commit d5457f8eca
4 changed files with 74 additions and 1 deletions
+11
View File
@@ -83,6 +83,13 @@ struct switch_io_event_hook_receive_message {
struct switch_io_event_hook_receive_message *next;
};
/*! \brief Node in which to store custom receive message callback hooks */
struct switch_io_event_hook_queue_event {
/*! the answer channel callback hook*/
switch_queue_event_hook queue_event;
struct switch_io_event_hook_queue_event *next;
};
/*! \brief Node in which to store custom read frame channel callback hooks */
struct switch_io_event_hook_read_frame {
/*! the read frame channel callback hook*/
@@ -133,6 +140,8 @@ struct switch_io_event_hooks {
struct switch_io_event_hook_answer_channel *answer_channel;
/*! a list of receive message hooks */
struct switch_io_event_hook_receive_message *receive_message;
/*! a list of queue message hooks */
struct switch_io_event_hook_queue_event *queue_event;
/*! a list of read frame hooks */
struct switch_io_event_hook_read_frame *read_frame;
/*! a list of write frame hooks */
@@ -167,6 +176,8 @@ struct switch_io_routines {
switch_status (*send_dtmf)(switch_core_session *, char *);
/*! receive a message from another session*/
switch_status (*receive_message)(switch_core_session *, switch_core_session_message *);
/*! queue a message for another session*/
switch_status (*queue_event)(switch_core_session *, switch_event *);
};
/*! \brief Abstraction of an module endpoint interface