mirror of https://github.com/sipwise/sems.git
- fixed part of the memory leak in py_sems. Now, everything from the session object is release, except for the wrapper object itself.
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@235 8eb893ce-cfd4-0310-b710-fb5ebe64c474sayer/1.4-spce2.6
parent
1bebb118d9
commit
3fc680b93f
@ -1,145 +0,0 @@
|
||||
/*
|
||||
* Internal module API header file.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Fri Feb 9 10:28:23 2007
|
||||
*/
|
||||
|
||||
#ifndef _py_semsAPI_H
|
||||
#define _py_semsAPI_H
|
||||
|
||||
|
||||
#include <sip.h>
|
||||
|
||||
|
||||
/*
|
||||
* Convenient names to refer to the names of classes defined in this module.
|
||||
* These are part of the public API.
|
||||
*/
|
||||
|
||||
#define sipName_PySemsDialog sipNm_py_sems_PySemsDialog
|
||||
#define sipName_AmSipDialog sipNm_py_sems_AmSipDialog
|
||||
#define sipName_AmSipReply sipNm_py_sems_AmSipReply
|
||||
#define sipName_AmSipRequest sipNm_py_sems_AmSipRequest
|
||||
|
||||
|
||||
/* Convenient names to call the SIP API. */
|
||||
#define sipConvertFromSliceObject(o,len,start,stop,step,slen) PySlice_GetIndicesEx((PySliceObject *)(o),(len),(start),(stop),(step),(slen))
|
||||
#define sipIsSubClassInstance(o,wt) PyObject_TypeCheck((o),(PyTypeObject *)(wt))
|
||||
|
||||
#define sipMapStringToClass sipAPI_py_sems -> api_map_string_to_class
|
||||
#define sipMapIntToClass sipAPI_py_sems -> api_map_int_to_class
|
||||
#define sipMalloc sipAPI_py_sems -> api_malloc
|
||||
#define sipFree sipAPI_py_sems -> api_free
|
||||
#define sipBuildResult sipAPI_py_sems -> api_build_result
|
||||
#define sipCallMethod sipAPI_py_sems -> api_call_method
|
||||
#define sipParseResult sipAPI_py_sems -> api_parse_result
|
||||
#define sipParseArgs sipAPI_py_sems -> api_parse_args
|
||||
#define sipCommonCtor sipAPI_py_sems -> api_common_ctor
|
||||
#define sipCommonDtor sipAPI_py_sems -> api_common_dtor
|
||||
#define sipConvertFromSequenceIndex sipAPI_py_sems -> api_convert_from_sequence_index
|
||||
#define sipConvertFromVoidPtr sipAPI_py_sems -> api_convert_from_void_ptr
|
||||
#define sipConvertToCpp sipAPI_py_sems -> api_convert_to_cpp
|
||||
#define sipConvertToVoidPtr sipAPI_py_sems -> api_convert_to_void_ptr
|
||||
#define sipNoCtor sipAPI_py_sems -> api_no_ctor
|
||||
#define sipNoFunction sipAPI_py_sems -> api_no_function
|
||||
#define sipNoMethod sipAPI_py_sems -> api_no_method
|
||||
#define sipBadClass sipAPI_py_sems -> api_bad_class
|
||||
#define sipBadSetType sipAPI_py_sems -> api_bad_set_type
|
||||
#define sipBadCatcherResult sipAPI_py_sems -> api_bad_catcher_result
|
||||
#define sipTrace sipAPI_py_sems -> api_trace
|
||||
#define sipTransfer sipAPI_py_sems -> api_transfer
|
||||
#define sipGetWrapper sipAPI_py_sems -> api_get_wrapper
|
||||
#define sipGetCppPtr sipAPI_py_sems -> api_get_cpp_ptr
|
||||
#define sipGetComplexCppPtr sipAPI_py_sems -> api_get_complex_cpp_ptr
|
||||
#define sipIsPyMethod sipAPI_py_sems -> api_is_py_method
|
||||
#define sipMapCppToSelf sipAPI_py_sems -> api_map_cpp_to_self
|
||||
#define sipMapCppToSelfSubClass sipAPI_py_sems -> api_map_cpp_to_self_sub_class
|
||||
#define sipNewCppToSelf sipAPI_py_sems -> api_new_cpp_to_self
|
||||
#define sipNewCppToSelfSubClass sipAPI_py_sems -> api_new_cpp_to_self_sub_class
|
||||
#define sipCallHook sipAPI_py_sems -> api_call_hook
|
||||
#define sipStartThread sipAPI_py_sems -> api_start_thread
|
||||
#define sipEndThread sipAPI_py_sems -> api_end_thread
|
||||
#define sipEmitSignal sipAPI_py_sems -> api_emit_signal
|
||||
#define sipEmitToSlot sipAPI_py_sems -> api_emit_to_slot
|
||||
#define sipConnectRx sipAPI_py_sems -> api_connect_rx
|
||||
#define sipDisconnectRx sipAPI_py_sems -> api_disconnect_rx
|
||||
#define sipGetSender sipAPI_py_sems -> api_get_sender
|
||||
#define sipRaiseUnknownException sipAPI_py_sems -> api_raise_unknown_exception
|
||||
#define sipRaiseClassException sipAPI_py_sems -> api_raise_class_exception
|
||||
#define sipRaiseSubClassException sipAPI_py_sems -> api_raise_sub_class_exception
|
||||
#define sipBadLengthForSlice sipAPI_py_sems -> api_bad_length_for_slice
|
||||
#define sipClassName sipAPI_py_sems -> api_class_name
|
||||
#define sipAddClassInstance sipAPI_py_sems -> api_add_class_instance
|
||||
|
||||
|
||||
/* The strings used by this module. */
|
||||
extern char sipNm_py_sems_onOtherReply[];
|
||||
extern char sipNm_py_sems_onOtherBye[];
|
||||
extern char sipNm_py_sems_onDtmf[];
|
||||
extern char sipNm_py_sems_onCancel[];
|
||||
extern char sipNm_py_sems_onBye[];
|
||||
extern char sipNm_py_sems_onSessionStart[];
|
||||
extern char sipNm_py_sems_onInvite[];
|
||||
extern char sipNm_py_sems_setStopped[];
|
||||
extern char sipNm_py_sems_acceptAudio[];
|
||||
extern char sipNm_py_sems_dlg[];
|
||||
extern char sipNm_py_sems_PySemsDialog[];
|
||||
extern char sipNm_py_sems_reinvite[];
|
||||
extern char sipNm_py_sems_update[];
|
||||
extern char sipNm_py_sems_cancel[];
|
||||
extern char sipNm_py_sems_bye[];
|
||||
extern char sipNm_py_sems_sendRequest[];
|
||||
extern char sipNm_py_sems_reply[];
|
||||
extern char sipNm_py_sems_updateStatus[];
|
||||
extern char sipNm_py_sems_getContactHdr[];
|
||||
extern char sipNm_py_sems_getStatus[];
|
||||
extern char sipNm_py_sems_getUACTransPending[];
|
||||
extern char sipNm_py_sems_setRoute[];
|
||||
extern char sipNm_py_sems_getRoute[];
|
||||
extern char sipNm_py_sems_local_party[];
|
||||
extern char sipNm_py_sems_remote_party[];
|
||||
extern char sipNm_py_sems_contact_uri[];
|
||||
extern char sipNm_py_sems_remote_uri[];
|
||||
extern char sipNm_py_sems_local_uri[];
|
||||
extern char sipNm_py_sems_sip_port[];
|
||||
extern char sipNm_py_sems_sip_ip[];
|
||||
extern char sipNm_py_sems_Disconnecting[];
|
||||
extern char sipNm_py_sems_Connected[];
|
||||
extern char sipNm_py_sems_Pending[];
|
||||
extern char sipNm_py_sems_Disconnected[];
|
||||
extern char sipNm_py_sems_AmSipDialog[];
|
||||
extern char sipNm_py_sems_local_tag[];
|
||||
extern char sipNm_py_sems_remote_tag[];
|
||||
extern char sipNm_py_sems_next_request_uri[];
|
||||
extern char sipNm_py_sems_reason[];
|
||||
extern char sipNm_py_sems_code[];
|
||||
extern char sipNm_py_sems_AmSipReply[];
|
||||
extern char sipNm_py_sems_getHeader[];
|
||||
extern char sipNm_py_sems_key[];
|
||||
extern char sipNm_py_sems_next_hop[];
|
||||
extern char sipNm_py_sems_route[];
|
||||
extern char sipNm_py_sems_body[];
|
||||
extern char sipNm_py_sems_hdrs[];
|
||||
extern char sipNm_py_sems_cseq[];
|
||||
extern char sipNm_py_sems_to_tag[];
|
||||
extern char sipNm_py_sems_from_tag[];
|
||||
extern char sipNm_py_sems_callid[];
|
||||
extern char sipNm_py_sems_to[];
|
||||
extern char sipNm_py_sems_from[];
|
||||
extern char sipNm_py_sems_from_uri[];
|
||||
extern char sipNm_py_sems_r_uri[];
|
||||
extern char sipNm_py_sems_port[];
|
||||
extern char sipNm_py_sems_dstip[];
|
||||
extern char sipNm_py_sems_domain[];
|
||||
extern char sipNm_py_sems_user[];
|
||||
extern char sipNm_py_sems_method[];
|
||||
extern char sipNm_py_sems_cmd[];
|
||||
extern char sipNm_py_sems_AmSipRequest[];
|
||||
extern char sipNm_py_sems_string[];
|
||||
|
||||
|
||||
/* The SIP API, this module's API and the APIs of any imported modules. */
|
||||
extern const sipAPIDef *sipAPI_py_sems;
|
||||
extern sipExportedModuleDef sipModuleAPI_py_sems;
|
||||
|
||||
#endif
|
||||
@ -1,136 +1,163 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#include "sipAPIpy_sems_lib.h"
|
||||
#include "sippy_sems_libAmAudioEvent.h"
|
||||
|
||||
#include "sippy_sems_libAmEvent.h"
|
||||
|
||||
|
||||
sipAmAudioEvent::sipAmAudioEvent(int a0): AmAudioEvent(a0), sipPySelf(0)
|
||||
{
|
||||
sipCommonCtor(NULL,0);
|
||||
sipTrace(SIP_TRACE_CTORS,"sipAmAudioEvent::sipAmAudioEvent(int) (this=0x%08x)\n",this);
|
||||
|
||||
sipCommonCtor(NULL,0);
|
||||
}
|
||||
|
||||
sipAmAudioEvent::sipAmAudioEvent(const AmAudioEvent& a0): AmAudioEvent(a0), sipPySelf(0)
|
||||
{
|
||||
sipCommonCtor(NULL,0);
|
||||
sipTrace(SIP_TRACE_CTORS,"sipAmAudioEvent::sipAmAudioEvent(const AmAudioEvent&) (this=0x%08x)\n",this);
|
||||
|
||||
sipCommonCtor(NULL,0);
|
||||
}
|
||||
|
||||
sipAmAudioEvent::~sipAmAudioEvent()
|
||||
{
|
||||
sipCommonDtor(sipPySelf);
|
||||
sipTrace(SIP_TRACE_DTORS,"sipAmAudioEvent::~sipAmAudioEvent() (this=0x%08x)\n",this);
|
||||
|
||||
sipCommonDtor(sipPySelf);
|
||||
}
|
||||
|
||||
|
||||
/* Cast a pointer to a type somewhere in its superclass hierarchy. */
|
||||
extern "C" {static void *cast_AmAudioEvent(void *, sipWrapperType *);}
|
||||
static void *cast_AmAudioEvent(void *ptr,sipWrapperType *targetClass)
|
||||
{
|
||||
void *res;
|
||||
void *res;
|
||||
|
||||
if (targetClass == sipClass_AmAudioEvent)
|
||||
return ptr;
|
||||
if (targetClass == sipClass_AmAudioEvent)
|
||||
return ptr;
|
||||
|
||||
if ((res = sipCast_AmEvent((AmEvent *)(AmAudioEvent *)ptr,targetClass)) != NULL)
|
||||
return res;
|
||||
if ((res = sipCast_AmEvent((AmEvent *)(AmAudioEvent *)ptr,targetClass)) != NULL)
|
||||
return res;
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Call the instance's destructor. */
|
||||
extern "C" {static void release_AmAudioEvent(void *, int);}
|
||||
static void release_AmAudioEvent(void *ptr,int state)
|
||||
{
|
||||
if (state & SIP_DERIVED_CLASS)
|
||||
delete reinterpret_cast<sipAmAudioEvent *>(ptr);
|
||||
else
|
||||
delete reinterpret_cast<AmAudioEvent *>(ptr);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void dealloc_AmAudioEvent(sipWrapper *);}
|
||||
static void dealloc_AmAudioEvent(sipWrapper *sipSelf)
|
||||
{
|
||||
if (!sipIsSimple(sipSelf))
|
||||
reinterpret_cast<sipAmAudioEvent *>(sipSelf -> u.cppPtr) -> sipPySelf = NULL;
|
||||
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
if (!sipIsSimple(sipSelf))
|
||||
delete reinterpret_cast<sipAmAudioEvent *>(sipSelf -> u.cppPtr);
|
||||
else
|
||||
delete reinterpret_cast<AmAudioEvent *>(sipSelf -> u.cppPtr);
|
||||
}
|
||||
sipTrace(SIP_TRACE_DEALLOCS,"dealloc_AmAudioEvent()\n");
|
||||
|
||||
if (sipIsDerived(sipSelf))
|
||||
reinterpret_cast<sipAmAudioEvent *>(sipSelf->u.cppPtr)->sipPySelf = NULL;
|
||||
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
release_AmAudioEvent(sipSelf->u.cppPtr,sipSelf->flags);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void *init_AmAudioEvent(sipWrapper *sipSelf,PyObject *sipArgs,int *)
|
||||
extern "C" {static void *init_AmAudioEvent(sipWrapper *, PyObject *, sipWrapper **, int *);}
|
||||
static void *init_AmAudioEvent(sipWrapper *sipSelf,PyObject *sipArgs,sipWrapper **,int *sipArgsParsed)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipAmAudioEvent *sipCpp = 0;
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
int a0;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"i",&a0))
|
||||
{
|
||||
sipCpp = new sipAmAudioEvent(a0);
|
||||
}
|
||||
}
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
const AmAudioEvent * a0;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipClass_AmAudioEvent,&a0))
|
||||
{
|
||||
sipCpp = new sipAmAudioEvent(*a0);
|
||||
}
|
||||
}
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
sipNoCtor(sipArgsParsed,sipNm_py_sems_lib_AmAudioEvent);
|
||||
return 0;
|
||||
}
|
||||
|
||||
sipCpp -> sipPySelf = sipSelf;
|
||||
|
||||
return sipCpp;
|
||||
sipAmAudioEvent *sipCpp = 0;
|
||||
|
||||
sipTrace(SIP_TRACE_INITS,"init_AmAudioEvent()\n");
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
int a0;
|
||||
|
||||
if (sipParseArgs(sipArgsParsed,sipArgs,"i",&a0))
|
||||
{
|
||||
sipCpp = new sipAmAudioEvent(a0);
|
||||
}
|
||||
}
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
const AmAudioEvent * a0;
|
||||
|
||||
if (sipParseArgs(sipArgsParsed,sipArgs,"JA",sipClass_AmAudioEvent,&a0))
|
||||
{
|
||||
sipCpp = new sipAmAudioEvent(*a0);
|
||||
}
|
||||
}
|
||||
|
||||
if (sipCpp)
|
||||
sipCpp->sipPySelf = sipSelf;
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *forceConvertTo_AmAudioEvent(PyObject *, int *);}
|
||||
static void *forceConvertTo_AmAudioEvent(PyObject *valobj,int *iserrp)
|
||||
{
|
||||
if (*iserrp || valobj == NULL)
|
||||
return NULL;
|
||||
if (*iserrp || valobj == NULL)
|
||||
return NULL;
|
||||
|
||||
if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmAudioEvent))
|
||||
return sipConvertToCpp(valobj,sipClass_AmAudioEvent,iserrp);
|
||||
if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmAudioEvent))
|
||||
return sipConvertToCpp(valobj,sipClass_AmAudioEvent,iserrp);
|
||||
|
||||
sipBadClass(sipNm_py_sems_lib_AmAudioEvent);
|
||||
sipBadClass(sipNm_py_sems_lib_AmAudioEvent);
|
||||
|
||||
*iserrp = 1;
|
||||
*iserrp = 1;
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Define this type's super-types. */
|
||||
static sipSuperClassDef supers_AmAudioEvent[] = {{2, 255, 1}};
|
||||
static sipEncodedClassDef supers_AmAudioEvent[] = {{2, 255, 1}};
|
||||
|
||||
static sipEnumValueInstanceDef enums_AmAudioEvent[] = {
|
||||
{sipNm_py_sems_lib_cleared, AmAudioEvent::cleared},
|
||||
{sipNm_py_sems_lib_noAudio, AmAudioEvent::noAudio}
|
||||
static sipEnumMemberDef enummembers_AmAudioEvent[] = {
|
||||
{sipNm_py_sems_lib_cleared, AmAudioEvent::cleared, 1},
|
||||
{sipNm_py_sems_lib_noAudio, AmAudioEvent::noAudio, 1},
|
||||
};
|
||||
|
||||
|
||||
/* The main type data structure. */
|
||||
sipTypeDef sipType_AmAudioEvent = {
|
||||
0,
|
||||
"py_sems_lib.AmAudioEvent",
|
||||
-1,
|
||||
supers_AmAudioEvent,
|
||||
0,
|
||||
0, 0,
|
||||
2, enums_AmAudioEvent,
|
||||
0,
|
||||
init_AmAudioEvent,
|
||||
dealloc_AmAudioEvent,
|
||||
cast_AmAudioEvent,
|
||||
forceConvertTo_AmAudioEvent,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
{0, 0, 0, 0, 0, 0}
|
||||
sipTypeDef sipType_py_sems_lib_AmAudioEvent = {
|
||||
0,
|
||||
SIP_TYPE_SCC,
|
||||
"py_sems_lib.AmAudioEvent",
|
||||
0,
|
||||
{0, 0, 1},
|
||||
supers_AmAudioEvent,
|
||||
0,
|
||||
0, 0,
|
||||
2, enummembers_AmAudioEvent,
|
||||
0,
|
||||
init_AmAudioEvent,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
dealloc_AmAudioEvent,
|
||||
cast_AmAudioEvent,
|
||||
release_AmAudioEvent,
|
||||
forceConvertTo_AmAudioEvent,
|
||||
0,
|
||||
0,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
0
|
||||
};
|
||||
|
||||
@ -1,38 +1,38 @@
|
||||
/*
|
||||
* Interface header file.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#ifndef _py_sems_libAmAudioEvent_h
|
||||
#define _py_sems_libAmAudioEvent_h
|
||||
#define _py_sems_libAmAudioEvent_h
|
||||
|
||||
#line 29 "AmAudio.sip"
|
||||
#include "../../../core/AmAudio.h"
|
||||
#line 13 "sippy_sems_libAmAudioEvent.h"
|
||||
|
||||
#include "sippy_sems_libAmEvent.h"
|
||||
#define sipClass_AmAudioEvent sipModuleAPI_py_sems_lib.em_types[3]
|
||||
#define sipCast_AmAudioEvent sipType_py_sems_lib_AmAudioEvent.td_cast
|
||||
#define sipForceConvertTo_AmAudioEvent sipType_py_sems_lib_AmAudioEvent.td_fcto
|
||||
|
||||
#define sipEnum_AmAudioEvent_EventType sipModuleAPI_py_sems_lib.em_enums[1]
|
||||
|
||||
#define sipClass_AmAudioEvent sipModuleAPI_py_sems_lib.em_types[3]
|
||||
#define sipCast_AmAudioEvent sipType_AmAudioEvent.td_cast
|
||||
#define sipForceConvertTo_AmAudioEvent sipType_AmAudioEvent.td_fcto
|
||||
|
||||
extern sipTypeDef sipType_AmAudioEvent;
|
||||
extern sipTypeDef sipType_py_sems_lib_AmAudioEvent;
|
||||
|
||||
|
||||
class sipAmAudioEvent : public AmAudioEvent
|
||||
{
|
||||
public:
|
||||
sipAmAudioEvent(int);
|
||||
sipAmAudioEvent(const AmAudioEvent&);
|
||||
~sipAmAudioEvent();
|
||||
sipAmAudioEvent(int);
|
||||
sipAmAudioEvent(const AmAudioEvent&);
|
||||
~sipAmAudioEvent();
|
||||
|
||||
sipWrapper *sipPySelf;
|
||||
public:
|
||||
sipWrapper *sipPySelf;
|
||||
|
||||
private:
|
||||
sipAmAudioEvent(const sipAmAudioEvent &);
|
||||
sipAmAudioEvent &operator = (const sipAmAudioEvent &);
|
||||
sipAmAudioEvent(const sipAmAudioEvent &);
|
||||
sipAmAudioEvent &operator = (const sipAmAudioEvent &);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,255 +1,293 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#include "sipAPIpy_sems_lib.h"
|
||||
#include "sippy_sems_libAmAudioFile.h"
|
||||
|
||||
#include "sippy_sems_libAmAudioFile.h"
|
||||
#include "sippy_sems_libstring.h"
|
||||
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_AmAudioFile_getLoop(PyObject *, PyObject *);}
|
||||
static PyObject *meth_AmAudioFile_getLoop(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_getLoop()\n");
|
||||
|
||||
{
|
||||
AmAudioFile *sipCpp;
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"m",sipSelf,sipClass_AmAudioFile,&sipCpp))
|
||||
{
|
||||
bool sipRes = 0;
|
||||
{
|
||||
AmAudioFile *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmAudioFile,&sipCpp))
|
||||
{
|
||||
bool sipRes = 0;
|
||||
|
||||
#line 65 "AmAudio.sip"
|
||||
sipRes = sipCpp->loop.get();
|
||||
#line 25 "sippy_sems_libAmAudioFile.cpp"
|
||||
#line 32 "sippy_sems_libAmAudioFile.cpp"
|
||||
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
return PyBool_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_getLoop);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_getLoop);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_AmAudioFile_setLoop(PyObject *, PyObject *);}
|
||||
static PyObject *meth_AmAudioFile_setLoop(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_setLoop()\n");
|
||||
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
{
|
||||
bool a0;
|
||||
AmAudioFile *sipCpp;
|
||||
{
|
||||
bool a0;
|
||||
AmAudioFile *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mb",sipSelf,sipClass_AmAudioFile,&sipCpp,&a0))
|
||||
{
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipClass_AmAudioFile,&sipCpp,&a0))
|
||||
{
|
||||
#line 70 "AmAudio.sip"
|
||||
sipCpp->loop.set(a0);
|
||||
#line 50 "sippy_sems_libAmAudioFile.cpp"
|
||||
#line 60 "sippy_sems_libAmAudioFile.cpp"
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_setLoop);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_setLoop);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_AmAudioFile_open(PyObject *, PyObject *);}
|
||||
static PyObject *meth_AmAudioFile_open(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_open()\n");
|
||||
|
||||
{
|
||||
const string * a0;
|
||||
int a0IsTemp = 0;
|
||||
AmAudioFile::OpenMode a1 = AmAudioFile::Read;
|
||||
bool a2 = 0;
|
||||
AmAudioFile *sipCpp;
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mM1|eb",sipSelf,sipClass_AmAudioFile,&sipCpp,sipConvertTo_string,&a0,&a0IsTemp,&a1,&a2))
|
||||
{
|
||||
int sipRes;
|
||||
{
|
||||
const string * a0;
|
||||
int a0State = 0;
|
||||
AmAudioFile::OpenMode a1 = AmAudioFile::Read;
|
||||
bool a2 = 0;
|
||||
AmAudioFile *sipCpp;
|
||||
|
||||
sipRes = sipCpp -> AmAudioFile::open(*a0,a1,a2);
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"BM1|Eb",&sipSelf,sipClass_AmAudioFile,&sipCpp,sipMappedType_string,&a0,&a0State,sipEnum_AmAudioFile_OpenMode,&a1,&a2))
|
||||
{
|
||||
int sipRes;
|
||||
|
||||
if (a0IsTemp)
|
||||
delete const_cast<string *>(a0);
|
||||
sipRes = sipCpp->open(*a0,a1,a2);
|
||||
|
||||
return PyInt_FromLong((long)sipRes);
|
||||
}
|
||||
}
|
||||
sipReleaseMappedType(const_cast<string *>(a0),sipMappedType_string,a0State);
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_open);
|
||||
return PyInt_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_open);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_AmAudioFile_rewind(PyObject *, PyObject *);}
|
||||
static PyObject *meth_AmAudioFile_rewind(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_rewind()\n");
|
||||
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
{
|
||||
AmAudioFile *sipCpp;
|
||||
{
|
||||
AmAudioFile *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"m",sipSelf,sipClass_AmAudioFile,&sipCpp))
|
||||
{
|
||||
sipCpp -> AmAudioFile::rewind();
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmAudioFile,&sipCpp))
|
||||
{
|
||||
sipCpp->rewind();
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_rewind);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_rewind);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_AmAudioFile_close(PyObject *, PyObject *);}
|
||||
static PyObject *meth_AmAudioFile_close(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_close()\n");
|
||||
|
||||
{
|
||||
AmAudioFile *sipCpp;
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"m",sipSelf,sipClass_AmAudioFile,&sipCpp))
|
||||
{
|
||||
sipCpp -> AmAudioFile::close();
|
||||
{
|
||||
AmAudioFile *sipCpp;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmAudioFile,&sipCpp))
|
||||
{
|
||||
sipCpp->close();
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_close);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_close);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_AmAudioFile_getDataSize(PyObject *, PyObject *);}
|
||||
static PyObject *meth_AmAudioFile_getDataSize(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_AmAudioFile_getDataSize()\n");
|
||||
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
{
|
||||
AmAudioFile *sipCpp;
|
||||
{
|
||||
AmAudioFile *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"m",sipSelf,sipClass_AmAudioFile,&sipCpp))
|
||||
{
|
||||
int sipRes;
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_AmAudioFile,&sipCpp))
|
||||
{
|
||||
int sipRes;
|
||||
|
||||
sipRes = sipCpp -> AmAudioFile::getDataSize();
|
||||
sipRes = sipCpp->getDataSize();
|
||||
|
||||
return PyInt_FromLong((long)sipRes);
|
||||
}
|
||||
}
|
||||
return PyInt_FromLong(sipRes);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_getDataSize);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile,sipNm_py_sems_lib_getDataSize);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Cast a pointer to a type somewhere in its superclass hierarchy. */
|
||||
extern "C" {static void *cast_AmAudioFile(void *, sipWrapperType *);}
|
||||
static void *cast_AmAudioFile(void *ptr,sipWrapperType *targetClass)
|
||||
{
|
||||
if (targetClass == sipClass_AmAudioFile)
|
||||
return ptr;
|
||||
if (targetClass == sipClass_AmAudioFile)
|
||||
return ptr;
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Call the instance's destructor. */
|
||||
extern "C" {static void release_AmAudioFile(void *, int);}
|
||||
static void release_AmAudioFile(void *ptr,int)
|
||||
{
|
||||
delete reinterpret_cast<AmAudioFile *>(ptr);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void dealloc_AmAudioFile(sipWrapper *);}
|
||||
static void dealloc_AmAudioFile(sipWrapper *sipSelf)
|
||||
{
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
delete reinterpret_cast<AmAudioFile *>(sipSelf -> u.cppPtr);
|
||||
}
|
||||
sipTrace(SIP_TRACE_DEALLOCS,"dealloc_AmAudioFile()\n");
|
||||
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
release_AmAudioFile(sipSelf->u.cppPtr,0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void *init_AmAudioFile(sipWrapper *,PyObject *sipArgs,int *)
|
||||
extern "C" {static void *init_AmAudioFile(sipWrapper *, PyObject *, sipWrapper **, int *);}
|
||||
static void *init_AmAudioFile(sipWrapper *,PyObject *sipArgs,sipWrapper **,int *sipArgsParsed)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
AmAudioFile *sipCpp = 0;
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,""))
|
||||
{
|
||||
sipCpp = new AmAudioFile();
|
||||
}
|
||||
}
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
sipNoCtor(sipArgsParsed,sipNm_py_sems_lib_AmAudioFile);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
AmAudioFile *sipCpp = 0;
|
||||
|
||||
sipTrace(SIP_TRACE_INITS,"init_AmAudioFile()\n");
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
if (sipParseArgs(sipArgsParsed,sipArgs,""))
|
||||
{
|
||||
sipCpp = new AmAudioFile();
|
||||
}
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void *forceConvertTo_AmAudioFile(PyObject *, int *);}
|
||||
static void *forceConvertTo_AmAudioFile(PyObject *valobj,int *iserrp)
|
||||
{
|
||||
if (*iserrp || valobj == NULL)
|
||||
return NULL;
|
||||
if (*iserrp || valobj == NULL)
|
||||
return NULL;
|
||||
|
||||
if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmAudioFile))
|
||||
return sipConvertToCpp(valobj,sipClass_AmAudioFile,iserrp);
|
||||
if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmAudioFile))
|
||||
return sipConvertToCpp(valobj,sipClass_AmAudioFile,iserrp);
|
||||
|
||||
sipBadClass(sipNm_py_sems_lib_AmAudioFile);
|
||||
sipBadClass(sipNm_py_sems_lib_AmAudioFile);
|
||||
|
||||
*iserrp = 1;
|
||||
*iserrp = 1;
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyMethodDef methods_AmAudioFile[] = {
|
||||
{sipNm_py_sems_lib_close, meth_AmAudioFile_close, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_getDataSize, meth_AmAudioFile_getDataSize, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_getLoop, meth_AmAudioFile_getLoop, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_open, meth_AmAudioFile_open, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_rewind, meth_AmAudioFile_rewind, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setLoop, meth_AmAudioFile_setLoop, METH_VARARGS, NULL}
|
||||
{sipNm_py_sems_lib_close, meth_AmAudioFile_close, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_getDataSize, meth_AmAudioFile_getDataSize, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_getLoop, meth_AmAudioFile_getLoop, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_open, meth_AmAudioFile_open, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_rewind, meth_AmAudioFile_rewind, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setLoop, meth_AmAudioFile_setLoop, METH_VARARGS, NULL}
|
||||
};
|
||||
|
||||
static sipEnumValueInstanceDef enums_AmAudioFile[] = {
|
||||
{sipNm_py_sems_lib_Read, AmAudioFile::Read},
|
||||
{sipNm_py_sems_lib_Write, AmAudioFile::Write}
|
||||
static sipEnumMemberDef enummembers_AmAudioFile[] = {
|
||||
{sipNm_py_sems_lib_Read, AmAudioFile::Read, 0},
|
||||
{sipNm_py_sems_lib_Write, AmAudioFile::Write, 0},
|
||||
};
|
||||
|
||||
|
||||
/* The main type data structure. */
|
||||
sipTypeDef sipType_AmAudioFile = {
|
||||
0,
|
||||
"py_sems_lib.AmAudioFile",
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
6, methods_AmAudioFile,
|
||||
2, enums_AmAudioFile,
|
||||
0,
|
||||
init_AmAudioFile,
|
||||
dealloc_AmAudioFile,
|
||||
cast_AmAudioFile,
|
||||
forceConvertTo_AmAudioFile,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
{0, 0, 0, 0, 0, 0}
|
||||
sipTypeDef sipType_py_sems_lib_AmAudioFile = {
|
||||
0,
|
||||
0,
|
||||
"py_sems_lib.AmAudioFile",
|
||||
0,
|
||||
{0, 0, 1},
|
||||
0,
|
||||
0,
|
||||
6, methods_AmAudioFile,
|
||||
2, enummembers_AmAudioFile,
|
||||
0,
|
||||
init_AmAudioFile,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
dealloc_AmAudioFile,
|
||||
cast_AmAudioFile,
|
||||
release_AmAudioFile,
|
||||
forceConvertTo_AmAudioFile,
|
||||
0,
|
||||
0,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
0
|
||||
};
|
||||
|
||||
@ -1,23 +1,22 @@
|
||||
/*
|
||||
* Interface header file.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#ifndef _py_sems_libAmAudioFile_h
|
||||
#define _py_sems_libAmAudioFile_h
|
||||
#define _py_sems_libAmAudioFile_h
|
||||
|
||||
#line 51 "AmAudio.sip"
|
||||
#include "../../../core/AmAudio.h"
|
||||
#line 13 "sippy_sems_libAmAudioFile.h"
|
||||
|
||||
#include "sippy_sems_libstring.h"
|
||||
#define sipClass_AmAudioFile sipModuleAPI_py_sems_lib.em_types[1]
|
||||
#define sipCast_AmAudioFile sipType_py_sems_lib_AmAudioFile.td_cast
|
||||
#define sipForceConvertTo_AmAudioFile sipType_py_sems_lib_AmAudioFile.td_fcto
|
||||
|
||||
#define sipEnum_AmAudioFile_OpenMode sipModuleAPI_py_sems_lib.em_enums[0]
|
||||
|
||||
#define sipClass_AmAudioFile sipModuleAPI_py_sems_lib.em_types[1]
|
||||
#define sipCast_AmAudioFile sipType_AmAudioFile.td_cast
|
||||
#define sipForceConvertTo_AmAudioFile sipType_AmAudioFile.td_fcto
|
||||
|
||||
extern sipTypeDef sipType_AmAudioFile;
|
||||
extern sipTypeDef sipType_py_sems_lib_AmAudioFile;
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,36 +1,36 @@
|
||||
/*
|
||||
* Interface header file.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#ifndef _py_sems_libAmEvent_h
|
||||
#define _py_sems_libAmEvent_h
|
||||
#define _py_sems_libAmEvent_h
|
||||
|
||||
#line 5 "AmAudio.sip"
|
||||
#include "../../../core/AmEvent.h"
|
||||
#line 13 "sippy_sems_libAmEvent.h"
|
||||
|
||||
#define sipClass_AmEvent sipModuleAPI_py_sems_lib.em_types[2]
|
||||
#define sipCast_AmEvent sipType_py_sems_lib_AmEvent.td_cast
|
||||
#define sipForceConvertTo_AmEvent sipType_py_sems_lib_AmEvent.td_fcto
|
||||
|
||||
#define sipClass_AmEvent sipModuleAPI_py_sems_lib.em_types[2]
|
||||
#define sipCast_AmEvent sipType_AmEvent.td_cast
|
||||
#define sipForceConvertTo_AmEvent sipType_AmEvent.td_fcto
|
||||
|
||||
extern sipTypeDef sipType_AmEvent;
|
||||
extern sipTypeDef sipType_py_sems_lib_AmEvent;
|
||||
|
||||
|
||||
class sipAmEvent : public AmEvent
|
||||
{
|
||||
public:
|
||||
sipAmEvent(int);
|
||||
sipAmEvent(const AmEvent&);
|
||||
~sipAmEvent();
|
||||
sipAmEvent(int);
|
||||
sipAmEvent(const AmEvent&);
|
||||
~sipAmEvent();
|
||||
|
||||
sipWrapper *sipPySelf;
|
||||
public:
|
||||
sipWrapper *sipPySelf;
|
||||
|
||||
private:
|
||||
sipAmEvent(const sipAmEvent &);
|
||||
sipAmEvent &operator = (const sipAmEvent &);
|
||||
sipAmEvent(const sipAmEvent &);
|
||||
sipAmEvent &operator = (const sipAmEvent &);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,25 +1,22 @@
|
||||
/*
|
||||
* Interface header file.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#ifndef _py_sems_libAmSipDialog_h
|
||||
#define _py_sems_libAmSipDialog_h
|
||||
#define _py_sems_libAmSipDialog_h
|
||||
|
||||
#line 6 "AmSipDialog.sip"
|
||||
#include "../../../core/AmSipDialog.h"
|
||||
#line 13 "sippy_sems_libAmSipDialog.h"
|
||||
|
||||
#include "sippy_sems_libstring.h"
|
||||
#include "sippy_sems_libAmSipRequest.h"
|
||||
#include "sippy_sems_libAmSipReply.h"
|
||||
#define sipClass_AmSipDialog sipModuleAPI_py_sems_lib.em_types[4]
|
||||
#define sipCast_AmSipDialog sipType_py_sems_lib_AmSipDialog.td_cast
|
||||
#define sipForceConvertTo_AmSipDialog sipType_py_sems_lib_AmSipDialog.td_fcto
|
||||
|
||||
#define sipEnum_AmSipDialog_Status sipModuleAPI_py_sems_lib.em_enums[2]
|
||||
|
||||
#define sipClass_AmSipDialog sipModuleAPI_py_sems_lib.em_types[4]
|
||||
#define sipCast_AmSipDialog sipType_AmSipDialog.td_cast
|
||||
#define sipForceConvertTo_AmSipDialog sipType_AmSipDialog.td_fcto
|
||||
|
||||
extern sipTypeDef sipType_AmSipDialog;
|
||||
extern sipTypeDef sipType_py_sems_lib_AmSipDialog;
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,439 +1,469 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#include "sipAPIpy_sems_lib.h"
|
||||
#include "sippy_sems_libAmSipReply.h"
|
||||
|
||||
#include "sippy_sems_libstring.h"
|
||||
|
||||
|
||||
|
||||
/* Cast a pointer to a type somewhere in its superclass hierarchy. */
|
||||
extern "C" {static void *cast_AmSipReply(void *, sipWrapperType *);}
|
||||
static void *cast_AmSipReply(void *ptr,sipWrapperType *targetClass)
|
||||
{
|
||||
if (targetClass == sipClass_AmSipReply)
|
||||
return ptr;
|
||||
if (targetClass == sipClass_AmSipReply)
|
||||
return ptr;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
return NULL;
|
||||
/* Call the instance's destructor. */
|
||||
extern "C" {static void release_AmSipReply(void *, int);}
|
||||
static void release_AmSipReply(void *ptr,int)
|
||||
{
|
||||
delete reinterpret_cast<AmSipReply *>(ptr);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void dealloc_AmSipReply(sipWrapper *);}
|
||||
static void dealloc_AmSipReply(sipWrapper *sipSelf)
|
||||
{
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
delete reinterpret_cast<AmSipReply *>(sipSelf -> u.cppPtr);
|
||||
}
|
||||
sipTrace(SIP_TRACE_DEALLOCS,"dealloc_AmSipReply()\n");
|
||||
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
release_AmSipReply(sipSelf->u.cppPtr,0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void *init_AmSipReply(sipWrapper *,PyObject *sipArgs,int *)
|
||||
extern "C" {static void *init_AmSipReply(sipWrapper *, PyObject *, sipWrapper **, int *);}
|
||||
static void *init_AmSipReply(sipWrapper *,PyObject *sipArgs,sipWrapper **,int *sipArgsParsed)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
AmSipReply *sipCpp = 0;
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,""))
|
||||
{
|
||||
sipCpp = new AmSipReply();
|
||||
}
|
||||
}
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
const AmSipReply * a0;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"J1",sipClass_AmSipReply,&a0))
|
||||
{
|
||||
sipCpp = new AmSipReply(*a0);
|
||||
}
|
||||
}
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
sipNoCtor(sipArgsParsed,sipNm_py_sems_lib_AmSipReply);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
AmSipReply *sipCpp = 0;
|
||||
|
||||
sipTrace(SIP_TRACE_INITS,"init_AmSipReply()\n");
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
if (sipParseArgs(sipArgsParsed,sipArgs,""))
|
||||
{
|
||||
sipCpp = new AmSipReply();
|
||||
}
|
||||
}
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
const AmSipReply * a0;
|
||||
|
||||
if (sipParseArgs(sipArgsParsed,sipArgs,"JA",sipClass_AmSipReply,&a0))
|
||||
{
|
||||
sipCpp = new AmSipReply(*a0);
|
||||
}
|
||||
}
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_cseq(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_cseq(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_cseq(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
unsigned val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
unsigned sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = sipCpp -> cseq;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = sipCpp->cseq;
|
||||
|
||||
valobj = PyInt_FromLong((long)val);
|
||||
sipPy = PyLong_FromUnsignedLong(sipVal);
|
||||
|
||||
return valobj;
|
||||
}
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
val = (unsigned)PyInt_AsLong(valobj);
|
||||
sipVal = (unsigned)sipLong_AsUnsignedLong(sipPy);
|
||||
|
||||
if (PyErr_Occurred() != NULL)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_cseq);
|
||||
return NULL;
|
||||
}
|
||||
if (PyErr_Occurred() != NULL)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_cseq);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sipCpp -> cseq = val;
|
||||
sipCpp->cseq = sipVal;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_local_tag(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_local_tag(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_local_tag(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
int iserr = 0;
|
||||
string *val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
int sipIsErr = 0;
|
||||
int sipValState;
|
||||
string *sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = &sipCpp->local_tag;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = &sipCpp -> local_tag;
|
||||
sipPy = sipConvertFromMappedType(sipVal,sipMappedType_string,NULL);
|
||||
|
||||
valobj = sipConvertFrom_string(val);
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
return valobj;
|
||||
}
|
||||
sipVal = reinterpret_cast<string *>(sipForceConvertToMappedType(sipPy,sipMappedType_string,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));
|
||||
|
||||
val = reinterpret_cast<string *>(sipForceConvertTo_string(valobj,&iserr));
|
||||
if (sipIsErr)
|
||||
return NULL;
|
||||
|
||||
if (iserr)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_local_tag);
|
||||
return NULL;
|
||||
}
|
||||
sipCpp->local_tag = *sipVal;
|
||||
|
||||
sipCpp -> local_tag = *val;
|
||||
sipReleaseMappedType(sipVal,sipMappedType_string,sipValState);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_remote_tag(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_remote_tag(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_remote_tag(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
int iserr = 0;
|
||||
string *val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
int sipIsErr = 0;
|
||||
int sipValState;
|
||||
string *sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = &sipCpp -> remote_tag;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = &sipCpp->remote_tag;
|
||||
|
||||
valobj = sipConvertFrom_string(val);
|
||||
sipPy = sipConvertFromMappedType(sipVal,sipMappedType_string,NULL);
|
||||
|
||||
return valobj;
|
||||
}
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
val = reinterpret_cast<string *>(sipForceConvertTo_string(valobj,&iserr));
|
||||
sipVal = reinterpret_cast<string *>(sipForceConvertToMappedType(sipPy,sipMappedType_string,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));
|
||||
|
||||
if (iserr)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_remote_tag);
|
||||
return NULL;
|
||||
}
|
||||
if (sipIsErr)
|
||||
return NULL;
|
||||
|
||||
sipCpp -> remote_tag = *val;
|
||||
sipCpp->remote_tag = *sipVal;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
sipReleaseMappedType(sipVal,sipMappedType_string,sipValState);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_body(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_body(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_body(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
int iserr = 0;
|
||||
string *val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
int sipIsErr = 0;
|
||||
int sipValState;
|
||||
string *sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = &sipCpp->body;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = &sipCpp -> body;
|
||||
sipPy = sipConvertFromMappedType(sipVal,sipMappedType_string,NULL);
|
||||
|
||||
valobj = sipConvertFrom_string(val);
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
return valobj;
|
||||
}
|
||||
sipVal = reinterpret_cast<string *>(sipForceConvertToMappedType(sipPy,sipMappedType_string,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));
|
||||
|
||||
val = reinterpret_cast<string *>(sipForceConvertTo_string(valobj,&iserr));
|
||||
if (sipIsErr)
|
||||
return NULL;
|
||||
|
||||
if (iserr)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_body);
|
||||
return NULL;
|
||||
}
|
||||
sipCpp->body = *sipVal;
|
||||
|
||||
sipCpp -> body = *val;
|
||||
sipReleaseMappedType(sipVal,sipMappedType_string,sipValState);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_hdrs(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_hdrs(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_hdrs(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
int iserr = 0;
|
||||
string *val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
int sipIsErr = 0;
|
||||
int sipValState;
|
||||
string *sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = &sipCpp -> hdrs;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = &sipCpp->hdrs;
|
||||
|
||||
valobj = sipConvertFrom_string(val);
|
||||
sipPy = sipConvertFromMappedType(sipVal,sipMappedType_string,NULL);
|
||||
|
||||
return valobj;
|
||||
}
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
val = reinterpret_cast<string *>(sipForceConvertTo_string(valobj,&iserr));
|
||||
sipVal = reinterpret_cast<string *>(sipForceConvertToMappedType(sipPy,sipMappedType_string,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));
|
||||
|
||||
if (iserr)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_hdrs);
|
||||
return NULL;
|
||||
}
|
||||
if (sipIsErr)
|
||||
return NULL;
|
||||
|
||||
sipCpp -> hdrs = *val;
|
||||
sipCpp->hdrs = *sipVal;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
sipReleaseMappedType(sipVal,sipMappedType_string,sipValState);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_route(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_route(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_route(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
int iserr = 0;
|
||||
string *val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
int sipIsErr = 0;
|
||||
int sipValState;
|
||||
string *sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = &sipCpp->route;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = &sipCpp -> route;
|
||||
sipPy = sipConvertFromMappedType(sipVal,sipMappedType_string,NULL);
|
||||
|
||||
valobj = sipConvertFrom_string(val);
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
return valobj;
|
||||
}
|
||||
sipVal = reinterpret_cast<string *>(sipForceConvertToMappedType(sipPy,sipMappedType_string,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));
|
||||
|
||||
val = reinterpret_cast<string *>(sipForceConvertTo_string(valobj,&iserr));
|
||||
if (sipIsErr)
|
||||
return NULL;
|
||||
|
||||
if (iserr)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_route);
|
||||
return NULL;
|
||||
}
|
||||
sipCpp->route = *sipVal;
|
||||
|
||||
sipCpp -> route = *val;
|
||||
sipReleaseMappedType(sipVal,sipMappedType_string,sipValState);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_next_hop(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_next_hop(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_next_hop(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
int iserr = 0;
|
||||
string *val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
int sipIsErr = 0;
|
||||
int sipValState;
|
||||
string *sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = &sipCpp->next_hop;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = &sipCpp -> next_hop;
|
||||
sipPy = sipConvertFromMappedType(sipVal,sipMappedType_string,NULL);
|
||||
|
||||
valobj = sipConvertFrom_string(val);
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
return valobj;
|
||||
}
|
||||
sipVal = reinterpret_cast<string *>(sipForceConvertToMappedType(sipPy,sipMappedType_string,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));
|
||||
|
||||
val = reinterpret_cast<string *>(sipForceConvertTo_string(valobj,&iserr));
|
||||
if (sipIsErr)
|
||||
return NULL;
|
||||
|
||||
if (iserr)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_next_hop);
|
||||
return NULL;
|
||||
}
|
||||
sipCpp->next_hop = *sipVal;
|
||||
|
||||
sipCpp -> next_hop = *val;
|
||||
sipReleaseMappedType(sipVal,sipMappedType_string,sipValState);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_next_request_uri(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_next_request_uri(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_next_request_uri(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
int iserr = 0;
|
||||
string *val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
int sipIsErr = 0;
|
||||
int sipValState;
|
||||
string *sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = &sipCpp -> next_request_uri;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = &sipCpp->next_request_uri;
|
||||
|
||||
valobj = sipConvertFrom_string(val);
|
||||
sipPy = sipConvertFromMappedType(sipVal,sipMappedType_string,NULL);
|
||||
|
||||
return valobj;
|
||||
}
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
val = reinterpret_cast<string *>(sipForceConvertTo_string(valobj,&iserr));
|
||||
sipVal = reinterpret_cast<string *>(sipForceConvertToMappedType(sipPy,sipMappedType_string,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));
|
||||
|
||||
if (iserr)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_next_request_uri);
|
||||
return NULL;
|
||||
}
|
||||
if (sipIsErr)
|
||||
return NULL;
|
||||
|
||||
sipCpp -> next_request_uri = *val;
|
||||
sipCpp->next_request_uri = *sipVal;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
sipReleaseMappedType(sipVal,sipMappedType_string,sipValState);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_reason(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_reason(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_reason(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
int iserr = 0;
|
||||
string *val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
int sipIsErr = 0;
|
||||
int sipValState;
|
||||
string *sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = &sipCpp->reason;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = &sipCpp -> reason;
|
||||
sipPy = sipConvertFromMappedType(sipVal,sipMappedType_string,NULL);
|
||||
|
||||
valobj = sipConvertFrom_string(val);
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
return valobj;
|
||||
}
|
||||
sipVal = reinterpret_cast<string *>(sipForceConvertToMappedType(sipPy,sipMappedType_string,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));
|
||||
|
||||
val = reinterpret_cast<string *>(sipForceConvertTo_string(valobj,&iserr));
|
||||
if (sipIsErr)
|
||||
return NULL;
|
||||
|
||||
if (iserr)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_reason);
|
||||
return NULL;
|
||||
}
|
||||
sipCpp->reason = *sipVal;
|
||||
|
||||
sipCpp -> reason = *val;
|
||||
sipReleaseMappedType(sipVal,sipMappedType_string,sipValState);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_AmSipReply_code(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_AmSipReply_code(PyObject *, PyObject *);}
|
||||
static PyObject *var_AmSipReply_code(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
unsigned val;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
unsigned sipVal;
|
||||
AmSipReply *sipCpp = reinterpret_cast<AmSipReply *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_AmSipReply));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = sipCpp -> code;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = sipCpp->code;
|
||||
|
||||
valobj = PyInt_FromLong((long)val);
|
||||
sipPy = PyLong_FromUnsignedLong(sipVal);
|
||||
|
||||
return valobj;
|
||||
}
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
val = (unsigned)PyInt_AsLong(valobj);
|
||||
sipVal = (unsigned)sipLong_AsUnsignedLong(sipPy);
|
||||
|
||||
if (PyErr_Occurred() != NULL)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_code);
|
||||
return NULL;
|
||||
}
|
||||
if (PyErr_Occurred() != NULL)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_AmSipReply,sipNm_py_sems_lib_code);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sipCpp -> code = val;
|
||||
sipCpp->code = sipVal;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
PyMethodDef variables_AmSipReply[] = {
|
||||
{sipNm_py_sems_lib_cseq, var_AmSipReply_cseq, 0, NULL},
|
||||
{sipNm_py_sems_lib_local_tag, var_AmSipReply_local_tag, 0, NULL},
|
||||
{sipNm_py_sems_lib_remote_tag, var_AmSipReply_remote_tag, 0, NULL},
|
||||
{sipNm_py_sems_lib_body, var_AmSipReply_body, 0, NULL},
|
||||
{sipNm_py_sems_lib_hdrs, var_AmSipReply_hdrs, 0, NULL},
|
||||
{sipNm_py_sems_lib_route, var_AmSipReply_route, 0, NULL},
|
||||
{sipNm_py_sems_lib_next_hop, var_AmSipReply_next_hop, 0, NULL},
|
||||
{sipNm_py_sems_lib_next_request_uri, var_AmSipReply_next_request_uri, 0, NULL},
|
||||
{sipNm_py_sems_lib_reason, var_AmSipReply_reason, 0, NULL},
|
||||
{sipNm_py_sems_lib_code, var_AmSipReply_code, 0, NULL},
|
||||
{0, 0, 0, 0}
|
||||
{sipNm_py_sems_lib_cseq, var_AmSipReply_cseq, 0, NULL},
|
||||
{sipNm_py_sems_lib_local_tag, var_AmSipReply_local_tag, 0, NULL},
|
||||
{sipNm_py_sems_lib_remote_tag, var_AmSipReply_remote_tag, 0, NULL},
|
||||
{sipNm_py_sems_lib_body, var_AmSipReply_body, 0, NULL},
|
||||
{sipNm_py_sems_lib_hdrs, var_AmSipReply_hdrs, 0, NULL},
|
||||
{sipNm_py_sems_lib_route, var_AmSipReply_route, 0, NULL},
|
||||
{sipNm_py_sems_lib_next_hop, var_AmSipReply_next_hop, 0, NULL},
|
||||
{sipNm_py_sems_lib_next_request_uri, var_AmSipReply_next_request_uri, 0, NULL},
|
||||
{sipNm_py_sems_lib_reason, var_AmSipReply_reason, 0, NULL},
|
||||
{sipNm_py_sems_lib_code, var_AmSipReply_code, 0, NULL},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
|
||||
extern "C" {static void *forceConvertTo_AmSipReply(PyObject *, int *);}
|
||||
static void *forceConvertTo_AmSipReply(PyObject *valobj,int *iserrp)
|
||||
{
|
||||
if (*iserrp || valobj == NULL)
|
||||
return NULL;
|
||||
if (*iserrp || valobj == NULL)
|
||||
return NULL;
|
||||
|
||||
if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmSipReply))
|
||||
return sipConvertToCpp(valobj,sipClass_AmSipReply,iserrp);
|
||||
if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_AmSipReply))
|
||||
return sipConvertToCpp(valobj,sipClass_AmSipReply,iserrp);
|
||||
|
||||
sipBadClass(sipNm_py_sems_lib_AmSipReply);
|
||||
sipBadClass(sipNm_py_sems_lib_AmSipReply);
|
||||
|
||||
*iserrp = 1;
|
||||
*iserrp = 1;
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* The main type data structure. */
|
||||
sipTypeDef sipType_AmSipReply = {
|
||||
0,
|
||||
"py_sems_lib.AmSipReply",
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
0, 0,
|
||||
0, 0,
|
||||
variables_AmSipReply,
|
||||
init_AmSipReply,
|
||||
dealloc_AmSipReply,
|
||||
cast_AmSipReply,
|
||||
forceConvertTo_AmSipReply,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
{0, 0, 0, 0, 0, 0}
|
||||
sipTypeDef sipType_py_sems_lib_AmSipReply = {
|
||||
0,
|
||||
0,
|
||||
"py_sems_lib.AmSipReply",
|
||||
0,
|
||||
{0, 0, 1},
|
||||
0,
|
||||
0,
|
||||
0, 0,
|
||||
0, 0,
|
||||
variables_AmSipReply,
|
||||
init_AmSipReply,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
dealloc_AmSipReply,
|
||||
cast_AmSipReply,
|
||||
release_AmSipReply,
|
||||
forceConvertTo_AmSipReply,
|
||||
0,
|
||||
0,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
0
|
||||
};
|
||||
|
||||
@ -1,23 +1,20 @@
|
||||
/*
|
||||
* Interface header file.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#ifndef _py_sems_libAmSipReply_h
|
||||
#define _py_sems_libAmSipReply_h
|
||||
#define _py_sems_libAmSipReply_h
|
||||
|
||||
#line 6 "AmSipReply.sip"
|
||||
#include "../../../core/AmSipReply.h"
|
||||
#line 13 "sippy_sems_libAmSipReply.h"
|
||||
|
||||
#include "sippy_sems_libstring.h"
|
||||
#define sipClass_AmSipReply sipModuleAPI_py_sems_lib.em_types[5]
|
||||
#define sipCast_AmSipReply sipType_py_sems_lib_AmSipReply.td_cast
|
||||
#define sipForceConvertTo_AmSipReply sipType_py_sems_lib_AmSipReply.td_fcto
|
||||
|
||||
|
||||
#define sipClass_AmSipReply sipModuleAPI_py_sems_lib.em_types[5]
|
||||
#define sipCast_AmSipReply sipType_AmSipReply.td_cast
|
||||
#define sipForceConvertTo_AmSipReply sipType_AmSipReply.td_fcto
|
||||
|
||||
extern sipTypeDef sipType_AmSipReply;
|
||||
extern sipTypeDef sipType_py_sems_lib_AmSipReply;
|
||||
|
||||
#endif
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,23 +1,20 @@
|
||||
/*
|
||||
* Interface header file.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#ifndef _py_sems_libAmSipRequest_h
|
||||
#define _py_sems_libAmSipRequest_h
|
||||
#define _py_sems_libAmSipRequest_h
|
||||
|
||||
#line 6 "AmSipRequest.sip"
|
||||
#include "../../../core/AmSipRequest.h"
|
||||
#line 13 "sippy_sems_libAmSipRequest.h"
|
||||
|
||||
#include "sippy_sems_libstring.h"
|
||||
#define sipClass_AmSipRequest sipModuleAPI_py_sems_lib.em_types[6]
|
||||
#define sipCast_AmSipRequest sipType_py_sems_lib_AmSipRequest.td_cast
|
||||
#define sipForceConvertTo_AmSipRequest sipType_py_sems_lib_AmSipRequest.td_fcto
|
||||
|
||||
|
||||
#define sipClass_AmSipRequest sipModuleAPI_py_sems_lib.em_types[6]
|
||||
#define sipCast_AmSipRequest sipType_AmSipRequest.td_cast
|
||||
#define sipForceConvertTo_AmSipRequest sipType_AmSipRequest.td_fcto
|
||||
|
||||
extern sipTypeDef sipType_AmSipRequest;
|
||||
extern sipTypeDef sipType_py_sems_lib_AmSipRequest;
|
||||
|
||||
#endif
|
||||
|
||||
@ -1,542 +1,622 @@
|
||||
/*
|
||||
* Interface wrapper code.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#include "sipAPIpy_sems_lib.h"
|
||||
#include "sippy_sems_libPySemsDialog.h"
|
||||
|
||||
#include "sippy_sems_libAmSipDialog.h"
|
||||
#include "sippy_sems_libPySemsDialog.h"
|
||||
#include "sippy_sems_libAmEvent.h"
|
||||
#include "sippy_sems_libAmAudioFile.h"
|
||||
#include "sippy_sems_libAmSipRequest.h"
|
||||
#include "sippy_sems_libstring.h"
|
||||
|
||||
|
||||
sipPySemsDialog::sipPySemsDialog(): PySemsDialog(), sipPySelf(0)
|
||||
{
|
||||
sipCommonCtor(sipPyMethods,6);
|
||||
sipTrace(SIP_TRACE_CTORS,"sipPySemsDialog::sipPySemsDialog() (this=0x%08x)\n",this);
|
||||
|
||||
sipCommonCtor(sipPyMethods,6);
|
||||
}
|
||||
|
||||
sipPySemsDialog::~sipPySemsDialog()
|
||||
{
|
||||
sipCommonDtor(sipPySelf);
|
||||
sipTrace(SIP_TRACE_DTORS,"sipPySemsDialog::~sipPySemsDialog() (this=0x%08x)\n",this);
|
||||
|
||||
sipCommonDtor(sipPySelf);
|
||||
}
|
||||
|
||||
void sipPySemsDialog::onInvite(const AmSipRequest& a0)
|
||||
{
|
||||
extern void sipVH_py_sems_lib_2(sip_gilstate_t,PyObject *,const AmSipRequest&);
|
||||
sipTrace(SIP_TRACE_CATCHERS,"void sipPySemsDialog::onInvite(const AmSipRequest&) (this=0x%08x)\n",this);
|
||||
|
||||
extern void sipVH_py_sems_lib_2(sip_gilstate_t,PyObject *,const AmSipRequest&);
|
||||
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipNm_py_sems_lib_onInvite);
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipNm_py_sems_lib_onInvite);
|
||||
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onInvite(a0);
|
||||
return;
|
||||
}
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onInvite(a0);
|
||||
return;
|
||||
}
|
||||
|
||||
sipVH_py_sems_lib_2(sipGILState,meth,a0);
|
||||
sipVH_py_sems_lib_2(sipGILState,meth,a0);
|
||||
}
|
||||
|
||||
void sipPySemsDialog::onSessionStart(const AmSipRequest& a0)
|
||||
{
|
||||
extern void sipVH_py_sems_lib_2(sip_gilstate_t,PyObject *,const AmSipRequest&);
|
||||
sipTrace(SIP_TRACE_CATCHERS,"void sipPySemsDialog::onSessionStart(const AmSipRequest&) (this=0x%08x)\n",this);
|
||||
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
extern void sipVH_py_sems_lib_2(sip_gilstate_t,PyObject *,const AmSipRequest&);
|
||||
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipNm_py_sems_lib_onSessionStart);
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onSessionStart(a0);
|
||||
return;
|
||||
}
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipNm_py_sems_lib_onSessionStart);
|
||||
|
||||
sipVH_py_sems_lib_2(sipGILState,meth,a0);
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onSessionStart(a0);
|
||||
return;
|
||||
}
|
||||
|
||||
sipVH_py_sems_lib_2(sipGILState,meth,a0);
|
||||
}
|
||||
|
||||
void sipPySemsDialog::onCancel()
|
||||
{
|
||||
extern void sipVH_py_sems_lib_3(sip_gilstate_t,PyObject *);
|
||||
sipTrace(SIP_TRACE_CATCHERS,"void sipPySemsDialog::onCancel() (this=0x%08x)\n",this);
|
||||
|
||||
extern void sipVH_py_sems_lib_3(sip_gilstate_t,PyObject *);
|
||||
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipNm_py_sems_lib_onCancel);
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipNm_py_sems_lib_onCancel);
|
||||
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onCancel();
|
||||
return;
|
||||
}
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onCancel();
|
||||
return;
|
||||
}
|
||||
|
||||
sipVH_py_sems_lib_3(sipGILState,meth);
|
||||
sipVH_py_sems_lib_3(sipGILState,meth);
|
||||
}
|
||||
|
||||
void sipPySemsDialog::onBye(const AmSipRequest& a0)
|
||||
{
|
||||
extern void sipVH_py_sems_lib_2(sip_gilstate_t,PyObject *,const AmSipRequest&);
|
||||
sipTrace(SIP_TRACE_CATCHERS,"void sipPySemsDialog::onBye(const AmSipRequest&) (this=0x%08x)\n",this);
|
||||
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
extern void sipVH_py_sems_lib_2(sip_gilstate_t,PyObject *,const AmSipRequest&);
|
||||
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipNm_py_sems_lib_onBye);
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onBye(a0);
|
||||
return;
|
||||
}
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipNm_py_sems_lib_onBye);
|
||||
|
||||
sipVH_py_sems_lib_2(sipGILState,meth,a0);
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onBye(a0);
|
||||
return;
|
||||
}
|
||||
|
||||
sipVH_py_sems_lib_2(sipGILState,meth,a0);
|
||||
}
|
||||
|
||||
void sipPySemsDialog::onDtmf(int a0,int a1)
|
||||
{
|
||||
extern void sipVH_py_sems_lib_1(sip_gilstate_t,PyObject *,int,int);
|
||||
sipTrace(SIP_TRACE_CATCHERS,"void sipPySemsDialog::onDtmf(int,int) (this=0x%08x)\n",this);
|
||||
|
||||
extern void sipVH_py_sems_lib_1(sip_gilstate_t,PyObject *,int,int);
|
||||
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipNm_py_sems_lib_onDtmf);
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipNm_py_sems_lib_onDtmf);
|
||||
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onDtmf(a0,a1);
|
||||
return;
|
||||
}
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::onDtmf(a0,a1);
|
||||
return;
|
||||
}
|
||||
|
||||
sipVH_py_sems_lib_1(sipGILState,meth,a0,a1);
|
||||
sipVH_py_sems_lib_1(sipGILState,meth,a0,a1);
|
||||
}
|
||||
|
||||
void sipPySemsDialog::process(AmEvent *a0)
|
||||
{
|
||||
extern void sipVH_py_sems_lib_0(sip_gilstate_t,PyObject *,AmEvent *);
|
||||
sipTrace(SIP_TRACE_CATCHERS,"void sipPySemsDialog::process(AmEvent *) (this=0x%08x)\n",this);
|
||||
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
extern void sipVH_py_sems_lib_0(sip_gilstate_t,PyObject *,AmEvent *);
|
||||
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipNm_py_sems_lib_process);
|
||||
sip_gilstate_t sipGILState;
|
||||
PyObject *meth;
|
||||
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::process(a0);
|
||||
return;
|
||||
}
|
||||
meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipNm_py_sems_lib_process);
|
||||
|
||||
sipVH_py_sems_lib_0(sipGILState,meth,a0);
|
||||
if (!meth)
|
||||
{
|
||||
PySemsDialog::process(a0);
|
||||
return;
|
||||
}
|
||||
|
||||
sipVH_py_sems_lib_0(sipGILState,meth,a0);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_acceptAudio(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_acceptAudio(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_acceptAudio()\n");
|
||||
|
||||
{
|
||||
const string * a0;
|
||||
int a0IsTemp = 0;
|
||||
const string * a1;
|
||||
int a1IsTemp = 0;
|
||||
string * a2;
|
||||
PySemsDialog *sipCpp;
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mM1M1",sipSelf,sipClass_PySemsDialog,&sipCpp,sipConvertTo_string,&a0,&a0IsTemp,sipConvertTo_string,&a1,&a1IsTemp))
|
||||
{
|
||||
int sipRes;
|
||||
a2 = new string();
|
||||
{
|
||||
const string * a0;
|
||||
int a0State = 0;
|
||||
const string * a1;
|
||||
int a1State = 0;
|
||||
string * a2;
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
sipRes = sipCpp -> PySemsDialog::acceptAudio(*a0,*a1,a2);
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"BM1M1",&sipSelf,sipClass_PySemsDialog,&sipCpp,sipMappedType_string,&a0,&a0State,sipMappedType_string,&a1,&a1State))
|
||||
{
|
||||
int sipRes;
|
||||
a2 = new string();
|
||||
|
||||
if (a0IsTemp)
|
||||
delete const_cast<string *>(a0);
|
||||
sipRes = sipCpp->acceptAudio(*a0,*a1,a2);
|
||||
|
||||
if (a1IsTemp)
|
||||
delete const_cast<string *>(a1);
|
||||
sipReleaseMappedType(const_cast<string *>(a0),sipMappedType_string,a0State);
|
||||
sipReleaseMappedType(const_cast<string *>(a1),sipMappedType_string,a1State);
|
||||
|
||||
return sipBuildResult(0,"(iT)",sipRes,a2,sipConvertFrom_string);
|
||||
}
|
||||
}
|
||||
return sipBuildResult(0,"(iD)",sipRes,a2,sipMappedType_string,NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_acceptAudio);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_acceptAudio);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_setStopped(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_setStopped(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_setStopped()\n");
|
||||
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
{
|
||||
PySemsDialog *sipCpp;
|
||||
{
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"m",sipSelf,sipClass_PySemsDialog,&sipCpp))
|
||||
{
|
||||
sipCpp -> PySemsDialog::setStopped();
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_PySemsDialog,&sipCpp))
|
||||
{
|
||||
sipCpp->setStopped();
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_setStopped);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_setStopped);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_onInvite(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_onInvite(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_onInvite()\n");
|
||||
|
||||
{
|
||||
const AmSipRequest * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
int sipArgsParsed = 0;
|
||||
bool sipSelfWasArg = !sipSelf;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mJ1",sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmSipRequest,&a0))
|
||||
{
|
||||
sipCpp -> PySemsDialog::onInvite(*a0);
|
||||
{
|
||||
const AmSipRequest * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"BJA",&sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmSipRequest,&a0))
|
||||
{
|
||||
(sipSelfWasArg ? sipCpp->PySemsDialog::onInvite(*a0) : sipCpp->onInvite(*a0));
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onInvite);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onInvite);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_onSessionStart(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_onSessionStart(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_onSessionStart()\n");
|
||||
|
||||
int sipArgsParsed = 0;
|
||||
bool sipSelfWasArg = !sipSelf;
|
||||
|
||||
{
|
||||
const AmSipRequest * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
{
|
||||
const AmSipRequest * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mJ1",sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmSipRequest,&a0))
|
||||
{
|
||||
sipCpp -> PySemsDialog::onSessionStart(*a0);
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"BJA",&sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmSipRequest,&a0))
|
||||
{
|
||||
(sipSelfWasArg ? sipCpp->PySemsDialog::onSessionStart(*a0) : sipCpp->onSessionStart(*a0));
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onSessionStart);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onSessionStart);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_onCancel(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_onCancel(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_onCancel()\n");
|
||||
|
||||
{
|
||||
PySemsDialog *sipCpp;
|
||||
int sipArgsParsed = 0;
|
||||
bool sipSelfWasArg = !sipSelf;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"m",sipSelf,sipClass_PySemsDialog,&sipCpp))
|
||||
{
|
||||
sipCpp -> PySemsDialog::onCancel();
|
||||
{
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipClass_PySemsDialog,&sipCpp))
|
||||
{
|
||||
(sipSelfWasArg ? sipCpp->PySemsDialog::onCancel() : sipCpp->onCancel());
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onCancel);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onCancel);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_onBye(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_onBye(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_onBye()\n");
|
||||
|
||||
int sipArgsParsed = 0;
|
||||
bool sipSelfWasArg = !sipSelf;
|
||||
|
||||
{
|
||||
const AmSipRequest * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
{
|
||||
const AmSipRequest * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mJ1",sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmSipRequest,&a0))
|
||||
{
|
||||
sipCpp -> PySemsDialog::onBye(*a0);
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"BJA",&sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmSipRequest,&a0))
|
||||
{
|
||||
(sipSelfWasArg ? sipCpp->PySemsDialog::onBye(*a0) : sipCpp->onBye(*a0));
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onBye);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onBye);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_onDtmf(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_onDtmf(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_onDtmf()\n");
|
||||
|
||||
{
|
||||
int a0;
|
||||
int a1;
|
||||
PySemsDialog *sipCpp;
|
||||
int sipArgsParsed = 0;
|
||||
bool sipSelfWasArg = !sipSelf;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mii",sipSelf,sipClass_PySemsDialog,&sipCpp,&a0,&a1))
|
||||
{
|
||||
sipCpp -> PySemsDialog::onDtmf(a0,a1);
|
||||
{
|
||||
int a0;
|
||||
int a1;
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"Bii",&sipSelf,sipClass_PySemsDialog,&sipCpp,&a0,&a1))
|
||||
{
|
||||
(sipSelfWasArg ? sipCpp->PySemsDialog::onDtmf(a0,a1) : sipCpp->onDtmf(a0,a1));
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onDtmf);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_onDtmf);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_setInput(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_setInput(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_setInput()\n");
|
||||
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
{
|
||||
AmAudioFile * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
{
|
||||
AmAudioFile * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mJ0",sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmAudioFile,&a0))
|
||||
{
|
||||
sipCpp -> PySemsDialog::setInput(a0);
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ@",&sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmAudioFile,&a0))
|
||||
{
|
||||
sipCpp->setInput(a0);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_setInput);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_setInput);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_setOutput(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_setOutput(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_setOutput()\n");
|
||||
|
||||
{
|
||||
AmAudioFile * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mJ0",sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmAudioFile,&a0))
|
||||
{
|
||||
sipCpp -> PySemsDialog::setOutput(a0);
|
||||
{
|
||||
AmAudioFile * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ@",&sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmAudioFile,&a0))
|
||||
{
|
||||
sipCpp->setOutput(a0);
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_setOutput);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_setOutput);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_setInOut(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_setInOut(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_setInOut()\n");
|
||||
|
||||
int sipArgsParsed = 0;
|
||||
|
||||
{
|
||||
AmAudioFile * a0;
|
||||
AmAudioFile * a1;
|
||||
PySemsDialog *sipCpp;
|
||||
{
|
||||
AmAudioFile * a0;
|
||||
AmAudioFile * a1;
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mJ0J0",sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmAudioFile,&a0,sipClass_AmAudioFile,&a1))
|
||||
{
|
||||
sipCpp -> PySemsDialog::setInOut(a0,a1);
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ@J@",&sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmAudioFile,&a0,sipClass_AmAudioFile,&a1))
|
||||
{
|
||||
sipCpp->setInOut(a0,a1);
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_setInOut);
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_setInOut);
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static PyObject *meth_PySemsDialog_process(PyObject *, PyObject *);}
|
||||
static PyObject *meth_PySemsDialog_process(PyObject *sipSelf,PyObject *sipArgs)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipTrace(SIP_TRACE_METHODS,"meth_PySemsDialog_process()\n");
|
||||
|
||||
{
|
||||
AmEvent * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
int sipArgsParsed = 0;
|
||||
bool sipSelfWasArg = !sipSelf;
|
||||
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"mJ0",sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmEvent,&a0))
|
||||
{
|
||||
sipCpp -> PySemsDialog::process(a0);
|
||||
{
|
||||
AmEvent * a0;
|
||||
PySemsDialog *sipCpp;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ@",&sipSelf,sipClass_PySemsDialog,&sipCpp,sipClass_AmEvent,&a0))
|
||||
{
|
||||
(sipSelfWasArg ? sipCpp->PySemsDialog::process(a0) : sipCpp->process(a0));
|
||||
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_process);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
/* Raise an exception if the arguments couldn't be parsed. */
|
||||
sipNoMethod(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_process);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* Cast a pointer to a type somewhere in its superclass hierarchy. */
|
||||
extern "C" {static void *cast_PySemsDialog(void *, sipWrapperType *);}
|
||||
static void *cast_PySemsDialog(void *ptr,sipWrapperType *targetClass)
|
||||
{
|
||||
if (targetClass == sipClass_PySemsDialog)
|
||||
return ptr;
|
||||
if (targetClass == sipClass_PySemsDialog)
|
||||
return ptr;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
return NULL;
|
||||
/* Call the instance's destructor. */
|
||||
extern "C" {static void release_PySemsDialog(void *, int);}
|
||||
static void release_PySemsDialog(void *ptr,int state)
|
||||
{
|
||||
if (state & SIP_DERIVED_CLASS)
|
||||
delete reinterpret_cast<sipPySemsDialog *>(ptr);
|
||||
else
|
||||
delete reinterpret_cast<PySemsDialog *>(ptr);
|
||||
}
|
||||
|
||||
|
||||
extern "C" {static void dealloc_PySemsDialog(sipWrapper *);}
|
||||
static void dealloc_PySemsDialog(sipWrapper *sipSelf)
|
||||
{
|
||||
if (!sipIsSimple(sipSelf))
|
||||
reinterpret_cast<sipPySemsDialog *>(sipSelf -> u.cppPtr) -> sipPySelf = NULL;
|
||||
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
if (!sipIsSimple(sipSelf))
|
||||
delete reinterpret_cast<sipPySemsDialog *>(sipSelf -> u.cppPtr);
|
||||
else
|
||||
delete reinterpret_cast<PySemsDialog *>(sipSelf -> u.cppPtr);
|
||||
}
|
||||
sipTrace(SIP_TRACE_DEALLOCS,"dealloc_PySemsDialog()\n");
|
||||
|
||||
if (sipIsDerived(sipSelf))
|
||||
reinterpret_cast<sipPySemsDialog *>(sipSelf->u.cppPtr)->sipPySelf = NULL;
|
||||
|
||||
if (sipIsPyOwned(sipSelf))
|
||||
{
|
||||
#line 17 "PySemsDialog.sip"
|
||||
fprintf(stderr,"------------- dealloc_PySemsDialog ----------\n");
|
||||
#line 500 "sippy_sems_libPySemsDialog.cpp"
|
||||
|
||||
release_PySemsDialog(sipSelf->u.cppPtr,sipSelf->flags);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void *init_PySemsDialog(sipWrapper *sipSelf,PyObject *sipArgs,int *)
|
||||
extern "C" {static void *init_PySemsDialog(sipWrapper *, PyObject *, sipWrapper **, int *);}
|
||||
static void *init_PySemsDialog(sipWrapper *sipSelf,PyObject *sipArgs,sipWrapper **,int *sipArgsParsed)
|
||||
{
|
||||
int sipArgsParsed = 0;
|
||||
sipPySemsDialog *sipCpp = 0;
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
if (sipParseArgs(&sipArgsParsed,sipArgs,""))
|
||||
{
|
||||
sipCpp = new sipPySemsDialog();
|
||||
}
|
||||
}
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
sipNoCtor(sipArgsParsed,sipNm_py_sems_lib_PySemsDialog);
|
||||
return 0;
|
||||
}
|
||||
|
||||
sipCpp -> sipPySelf = sipSelf;
|
||||
|
||||
return sipCpp;
|
||||
sipPySemsDialog *sipCpp = 0;
|
||||
|
||||
sipTrace(SIP_TRACE_INITS,"init_PySemsDialog()\n");
|
||||
|
||||
if (!sipCpp)
|
||||
{
|
||||
if (sipParseArgs(sipArgsParsed,sipArgs,""))
|
||||
{
|
||||
sipCpp = new sipPySemsDialog();
|
||||
}
|
||||
}
|
||||
|
||||
if (sipCpp)
|
||||
sipCpp->sipPySelf = sipSelf;
|
||||
|
||||
return sipCpp;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *var_PySemsDialog_dlg(PyObject *sipSelf,PyObject *valobj)
|
||||
extern "C" {static PyObject *var_PySemsDialog_dlg(PyObject *, PyObject *);}
|
||||
static PyObject *var_PySemsDialog_dlg(PyObject *sipSelf,PyObject *sipPy)
|
||||
{
|
||||
int iserr = 0;
|
||||
AmSipDialog *val;
|
||||
PySemsDialog *sipCpp = reinterpret_cast<PySemsDialog *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_PySemsDialog));
|
||||
int sipIsErr = 0;
|
||||
AmSipDialog *sipVal;
|
||||
PySemsDialog *sipCpp = reinterpret_cast<PySemsDialog *>(sipGetCppPtr((sipWrapper *)sipSelf,sipClass_PySemsDialog));
|
||||
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
if (!sipCpp)
|
||||
return NULL;
|
||||
|
||||
if (valobj == NULL)
|
||||
{
|
||||
val = &sipCpp -> dlg;
|
||||
if (sipPy == NULL)
|
||||
{
|
||||
sipVal = &sipCpp->dlg;
|
||||
|
||||
valobj = sipMapCppToSelf(val,sipClass_AmSipDialog);
|
||||
sipPy = sipConvertFromInstance(sipVal,sipClass_AmSipDialog,NULL);
|
||||
|
||||
return valobj;
|
||||
}
|
||||
return sipPy;
|
||||
}
|
||||
|
||||
val = reinterpret_cast<AmSipDialog *>(sipForceConvertTo_AmSipDialog(valobj,&iserr));
|
||||
sipVal = reinterpret_cast<AmSipDialog *>(sipForceConvertToInstance(sipPy,sipClass_AmSipDialog,NULL,SIP_NOT_NONE,NULL,&sipIsErr));
|
||||
|
||||
if (iserr)
|
||||
{
|
||||
sipBadSetType(sipNm_py_sems_lib_PySemsDialog,sipNm_py_sems_lib_dlg);
|
||||
return NULL;
|
||||
}
|
||||
if (sipIsErr)
|
||||
return NULL;
|
||||
|
||||
sipCpp -> dlg = *val;
|
||||
sipCpp->dlg = *sipVal;
|
||||
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
PyMethodDef variables_PySemsDialog[] = {
|
||||
{sipNm_py_sems_lib_dlg, var_PySemsDialog_dlg, 0, NULL},
|
||||
{0, 0, 0, 0}
|
||||
{sipNm_py_sems_lib_dlg, var_PySemsDialog_dlg, 0, NULL},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
|
||||
extern "C" {static void *forceConvertTo_PySemsDialog(PyObject *, int *);}
|
||||
static void *forceConvertTo_PySemsDialog(PyObject *valobj,int *iserrp)
|
||||
{
|
||||
if (*iserrp || valobj == NULL)
|
||||
return NULL;
|
||||
if (*iserrp || valobj == NULL)
|
||||
return NULL;
|
||||
|
||||
if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_PySemsDialog))
|
||||
return sipConvertToCpp(valobj,sipClass_PySemsDialog,iserrp);
|
||||
if (valobj == Py_None || sipIsSubClassInstance(valobj,sipClass_PySemsDialog))
|
||||
return sipConvertToCpp(valobj,sipClass_PySemsDialog,iserrp);
|
||||
|
||||
sipBadClass(sipNm_py_sems_lib_PySemsDialog);
|
||||
sipBadClass(sipNm_py_sems_lib_PySemsDialog);
|
||||
|
||||
*iserrp = 1;
|
||||
*iserrp = 1;
|
||||
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyMethodDef methods_PySemsDialog[] = {
|
||||
{sipNm_py_sems_lib_acceptAudio, meth_PySemsDialog_acceptAudio, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onBye, meth_PySemsDialog_onBye, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onCancel, meth_PySemsDialog_onCancel, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onDtmf, meth_PySemsDialog_onDtmf, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onInvite, meth_PySemsDialog_onInvite, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onSessionStart, meth_PySemsDialog_onSessionStart, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_process, meth_PySemsDialog_process, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setInOut, meth_PySemsDialog_setInOut, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setInput, meth_PySemsDialog_setInput, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setOutput, meth_PySemsDialog_setOutput, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setStopped, meth_PySemsDialog_setStopped, METH_VARARGS, NULL}
|
||||
{sipNm_py_sems_lib_acceptAudio, meth_PySemsDialog_acceptAudio, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onBye, meth_PySemsDialog_onBye, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onCancel, meth_PySemsDialog_onCancel, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onDtmf, meth_PySemsDialog_onDtmf, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onInvite, meth_PySemsDialog_onInvite, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_onSessionStart, meth_PySemsDialog_onSessionStart, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_process, meth_PySemsDialog_process, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setInOut, meth_PySemsDialog_setInOut, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setInput, meth_PySemsDialog_setInput, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setOutput, meth_PySemsDialog_setOutput, METH_VARARGS, NULL},
|
||||
{sipNm_py_sems_lib_setStopped, meth_PySemsDialog_setStopped, METH_VARARGS, NULL}
|
||||
};
|
||||
|
||||
|
||||
/* The main type data structure. */
|
||||
sipTypeDef sipType_PySemsDialog = {
|
||||
0,
|
||||
"py_sems_lib.PySemsDialog",
|
||||
-1,
|
||||
0,
|
||||
0,
|
||||
11, methods_PySemsDialog,
|
||||
0, 0,
|
||||
variables_PySemsDialog,
|
||||
init_PySemsDialog,
|
||||
dealloc_PySemsDialog,
|
||||
cast_PySemsDialog,
|
||||
forceConvertTo_PySemsDialog,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
{0, 0, 0, 0, 0, 0}
|
||||
sipTypeDef sipType_py_sems_lib_PySemsDialog = {
|
||||
0,
|
||||
0,
|
||||
"py_sems_lib.PySemsDialog",
|
||||
0,
|
||||
{0, 0, 1},
|
||||
0,
|
||||
0,
|
||||
11, methods_PySemsDialog,
|
||||
0, 0,
|
||||
variables_PySemsDialog,
|
||||
init_PySemsDialog,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
dealloc_PySemsDialog,
|
||||
cast_PySemsDialog,
|
||||
release_PySemsDialog,
|
||||
forceConvertTo_PySemsDialog,
|
||||
0,
|
||||
0,
|
||||
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
||||
0
|
||||
};
|
||||
|
||||
@ -1,54 +1,49 @@
|
||||
/*
|
||||
* Interface header file.
|
||||
*
|
||||
* Generated by SIP 4.1.1 (4.1.1-255) on Mon Feb 19 14:57:35 2007
|
||||
* Generated by SIP 4.5.2 (4.5.2) on Tue Feb 20 15:24:56 2007
|
||||
*/
|
||||
|
||||
#ifndef _py_sems_libPySemsDialog_h
|
||||
#define _py_sems_libPySemsDialog_h
|
||||
#define _py_sems_libPySemsDialog_h
|
||||
|
||||
#line 6 "PySemsDialog.sip"
|
||||
#include "../PySems.h"
|
||||
#line 13 "sippy_sems_libPySemsDialog.h"
|
||||
|
||||
#include "sippy_sems_libAmSipDialog.h"
|
||||
#include "sippy_sems_libAmEvent.h"
|
||||
#include "sippy_sems_libAmAudioFile.h"
|
||||
#include "sippy_sems_libAmSipRequest.h"
|
||||
#include "sippy_sems_libstring.h"
|
||||
#define sipClass_PySemsDialog sipModuleAPI_py_sems_lib.em_types[0]
|
||||
#define sipCast_PySemsDialog sipType_py_sems_lib_PySemsDialog.td_cast
|
||||
#define sipForceConvertTo_PySemsDialog sipType_py_sems_lib_PySemsDialog.td_fcto
|
||||
|
||||
|
||||
#define sipClass_PySemsDialog sipModuleAPI_py_sems_lib.em_types[0]
|
||||
#define sipCast_PySemsDialog sipType_PySemsDialog.td_cast
|
||||
#define sipForceConvertTo_PySemsDialog sipType_PySemsDialog.td_fcto
|
||||
|
||||
extern sipTypeDef sipType_PySemsDialog;
|
||||
extern sipTypeDef sipType_py_sems_lib_PySemsDialog;
|
||||
|
||||
|
||||
class sipPySemsDialog : public PySemsDialog
|
||||
{
|
||||
public:
|
||||
sipPySemsDialog();
|
||||
virtual ~sipPySemsDialog();
|
||||
|
||||
/*
|
||||
* There is a public method for every virtual method visible from
|
||||
* this class.
|
||||
*/
|
||||
void onInvite(const AmSipRequest&);
|
||||
void onSessionStart(const AmSipRequest&);
|
||||
void onCancel();
|
||||
void onBye(const AmSipRequest&);
|
||||
void onDtmf(int,int);
|
||||
void process(AmEvent *);
|
||||
|
||||
sipWrapper *sipPySelf;
|
||||
sipPySemsDialog();
|
||||
virtual ~sipPySemsDialog();
|
||||
|
||||
/*
|
||||
* There is a protected method for every virtual method visible from
|
||||
* this class.
|
||||
*/
|
||||
protected:
|
||||
void onInvite(const AmSipRequest&);
|
||||
void onSessionStart(const AmSipRequest&);
|
||||
void onCancel();
|
||||
void onBye(const AmSipRequest&);
|
||||
void onDtmf(int,int);
|
||||
void process(AmEvent *);
|
||||
|
||||
public:
|
||||
sipWrapper *sipPySelf;
|
||||
|
||||
private:
|
||||
sipPySemsDialog(const sipPySemsDialog &);
|
||||
sipPySemsDialog &operator = (const sipPySemsDialog &);
|
||||
sipPySemsDialog(const sipPySemsDialog &);
|
||||
sipPySemsDialog &operator = (const sipPySemsDialog &);
|
||||
|
||||
sipMethodCache sipPyMethods[6];
|
||||
sipMethodCache sipPyMethods[6];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in new issue