Moved stun_session from client to library

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1008 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2007-02-26 23:49:48 +00:00
parent 60116eb939
commit cf77042064
6 changed files with 12 additions and 11 deletions

View File

@ -161,6 +161,10 @@ SOURCE="..\src\pjlib-util\stun_server.c"
# End Source File
# Begin Source File
SOURCE="..\src\pjlib-util\stun_session.c"
# End Source File
# Begin Source File
SOURCE="..\src\pjlib-util\stun_simple.c"
# End Source File
# Begin Source File
@ -261,6 +265,10 @@ SOURCE="..\include\pjlib-util\stun_server.h"
# End Source File
# Begin Source File
SOURCE="..\include\pjlib-util\stun_session.h"
# End Source File
# Begin Source File
SOURCE="..\include\pjlib-util\stun_simple.h"
# End Source File
# Begin Source File

View File

@ -89,18 +89,10 @@ LINK32=link.exe
SOURCE="..\src\pjstun-client\client_main.c"
# End Source File
# Begin Source File
SOURCE="..\src\pjstun-client\stun_session.c"
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE="..\src\pjstun-client\stun_session.h"
# End Source File
# End Group
# Begin Group "Resource Files"

View File

@ -52,6 +52,7 @@
#include <pjlib-util/stun_endpoint.h>
#include <pjlib-util/stun_msg.h>
#include <pjlib-util/stun_server.h>
#include <pjlib-util/stun_session.h>
#include <pjlib-util/stun_transaction.h>
/* Old STUN */

View File

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "stun_session.h"
#include <pjlib-util/stun_session.h>
#include <pjlib.h>
struct pj_stun_session
@ -90,6 +90,7 @@ static pj_status_t tsx_add(pj_stun_session *sess,
static pj_status_t tsx_erase(pj_stun_session *sess,
pj_stun_tx_data *tdata)
{
PJ_UNUSED_ARG(sess);
pj_list_erase(tdata);
return PJ_SUCCESS;
}
@ -130,7 +131,7 @@ static pj_status_t create_tdata(pj_stun_session *sess,
tdata = PJ_POOL_ZALLOC_TYPE(pool, pj_stun_tx_data);
tdata->pool = pool;
tdata->sess = sess;
tdata->user_data = tdata;
tdata->user_data = user_data;
/* Create STUN message */
status = pj_stun_msg_create(pool, msg_type, PJ_STUN_MAGIC,

View File

@ -18,7 +18,6 @@
*/
#include <pjlib-util.h>
#include <pjlib.h>
#include "stun_session.h"
#include <conio.h>