add some methods

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12359 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-03-02 20:52:46 +00:00
parent 6955b86b53
commit 8777ec780e
12 changed files with 348 additions and 36 deletions
+21 -1
View File
@@ -2,7 +2,7 @@
#include <esl_oop.h>
#define connection_construct_common() memset(&handle, 0, sizeof(handle)); last_event_obj = NULL
#define event_construct_common() event = NULL; serialized_string = NULL; mine = 0
#define event_construct_common() event = NULL; serialized_string = NULL; mine = 0; hp = NULL
void eslSetLogLevel(int level)
{
@@ -264,6 +264,26 @@ ESLevent::~ESLevent()
}
}
const char *ESLevent::nextHeader(void)
{
const char *name = NULL;
if (hp) {
name = hp->name;
hp = hp->next;
}
return name;
}
const char *ESLevent::firstHeader(void)
{
if (event) {
hp = event->headers;
}
return nextHeader();
}
const char *ESLevent::serialize(const char *format)
{