fixed new AmSipMsg header and removed key

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@587 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 827efeb1fc
commit 6a66a9507c

@ -8,7 +8,7 @@
#define _py_sems_libAmSipReply_h
#line 6 "AmSipReply.sip"
#include "../../../core/AmSipReply.h"
#include "../../../core/AmSipMsg.h"
#line 13 "sippy_sems_libAmSipReply.h"
#define sipClass_AmSipReply sipModuleAPI_py_sems_lib.em_types[10]

@ -70,41 +70,6 @@ static void *init_AmSipRequest(sipWrapper *,PyObject *sipArgs,sipWrapper **,int
return sipCpp;
}
extern "C" {static PyObject *var_AmSipRequest_key(PyObject *, PyObject *);}
static PyObject *var_AmSipRequest_key(PyObject *sipSelf,PyObject *sipPy)
{
int sipIsErr = 0;
int sipValState;
string *sipVal;
AmSipRequest *sipCpp = reinterpret_cast<AmSipRequest *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipRequest));
if (!sipCpp)
return NULL;
if (sipPy == NULL)
{
sipVal = &sipCpp->key;
sipPy = sipConvertFromMappedType(sipVal,sipMappedType_string,NULL);
return sipPy;
}
sipVal = reinterpret_cast<string *>(sipForceConvertToMappedType(sipPy,sipMappedType_string,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));
if (sipIsErr)
return NULL;
sipCpp->key = *sipVal;
sipReleaseMappedType(sipVal,sipMappedType_string,sipValState);
Py_INCREF(Py_None);
return Py_None;
}
extern "C" {static PyObject *var_AmSipRequest_next_hop(PyObject *, PyObject *);}
static PyObject *var_AmSipRequest_next_hop(PyObject *sipSelf,PyObject *sipPy)
{
@ -716,7 +681,6 @@ static PyObject *var_AmSipRequest_cmd(PyObject *sipSelf,PyObject *sipPy)
}
PyMethodDef variables_AmSipRequest[] = {
{sipNm_py_sems_lib_key, var_AmSipRequest_key, 0, NULL},
{sipNm_py_sems_lib_next_hop, var_AmSipRequest_next_hop, 0, NULL},
{sipNm_py_sems_lib_route, var_AmSipRequest_route, 0, NULL},
{sipNm_py_sems_lib_body, var_AmSipRequest_body, 0, NULL},

@ -8,7 +8,7 @@
#define _py_sems_libAmSipRequest_h
#line 6 "AmSipRequest.sip"
#include "../../../core/AmSipRequest.h"
#include "../../../core/AmSipMsg.h"
#line 13 "sippy_sems_libAmSipRequest.h"
#define sipClass_AmSipRequest sipModuleAPI_py_sems_lib.em_types[11]

Loading…
Cancel
Save