mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-07 04:41:53 +00:00
update cpp wrapper
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8197 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -90,14 +90,34 @@ typedef enum {
|
||||
S_RDLOCK = (1 << 2)
|
||||
} session_flag_t;
|
||||
|
||||
#if 0
|
||||
class switchEvent {
|
||||
class Stream {
|
||||
protected:
|
||||
switch_stream_handle_t mystream;
|
||||
switch_stream_handle_t *stream_p;
|
||||
int mine;
|
||||
public:
|
||||
Stream(void);
|
||||
Stream(switch_stream_handle_t *);
|
||||
virtual ~Stream();
|
||||
void write(const char *data);
|
||||
const char *get_data(void);
|
||||
};
|
||||
|
||||
class Event {
|
||||
protected:
|
||||
switch_event_t *event;
|
||||
public:
|
||||
switchEvent(switch_event_types_t event_id, const char *subclass_name);
|
||||
Event(const char *type, const char *subclass_name = NULL);
|
||||
virtual ~Event();
|
||||
bool set_priority(switch_priority_t priority = SWITCH_PRIORITY_NORMAL);
|
||||
char *get_header(char *header_name);
|
||||
char *get_body(void);
|
||||
bool add_body(const char *value);
|
||||
bool add_header(const char *header_name, const char *value);
|
||||
bool del_header(const char *header_name);
|
||||
bool fire(void);
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
class CoreSession {
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user