[Freeswitch-svn] [commit] r8669 - in freeswitch/trunk/src: . include
Freeswitch SVN
mikej at freeswitch.org
Mon May 26 13:57:54 EDT 2008
Author: mikej
Date: Mon May 26 13:57:54 2008
New Revision: 8669
Modified:
freeswitch/trunk/src/include/switch_cpp.h
freeswitch/trunk/src/switch_cpp.cpp
Log:
tweak types
Modified: freeswitch/trunk/src/include/switch_cpp.h
==============================================================================
--- freeswitch/trunk/src/include/switch_cpp.h (original)
+++ freeswitch/trunk/src/include/switch_cpp.h Mon May 26 13:57:54 2008
@@ -99,8 +99,8 @@
public:
SWITCH_DECLARE_CONSTRUCTOR API(void);
virtual SWITCH_DECLARE_CONSTRUCTOR ~API();
- SWITCH_DECLARE(char *) execute(const char *command, const char *data);
- SWITCH_DECLARE(char *) executeString(const char *command);
+ SWITCH_DECLARE(const char *) execute(const char *command, const char *data);
+ SWITCH_DECLARE(const char *) executeString(const char *command);
};
@@ -144,7 +144,7 @@
virtual SWITCH_DECLARE_CONSTRUCTOR ~Event();
SWITCH_DECLARE(const char *)serialize(const char *format=NULL);
SWITCH_DECLARE(bool) setPriority(switch_priority_t priority = SWITCH_PRIORITY_NORMAL);
- SWITCH_DECLARE(char *)getHeader(char *header_name);
+ SWITCH_DECLARE(const char *)getHeader(char *header_name);
SWITCH_DECLARE(char *)getBody(void);
SWITCH_DECLARE(const char *)getType(void);
SWITCH_DECLARE(bool) addBody(const char *value);
Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp (original)
+++ freeswitch/trunk/src/switch_cpp.cpp Mon May 26 13:57:54 2008
@@ -104,7 +104,7 @@
}
-SWITCH_DECLARE(char *) API::execute(const char *cmd, const char *arg)
+SWITCH_DECLARE(const char *) API::execute(const char *cmd, const char *arg)
{
switch_stream_handle_t stream = { 0 };
this_check("");
@@ -114,7 +114,7 @@
return last_data;
}
-SWITCH_DECLARE(char *) API::executeString(const char *cmd)
+SWITCH_DECLARE(const char *) API::executeString(const char *cmd)
{
char *arg;
switch_stream_handle_t stream = { 0 };
@@ -238,7 +238,7 @@
return false;
}
-SWITCH_DECLARE(char *)Event::getHeader(char *header_name)
+SWITCH_DECLARE(const char *)Event::getHeader(char *header_name)
{
this_check("");
More information about the Freeswitch-svn
mailing list