2 * FILE : src/gtk/filesys.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initfilesysc
56 #define SWIG_name "filesysc"
59 #include <wx/filesys.h>
60 #include <wx/fs_inet.h>
61 #include <wx/fs_mem.h>
62 #include <wx/fs_zip.h>
65 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
71 } else if (target
== Py_None
) {
75 if (!PyTuple_Check(target
)) {
77 target
= PyTuple_New(1);
78 PyTuple_SetItem(target
, 0, o2
);
81 PyTuple_SetItem(o3
, 0, o
);
84 target
= PySequence_Concat(o2
, o3
);
91 #if PYTHON_API_VERSION >= 1009
92 static char* wxStringErrorMsg
= "String or Unicode type required";
94 static char* wxStringErrorMsg
= "String type required";
97 // wxPyFileSystemHandler will be the Python class wxFileSystemHandler and handling
98 // the callback functions
99 class wxPyFileSystemHandler
: public wxFileSystemHandler
{
101 wxPyFileSystemHandler() : wxFileSystemHandler() {}
103 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen
);
104 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile
);
105 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst
);
106 DEC_PYCALLBACK_STRING__pure(FindNext
);
108 wxString
GetProtocol(const wxString
& location
) {
109 return wxFileSystemHandler::GetProtocol(location
);
112 wxString
GetLeftLocation(const wxString
& location
) {
113 return wxFileSystemHandler::GetLeftLocation(location
);
116 wxString
GetAnchor(const wxString
& location
) {
117 return wxFileSystemHandler::GetAnchor(location
);
120 wxString
GetRightLocation(const wxString
& location
) {
121 return wxFileSystemHandler::GetRightLocation(location
);
124 wxString
GetMimeTypeFromExt(const wxString
& location
){
125 return wxFileSystemHandler::GetMimeTypeFromExt(location
);
132 IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler
, wxFileSystemHandler
, CanOpen
);
133 IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler
, wxFileSystemHandler
, OpenFile
);
134 IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler
, wxFileSystemHandler
, FindFirst
);
135 IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler
, wxFileSystemHandler
, FindNext
);
137 void __wxMemoryFSHandler_AddFile_wxImage(const wxString
& filename
,
140 wxMemoryFSHandler::AddFile(filename
, image
, type
);
143 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString
& filename
,
144 const wxBitmap
& bitmap
,
146 wxMemoryFSHandler::AddFile(filename
, bitmap
, type
);
149 // void __wxMemoryFSHandler_AddFile_wxString(const wxString& filename,
150 // const wxString& textdata) {
151 // wxMemoryFSHandler::AddFile(filename, textdata);
154 void __wxMemoryFSHandler_AddFile_Data(const wxString
& filename
,
157 wxMemoryFSHandler::AddFile(filename
,
158 (void*)PyString_AsString(data
),
159 (size_t)PyString_Size(data
));
164 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
165 PyObject
* _resultobj
;
169 PyObject
* _obj0
= 0;
170 PyObject
* _argo1
= 0;
171 char *_kwnames
[] = { "filename","image","type", NULL
};
174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:__wxMemoryFSHandler_AddFile_wxImage",_kwnames
,&_obj0
,&_argo1
,&_arg2
))
177 #if PYTHON_API_VERSION >= 1009
178 char* tmpPtr
; int tmpSize
;
179 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
180 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
183 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
185 _arg0
= new wxString(tmpPtr
, tmpSize
);
187 if (!PyString_Check(_obj0
)) {
188 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
191 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
195 if (_argo1
== Py_None
) { _arg1
= NULL
; }
196 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxImage. Expected _wxImage_p.");
202 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
203 __wxMemoryFSHandler_AddFile_wxImage(*_arg0
,*_arg1
,_arg2
);
205 wxPyEndAllowThreads(__tstate
);
206 if (PyErr_Occurred()) return NULL
;
207 } Py_INCREF(Py_None
);
208 _resultobj
= Py_None
;
216 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
217 PyObject
* _resultobj
;
221 PyObject
* _obj0
= 0;
222 PyObject
* _argo1
= 0;
223 char *_kwnames
[] = { "filename","bitmap","type", NULL
};
226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOl:__wxMemoryFSHandler_AddFile_wxBitmap",_kwnames
,&_obj0
,&_argo1
,&_arg2
))
229 #if PYTHON_API_VERSION >= 1009
230 char* tmpPtr
; int tmpSize
;
231 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
232 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
235 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
237 _arg0
= new wxString(tmpPtr
, tmpSize
);
239 if (!PyString_Check(_obj0
)) {
240 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
243 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
247 if (_argo1
== Py_None
) { _arg1
= NULL
; }
248 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of __wxMemoryFSHandler_AddFile_wxBitmap. Expected _wxBitmap_p.");
254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
255 __wxMemoryFSHandler_AddFile_wxBitmap(*_arg0
,*_arg1
,_arg2
);
257 wxPyEndAllowThreads(__tstate
);
258 if (PyErr_Occurred()) return NULL
;
259 } Py_INCREF(Py_None
);
260 _resultobj
= Py_None
;
268 static PyObject
*_wrap___wxMemoryFSHandler_AddFile_Data(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
269 PyObject
* _resultobj
;
272 PyObject
* _obj0
= 0;
273 PyObject
* _obj1
= 0;
274 char *_kwnames
[] = { "filename","data", NULL
};
277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:__wxMemoryFSHandler_AddFile_Data",_kwnames
,&_obj0
,&_obj1
))
280 #if PYTHON_API_VERSION >= 1009
281 char* tmpPtr
; int tmpSize
;
282 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
283 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
286 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
288 _arg0
= new wxString(tmpPtr
, tmpSize
);
290 if (!PyString_Check(_obj0
)) {
291 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
294 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
302 __wxMemoryFSHandler_AddFile_Data(*_arg0
,_arg1
);
304 wxPyEndAllowThreads(__tstate
);
305 if (PyErr_Occurred()) return NULL
;
306 } Py_INCREF(Py_None
);
307 _resultobj
= Py_None
;
315 static void *SwigwxFSFileTowxObject(void *ptr
) {
318 src
= (wxFSFile
*) ptr
;
319 dest
= (wxObject
*) src
;
320 return (void *) dest
;
323 #define new_wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
324 static PyObject
*_wrap_new_wxFSFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
325 PyObject
* _resultobj
;
327 wxInputStream
* _arg0
;
332 wxPyInputStream
* temp
;
334 PyObject
* _obj0
= 0;
335 PyObject
* _obj1
= 0;
336 PyObject
* _obj2
= 0;
337 PyObject
* _obj3
= 0;
338 PyObject
* _argo4
= 0;
339 char *_kwnames
[] = { "stream","loc","mimetype","anchor","modif", NULL
};
343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOOO:new_wxFSFile",_kwnames
,&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_argo4
))
346 if (SWIG_GetPtrObj(_obj0
, (void **) &temp
, "_wxPyInputStream_p") == 0) {
347 _arg0
= temp
->m_wxis
;
350 _arg0
= wxPyCBInputStream::create(_obj0
, FALSE
);
352 PyErr_SetString(PyExc_TypeError
,"Expected _wxInputStream_p or Python file-like object.");
359 #if PYTHON_API_VERSION >= 1009
360 char* tmpPtr
; int tmpSize
;
361 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
362 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
365 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
367 _arg1
= new wxString(tmpPtr
, tmpSize
);
369 if (!PyString_Check(_obj1
)) {
370 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
373 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
377 #if PYTHON_API_VERSION >= 1009
378 char* tmpPtr
; int tmpSize
;
379 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
380 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
383 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
385 _arg2
= new wxString(tmpPtr
, tmpSize
);
387 if (!PyString_Check(_obj2
)) {
388 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
391 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
395 #if PYTHON_API_VERSION >= 1009
396 char* tmpPtr
; int tmpSize
;
397 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
398 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
401 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
403 _arg3
= new wxString(tmpPtr
, tmpSize
);
405 if (!PyString_Check(_obj3
)) {
406 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
409 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
413 if (_argo4
== Py_None
) { _arg4
= NULL
; }
414 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxDateTime_p")) {
415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of new_wxFSFile. Expected _wxDateTime_p.");
420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
421 _result
= (wxFSFile
*)new_wxFSFile(_arg0
,*_arg1
,*_arg2
,*_arg3
,*_arg4
);
423 wxPyEndAllowThreads(__tstate
);
424 if (PyErr_Occurred()) return NULL
;
426 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFSFile_p");
427 _resultobj
= Py_BuildValue("s",_ptemp
);
430 _resultobj
= Py_None
;
451 #define wxFSFile_GetStream(_swigobj) (_swigobj->GetStream())
452 static PyObject
*_wrap_wxFSFile_GetStream(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
453 PyObject
* _resultobj
;
454 wxInputStream
* _result
;
456 PyObject
* _argo0
= 0;
457 char *_kwnames
[] = { "self", NULL
};
460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetStream",_kwnames
,&_argo0
))
463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetStream. Expected _wxFSFile_p.");
470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
471 _result
= (wxInputStream
*)wxFSFile_GetStream(_arg0
);
473 wxPyEndAllowThreads(__tstate
);
474 if (PyErr_Occurred()) return NULL
;
476 wxPyInputStream
* _ptr
= NULL
;
479 _ptr
= new wxPyInputStream(_result
);
481 _resultobj
= wxPyConstructObject(_ptr
, "wxInputStream", TRUE
);
486 #define wxFSFile_GetMimeType(_swigobj) (_swigobj->GetMimeType())
487 static PyObject
*_wrap_wxFSFile_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
488 PyObject
* _resultobj
;
491 PyObject
* _argo0
= 0;
492 char *_kwnames
[] = { "self", NULL
};
495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetMimeType",_kwnames
,&_argo0
))
498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetMimeType. Expected _wxFSFile_p.");
505 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
506 const wxString
& _result_ref
= wxFSFile_GetMimeType(_arg0
);
507 _result
= (wxString
*) &_result_ref
;
509 wxPyEndAllowThreads(__tstate
);
510 if (PyErr_Occurred()) return NULL
;
512 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
517 #define wxFSFile_GetLocation(_swigobj) (_swigobj->GetLocation())
518 static PyObject
*_wrap_wxFSFile_GetLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
519 PyObject
* _resultobj
;
522 PyObject
* _argo0
= 0;
523 char *_kwnames
[] = { "self", NULL
};
526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetLocation",_kwnames
,&_argo0
))
529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetLocation. Expected _wxFSFile_p.");
536 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
537 const wxString
& _result_ref
= wxFSFile_GetLocation(_arg0
);
538 _result
= (wxString
*) &_result_ref
;
540 wxPyEndAllowThreads(__tstate
);
541 if (PyErr_Occurred()) return NULL
;
543 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
548 #define wxFSFile_GetAnchor(_swigobj) (_swigobj->GetAnchor())
549 static PyObject
*_wrap_wxFSFile_GetAnchor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
550 PyObject
* _resultobj
;
553 PyObject
* _argo0
= 0;
554 char *_kwnames
[] = { "self", NULL
};
557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetAnchor",_kwnames
,&_argo0
))
560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetAnchor. Expected _wxFSFile_p.");
567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
568 const wxString
& _result_ref
= wxFSFile_GetAnchor(_arg0
);
569 _result
= (wxString
*) &_result_ref
;
571 wxPyEndAllowThreads(__tstate
);
572 if (PyErr_Occurred()) return NULL
;
574 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
579 #define wxFSFile_GetModificationTime(_swigobj) (_swigobj->GetModificationTime())
580 static PyObject
*_wrap_wxFSFile_GetModificationTime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
581 PyObject
* _resultobj
;
582 wxDateTime
* _result
;
584 PyObject
* _argo0
= 0;
585 char *_kwnames
[] = { "self", NULL
};
589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFSFile_GetModificationTime",_kwnames
,&_argo0
))
592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFSFile_p")) {
594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFSFile_GetModificationTime. Expected _wxFSFile_p.");
599 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
600 _result
= new wxDateTime (wxFSFile_GetModificationTime(_arg0
));
602 wxPyEndAllowThreads(__tstate
);
603 if (PyErr_Occurred()) return NULL
;
604 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxDateTime_p");
605 _resultobj
= Py_BuildValue("s",_ptemp
);
609 static void *SwigwxFileSystemHandlerTowxObject(void *ptr
) {
610 wxFileSystemHandler
*src
;
612 src
= (wxFileSystemHandler
*) ptr
;
613 dest
= (wxObject
*) src
;
614 return (void *) dest
;
617 static void *SwigwxPyFileSystemHandlerTowxFileSystemHandler(void *ptr
) {
618 wxPyFileSystemHandler
*src
;
619 wxFileSystemHandler
*dest
;
620 src
= (wxPyFileSystemHandler
*) ptr
;
621 dest
= (wxFileSystemHandler
*) src
;
622 return (void *) dest
;
625 static void *SwigwxPyFileSystemHandlerTowxObject(void *ptr
) {
626 wxPyFileSystemHandler
*src
;
628 src
= (wxPyFileSystemHandler
*) ptr
;
629 dest
= (wxObject
*) src
;
630 return (void *) dest
;
633 #define new_wxFileSystemHandler() (new wxPyFileSystemHandler())
634 static PyObject
*_wrap_new_wxFileSystemHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
635 PyObject
* _resultobj
;
636 wxPyFileSystemHandler
* _result
;
637 char *_kwnames
[] = { NULL
};
641 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileSystemHandler",_kwnames
))
644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
645 _result
= (wxPyFileSystemHandler
*)new_wxFileSystemHandler();
647 wxPyEndAllowThreads(__tstate
);
648 if (PyErr_Occurred()) return NULL
;
650 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyFileSystemHandler_p");
651 _resultobj
= Py_BuildValue("s",_ptemp
);
654 _resultobj
= Py_None
;
659 #define wxFileSystemHandler__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
660 static PyObject
*_wrap_wxFileSystemHandler__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
661 PyObject
* _resultobj
;
662 wxPyFileSystemHandler
* _arg0
;
665 PyObject
* _argo0
= 0;
666 PyObject
* _obj1
= 0;
667 PyObject
* _obj2
= 0;
668 char *_kwnames
[] = { "self","self","_class", NULL
};
671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileSystemHandler__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler__setCallbackInfo. Expected _wxPyFileSystemHandler_p.");
687 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
688 wxFileSystemHandler__setCallbackInfo(_arg0
,_arg1
,_arg2
);
690 wxPyEndAllowThreads(__tstate
);
691 if (PyErr_Occurred()) return NULL
;
692 } Py_INCREF(Py_None
);
693 _resultobj
= Py_None
;
697 #define wxFileSystemHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
698 static PyObject
*_wrap_wxFileSystemHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
699 PyObject
* _resultobj
;
701 wxPyFileSystemHandler
* _arg0
;
703 PyObject
* _argo0
= 0;
704 PyObject
* _obj1
= 0;
705 char *_kwnames
[] = { "self","location", NULL
};
708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_CanOpen. Expected _wxPyFileSystemHandler_p.");
718 #if PYTHON_API_VERSION >= 1009
719 char* tmpPtr
; int tmpSize
;
720 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
721 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
724 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
726 _arg1
= new wxString(tmpPtr
, tmpSize
);
728 if (!PyString_Check(_obj1
)) {
729 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
732 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
737 _result
= (bool )wxFileSystemHandler_CanOpen(_arg0
,*_arg1
);
739 wxPyEndAllowThreads(__tstate
);
740 if (PyErr_Occurred()) return NULL
;
741 } _resultobj
= Py_BuildValue("i",_result
);
749 #define wxFileSystemHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
750 static PyObject
*_wrap_wxFileSystemHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
751 PyObject
* _resultobj
;
753 wxPyFileSystemHandler
* _arg0
;
754 wxFileSystem
* _arg1
;
756 PyObject
* _argo0
= 0;
757 PyObject
* _argo1
= 0;
758 PyObject
* _obj2
= 0;
759 char *_kwnames
[] = { "self","fs","location", NULL
};
762 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxFileSystemHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
765 if (_argo0
== Py_None
) { _arg0
= NULL
; }
766 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
767 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_OpenFile. Expected _wxPyFileSystemHandler_p.");
772 if (_argo1
== Py_None
) { _arg1
= NULL
; }
773 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFileSystemHandler_OpenFile. Expected _wxFileSystem_p.");
779 #if PYTHON_API_VERSION >= 1009
780 char* tmpPtr
; int tmpSize
;
781 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
782 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
785 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
787 _arg2
= new wxString(tmpPtr
, tmpSize
);
789 if (!PyString_Check(_obj2
)) {
790 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
793 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
798 _result
= (wxFSFile
*)wxFileSystemHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
800 wxPyEndAllowThreads(__tstate
);
801 if (PyErr_Occurred()) return NULL
;
802 }{ _resultobj
= wxPyMake_wxObject(_result
); }
810 #define wxFileSystemHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
811 static PyObject
*_wrap_wxFileSystemHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
812 PyObject
* _resultobj
;
814 wxPyFileSystemHandler
* _arg0
;
816 int _arg2
= (int ) 0;
817 PyObject
* _argo0
= 0;
818 PyObject
* _obj1
= 0;
819 char *_kwnames
[] = { "self","spec","flags", NULL
};
822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystemHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_FindFirst. Expected _wxPyFileSystemHandler_p.");
832 #if PYTHON_API_VERSION >= 1009
833 char* tmpPtr
; int tmpSize
;
834 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
835 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
838 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
840 _arg1
= new wxString(tmpPtr
, tmpSize
);
842 if (!PyString_Check(_obj1
)) {
843 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
846 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
851 _result
= new wxString (wxFileSystemHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
853 wxPyEndAllowThreads(__tstate
);
854 if (PyErr_Occurred()) return NULL
;
856 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
868 #define wxFileSystemHandler_FindNext(_swigobj) (_swigobj->FindNext())
869 static PyObject
*_wrap_wxFileSystemHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
870 PyObject
* _resultobj
;
872 wxPyFileSystemHandler
* _arg0
;
873 PyObject
* _argo0
= 0;
874 char *_kwnames
[] = { "self", NULL
};
877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystemHandler_FindNext",_kwnames
,&_argo0
))
880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_FindNext. Expected _wxPyFileSystemHandler_p.");
887 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
888 _result
= new wxString (wxFileSystemHandler_FindNext(_arg0
));
890 wxPyEndAllowThreads(__tstate
);
891 if (PyErr_Occurred()) return NULL
;
893 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
901 #define wxFileSystemHandler_GetProtocol(_swigobj,_swigarg0) (_swigobj->GetProtocol(_swigarg0))
902 static PyObject
*_wrap_wxFileSystemHandler_GetProtocol(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
903 PyObject
* _resultobj
;
905 wxPyFileSystemHandler
* _arg0
;
907 PyObject
* _argo0
= 0;
908 PyObject
* _obj1
= 0;
909 char *_kwnames
[] = { "self","location", NULL
};
912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetProtocol",_kwnames
,&_argo0
,&_obj1
))
915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetProtocol. Expected _wxPyFileSystemHandler_p.");
922 #if PYTHON_API_VERSION >= 1009
923 char* tmpPtr
; int tmpSize
;
924 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
925 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
928 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
930 _arg1
= new wxString(tmpPtr
, tmpSize
);
932 if (!PyString_Check(_obj1
)) {
933 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
936 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
941 _result
= new wxString (wxFileSystemHandler_GetProtocol(_arg0
,*_arg1
));
943 wxPyEndAllowThreads(__tstate
);
944 if (PyErr_Occurred()) return NULL
;
946 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
958 #define wxFileSystemHandler_GetLeftLocation(_swigobj,_swigarg0) (_swigobj->GetLeftLocation(_swigarg0))
959 static PyObject
*_wrap_wxFileSystemHandler_GetLeftLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
960 PyObject
* _resultobj
;
962 wxPyFileSystemHandler
* _arg0
;
964 PyObject
* _argo0
= 0;
965 PyObject
* _obj1
= 0;
966 char *_kwnames
[] = { "self","location", NULL
};
969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetLeftLocation",_kwnames
,&_argo0
,&_obj1
))
972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetLeftLocation. Expected _wxPyFileSystemHandler_p.");
979 #if PYTHON_API_VERSION >= 1009
980 char* tmpPtr
; int tmpSize
;
981 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
982 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
985 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
987 _arg1
= new wxString(tmpPtr
, tmpSize
);
989 if (!PyString_Check(_obj1
)) {
990 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
993 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
998 _result
= new wxString (wxFileSystemHandler_GetLeftLocation(_arg0
,*_arg1
));
1000 wxPyEndAllowThreads(__tstate
);
1001 if (PyErr_Occurred()) return NULL
;
1003 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1015 #define wxFileSystemHandler_GetAnchor(_swigobj,_swigarg0) (_swigobj->GetAnchor(_swigarg0))
1016 static PyObject
*_wrap_wxFileSystemHandler_GetAnchor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1017 PyObject
* _resultobj
;
1019 wxPyFileSystemHandler
* _arg0
;
1021 PyObject
* _argo0
= 0;
1022 PyObject
* _obj1
= 0;
1023 char *_kwnames
[] = { "self","location", NULL
};
1026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetAnchor",_kwnames
,&_argo0
,&_obj1
))
1029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
1031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetAnchor. Expected _wxPyFileSystemHandler_p.");
1036 #if PYTHON_API_VERSION >= 1009
1037 char* tmpPtr
; int tmpSize
;
1038 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1039 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1042 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1044 _arg1
= new wxString(tmpPtr
, tmpSize
);
1046 if (!PyString_Check(_obj1
)) {
1047 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1050 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1054 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1055 _result
= new wxString (wxFileSystemHandler_GetAnchor(_arg0
,*_arg1
));
1057 wxPyEndAllowThreads(__tstate
);
1058 if (PyErr_Occurred()) return NULL
;
1060 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1072 #define wxFileSystemHandler_GetRightLocation(_swigobj,_swigarg0) (_swigobj->GetRightLocation(_swigarg0))
1073 static PyObject
*_wrap_wxFileSystemHandler_GetRightLocation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1074 PyObject
* _resultobj
;
1076 wxPyFileSystemHandler
* _arg0
;
1078 PyObject
* _argo0
= 0;
1079 PyObject
* _obj1
= 0;
1080 char *_kwnames
[] = { "self","location", NULL
};
1083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetRightLocation",_kwnames
,&_argo0
,&_obj1
))
1086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
1088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetRightLocation. Expected _wxPyFileSystemHandler_p.");
1093 #if PYTHON_API_VERSION >= 1009
1094 char* tmpPtr
; int tmpSize
;
1095 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1096 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1099 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1101 _arg1
= new wxString(tmpPtr
, tmpSize
);
1103 if (!PyString_Check(_obj1
)) {
1104 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1107 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1112 _result
= new wxString (wxFileSystemHandler_GetRightLocation(_arg0
,*_arg1
));
1114 wxPyEndAllowThreads(__tstate
);
1115 if (PyErr_Occurred()) return NULL
;
1117 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1129 #define wxFileSystemHandler_GetMimeTypeFromExt(_swigobj,_swigarg0) (_swigobj->GetMimeTypeFromExt(_swigarg0))
1130 static PyObject
*_wrap_wxFileSystemHandler_GetMimeTypeFromExt(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1131 PyObject
* _resultobj
;
1133 wxPyFileSystemHandler
* _arg0
;
1135 PyObject
* _argo0
= 0;
1136 PyObject
* _obj1
= 0;
1137 char *_kwnames
[] = { "self","location", NULL
};
1140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystemHandler_GetMimeTypeFromExt",_kwnames
,&_argo0
,&_obj1
))
1143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyFileSystemHandler_p")) {
1145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystemHandler_GetMimeTypeFromExt. Expected _wxPyFileSystemHandler_p.");
1150 #if PYTHON_API_VERSION >= 1009
1151 char* tmpPtr
; int tmpSize
;
1152 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1153 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1156 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1158 _arg1
= new wxString(tmpPtr
, tmpSize
);
1160 if (!PyString_Check(_obj1
)) {
1161 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1164 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1168 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1169 _result
= new wxString (wxFileSystemHandler_GetMimeTypeFromExt(_arg0
,*_arg1
));
1171 wxPyEndAllowThreads(__tstate
);
1172 if (PyErr_Occurred()) return NULL
;
1174 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1186 static void *SwigwxFileSystemTowxObject(void *ptr
) {
1189 src
= (wxFileSystem
*) ptr
;
1190 dest
= (wxObject
*) src
;
1191 return (void *) dest
;
1194 #define new_wxFileSystem() (new wxFileSystem())
1195 static PyObject
*_wrap_new_wxFileSystem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1196 PyObject
* _resultobj
;
1197 wxFileSystem
* _result
;
1198 char *_kwnames
[] = { NULL
};
1202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxFileSystem",_kwnames
))
1205 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1206 _result
= (wxFileSystem
*)new_wxFileSystem();
1208 wxPyEndAllowThreads(__tstate
);
1209 if (PyErr_Occurred()) return NULL
;
1211 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFileSystem_p");
1212 _resultobj
= Py_BuildValue("s",_ptemp
);
1215 _resultobj
= Py_None
;
1220 #define wxFileSystem_ChangePathTo(_swigobj,_swigarg0,_swigarg1) (_swigobj->ChangePathTo(_swigarg0,_swigarg1))
1221 static PyObject
*_wrap_wxFileSystem_ChangePathTo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1222 PyObject
* _resultobj
;
1223 wxFileSystem
* _arg0
;
1225 bool _arg2
= (bool ) FALSE
;
1226 PyObject
* _argo0
= 0;
1227 PyObject
* _obj1
= 0;
1228 int tempbool2
= (int) FALSE
;
1229 char *_kwnames
[] = { "self","location","is_dir", NULL
};
1232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystem_ChangePathTo",_kwnames
,&_argo0
,&_obj1
,&tempbool2
))
1235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_ChangePathTo. Expected _wxFileSystem_p.");
1242 #if PYTHON_API_VERSION >= 1009
1243 char* tmpPtr
; int tmpSize
;
1244 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1245 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1248 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1250 _arg1
= new wxString(tmpPtr
, tmpSize
);
1252 if (!PyString_Check(_obj1
)) {
1253 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1256 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1259 _arg2
= (bool ) tempbool2
;
1261 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1262 wxFileSystem_ChangePathTo(_arg0
,*_arg1
,_arg2
);
1264 wxPyEndAllowThreads(__tstate
);
1265 if (PyErr_Occurred()) return NULL
;
1266 } Py_INCREF(Py_None
);
1267 _resultobj
= Py_None
;
1275 #define wxFileSystem_GetPath(_swigobj) (_swigobj->GetPath())
1276 static PyObject
*_wrap_wxFileSystem_GetPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1277 PyObject
* _resultobj
;
1279 wxFileSystem
* _arg0
;
1280 PyObject
* _argo0
= 0;
1281 char *_kwnames
[] = { "self", NULL
};
1284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_GetPath",_kwnames
,&_argo0
))
1287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_GetPath. Expected _wxFileSystem_p.");
1294 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1295 _result
= new wxString (wxFileSystem_GetPath(_arg0
));
1297 wxPyEndAllowThreads(__tstate
);
1298 if (PyErr_Occurred()) return NULL
;
1300 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1308 #define wxFileSystem_OpenFile(_swigobj,_swigarg0) (_swigobj->OpenFile(_swigarg0))
1309 static PyObject
*_wrap_wxFileSystem_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1310 PyObject
* _resultobj
;
1312 wxFileSystem
* _arg0
;
1314 PyObject
* _argo0
= 0;
1315 PyObject
* _obj1
= 0;
1316 char *_kwnames
[] = { "self","location", NULL
};
1319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxFileSystem_OpenFile",_kwnames
,&_argo0
,&_obj1
))
1322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_OpenFile. Expected _wxFileSystem_p.");
1329 #if PYTHON_API_VERSION >= 1009
1330 char* tmpPtr
; int tmpSize
;
1331 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1332 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1335 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1337 _arg1
= new wxString(tmpPtr
, tmpSize
);
1339 if (!PyString_Check(_obj1
)) {
1340 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1343 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1348 _result
= (wxFSFile
*)wxFileSystem_OpenFile(_arg0
,*_arg1
);
1350 wxPyEndAllowThreads(__tstate
);
1351 if (PyErr_Occurred()) return NULL
;
1352 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1360 #define wxFileSystem_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1361 static PyObject
*_wrap_wxFileSystem_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1362 PyObject
* _resultobj
;
1364 wxFileSystem
* _arg0
;
1366 int _arg2
= (int ) 0;
1367 PyObject
* _argo0
= 0;
1368 PyObject
* _obj1
= 0;
1369 char *_kwnames
[] = { "self","spec","flags", NULL
};
1372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxFileSystem_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_FindFirst. Expected _wxFileSystem_p.");
1382 #if PYTHON_API_VERSION >= 1009
1383 char* tmpPtr
; int tmpSize
;
1384 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1385 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1388 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1390 _arg1
= new wxString(tmpPtr
, tmpSize
);
1392 if (!PyString_Check(_obj1
)) {
1393 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1396 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1400 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1401 _result
= new wxString (wxFileSystem_FindFirst(_arg0
,*_arg1
,_arg2
));
1403 wxPyEndAllowThreads(__tstate
);
1404 if (PyErr_Occurred()) return NULL
;
1406 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1418 #define wxFileSystem_FindNext(_swigobj) (_swigobj->FindNext())
1419 static PyObject
*_wrap_wxFileSystem_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1420 PyObject
* _resultobj
;
1422 wxFileSystem
* _arg0
;
1423 PyObject
* _argo0
= 0;
1424 char *_kwnames
[] = { "self", NULL
};
1427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_FindNext",_kwnames
,&_argo0
))
1430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystem_p")) {
1432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_FindNext. Expected _wxFileSystem_p.");
1437 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1438 _result
= new wxString (wxFileSystem_FindNext(_arg0
));
1440 wxPyEndAllowThreads(__tstate
);
1441 if (PyErr_Occurred()) return NULL
;
1443 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1451 static PyObject
*_wrap_wxFileSystem_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1452 PyObject
* _resultobj
;
1453 wxFileSystemHandler
* _arg0
;
1454 PyObject
* _argo0
= 0;
1455 char *_kwnames
[] = { "handler", NULL
};
1458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxFileSystem_AddHandler",_kwnames
,&_argo0
))
1461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxFileSystemHandler_p")) {
1463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxFileSystem_AddHandler. Expected _wxFileSystemHandler_p.");
1468 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1469 wxFileSystem::AddHandler(_arg0
);
1471 wxPyEndAllowThreads(__tstate
);
1472 if (PyErr_Occurred()) return NULL
;
1473 } Py_INCREF(Py_None
);
1474 _resultobj
= Py_None
;
1478 static PyObject
*_wrap_wxFileSystem_CleanUpHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1479 PyObject
* _resultobj
;
1480 char *_kwnames
[] = { NULL
};
1483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxFileSystem_CleanUpHandlers",_kwnames
))
1486 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1487 wxFileSystem::CleanUpHandlers();
1489 wxPyEndAllowThreads(__tstate
);
1490 if (PyErr_Occurred()) return NULL
;
1491 } Py_INCREF(Py_None
);
1492 _resultobj
= Py_None
;
1496 static void *SwigwxInternetFSHandlerTowxFileSystemHandler(void *ptr
) {
1497 wxInternetFSHandler
*src
;
1498 wxFileSystemHandler
*dest
;
1499 src
= (wxInternetFSHandler
*) ptr
;
1500 dest
= (wxFileSystemHandler
*) src
;
1501 return (void *) dest
;
1504 static void *SwigwxInternetFSHandlerTowxObject(void *ptr
) {
1505 wxInternetFSHandler
*src
;
1507 src
= (wxInternetFSHandler
*) ptr
;
1508 dest
= (wxObject
*) src
;
1509 return (void *) dest
;
1512 #define new_wxInternetFSHandler() (new wxInternetFSHandler())
1513 static PyObject
*_wrap_new_wxInternetFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1514 PyObject
* _resultobj
;
1515 wxInternetFSHandler
* _result
;
1516 char *_kwnames
[] = { NULL
};
1520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxInternetFSHandler",_kwnames
))
1523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1524 _result
= (wxInternetFSHandler
*)new_wxInternetFSHandler();
1526 wxPyEndAllowThreads(__tstate
);
1527 if (PyErr_Occurred()) return NULL
;
1529 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxInternetFSHandler_p");
1530 _resultobj
= Py_BuildValue("s",_ptemp
);
1533 _resultobj
= Py_None
;
1538 #define wxInternetFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1539 static PyObject
*_wrap_wxInternetFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1540 PyObject
* _resultobj
;
1542 wxInternetFSHandler
* _arg0
;
1544 PyObject
* _argo0
= 0;
1545 PyObject
* _obj1
= 0;
1546 char *_kwnames
[] = { "self","location", NULL
};
1549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxInternetFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxInternetFSHandler_p")) {
1554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInternetFSHandler_CanOpen. Expected _wxInternetFSHandler_p.");
1559 #if PYTHON_API_VERSION >= 1009
1560 char* tmpPtr
; int tmpSize
;
1561 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1562 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1565 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1567 _arg1
= new wxString(tmpPtr
, tmpSize
);
1569 if (!PyString_Check(_obj1
)) {
1570 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1573 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1577 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1578 _result
= (bool )wxInternetFSHandler_CanOpen(_arg0
,*_arg1
);
1580 wxPyEndAllowThreads(__tstate
);
1581 if (PyErr_Occurred()) return NULL
;
1582 } _resultobj
= Py_BuildValue("i",_result
);
1590 #define wxInternetFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1591 static PyObject
*_wrap_wxInternetFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1592 PyObject
* _resultobj
;
1594 wxInternetFSHandler
* _arg0
;
1595 wxFileSystem
* _arg1
;
1597 PyObject
* _argo0
= 0;
1598 PyObject
* _argo1
= 0;
1599 PyObject
* _obj2
= 0;
1600 char *_kwnames
[] = { "self","fs","location", NULL
};
1603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxInternetFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxInternetFSHandler_p")) {
1608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxInternetFSHandler_OpenFile. Expected _wxInternetFSHandler_p.");
1613 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1614 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxInternetFSHandler_OpenFile. Expected _wxFileSystem_p.");
1620 #if PYTHON_API_VERSION >= 1009
1621 char* tmpPtr
; int tmpSize
;
1622 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1623 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1626 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1628 _arg2
= new wxString(tmpPtr
, tmpSize
);
1630 if (!PyString_Check(_obj2
)) {
1631 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1634 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1639 _result
= (wxFSFile
*)wxInternetFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1641 wxPyEndAllowThreads(__tstate
);
1642 if (PyErr_Occurred()) return NULL
;
1643 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1651 static void *SwigwxZipFSHandlerTowxFileSystemHandler(void *ptr
) {
1652 wxZipFSHandler
*src
;
1653 wxFileSystemHandler
*dest
;
1654 src
= (wxZipFSHandler
*) ptr
;
1655 dest
= (wxFileSystemHandler
*) src
;
1656 return (void *) dest
;
1659 static void *SwigwxZipFSHandlerTowxObject(void *ptr
) {
1660 wxZipFSHandler
*src
;
1662 src
= (wxZipFSHandler
*) ptr
;
1663 dest
= (wxObject
*) src
;
1664 return (void *) dest
;
1667 #define new_wxZipFSHandler() (new wxZipFSHandler())
1668 static PyObject
*_wrap_new_wxZipFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1669 PyObject
* _resultobj
;
1670 wxZipFSHandler
* _result
;
1671 char *_kwnames
[] = { NULL
};
1675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxZipFSHandler",_kwnames
))
1678 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1679 _result
= (wxZipFSHandler
*)new_wxZipFSHandler();
1681 wxPyEndAllowThreads(__tstate
);
1682 if (PyErr_Occurred()) return NULL
;
1684 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxZipFSHandler_p");
1685 _resultobj
= Py_BuildValue("s",_ptemp
);
1688 _resultobj
= Py_None
;
1693 #define wxZipFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1694 static PyObject
*_wrap_wxZipFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1695 PyObject
* _resultobj
;
1697 wxZipFSHandler
* _arg0
;
1699 PyObject
* _argo0
= 0;
1700 PyObject
* _obj1
= 0;
1701 char *_kwnames
[] = { "self","location", NULL
};
1704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxZipFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1707 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1708 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_CanOpen. Expected _wxZipFSHandler_p.");
1714 #if PYTHON_API_VERSION >= 1009
1715 char* tmpPtr
; int tmpSize
;
1716 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1717 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1720 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1722 _arg1
= new wxString(tmpPtr
, tmpSize
);
1724 if (!PyString_Check(_obj1
)) {
1725 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1728 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1732 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1733 _result
= (bool )wxZipFSHandler_CanOpen(_arg0
,*_arg1
);
1735 wxPyEndAllowThreads(__tstate
);
1736 if (PyErr_Occurred()) return NULL
;
1737 } _resultobj
= Py_BuildValue("i",_result
);
1745 #define wxZipFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
1746 static PyObject
*_wrap_wxZipFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1747 PyObject
* _resultobj
;
1749 wxZipFSHandler
* _arg0
;
1750 wxFileSystem
* _arg1
;
1752 PyObject
* _argo0
= 0;
1753 PyObject
* _argo1
= 0;
1754 PyObject
* _obj2
= 0;
1755 char *_kwnames
[] = { "self","fs","location", NULL
};
1758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxZipFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
1761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_OpenFile. Expected _wxZipFSHandler_p.");
1768 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1769 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
1770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxZipFSHandler_OpenFile. Expected _wxFileSystem_p.");
1775 #if PYTHON_API_VERSION >= 1009
1776 char* tmpPtr
; int tmpSize
;
1777 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1778 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1781 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1783 _arg2
= new wxString(tmpPtr
, tmpSize
);
1785 if (!PyString_Check(_obj2
)) {
1786 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1789 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1794 _result
= (wxFSFile
*)wxZipFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
1796 wxPyEndAllowThreads(__tstate
);
1797 if (PyErr_Occurred()) return NULL
;
1798 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1806 #define wxZipFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
1807 static PyObject
*_wrap_wxZipFSHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1808 PyObject
* _resultobj
;
1810 wxZipFSHandler
* _arg0
;
1812 int _arg2
= (int ) 0;
1813 PyObject
* _argo0
= 0;
1814 PyObject
* _obj1
= 0;
1815 char *_kwnames
[] = { "self","spec","flags", NULL
};
1818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxZipFSHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_FindFirst. Expected _wxZipFSHandler_p.");
1828 #if PYTHON_API_VERSION >= 1009
1829 char* tmpPtr
; int tmpSize
;
1830 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1831 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1834 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1836 _arg1
= new wxString(tmpPtr
, tmpSize
);
1838 if (!PyString_Check(_obj1
)) {
1839 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1842 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1846 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1847 _result
= new wxString (wxZipFSHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
1849 wxPyEndAllowThreads(__tstate
);
1850 if (PyErr_Occurred()) return NULL
;
1852 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1864 #define wxZipFSHandler_FindNext(_swigobj) (_swigobj->FindNext())
1865 static PyObject
*_wrap_wxZipFSHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1866 PyObject
* _resultobj
;
1868 wxZipFSHandler
* _arg0
;
1869 PyObject
* _argo0
= 0;
1870 char *_kwnames
[] = { "self", NULL
};
1873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxZipFSHandler_FindNext",_kwnames
,&_argo0
))
1876 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1877 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxZipFSHandler_p")) {
1878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxZipFSHandler_FindNext. Expected _wxZipFSHandler_p.");
1883 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1884 _result
= new wxString (wxZipFSHandler_FindNext(_arg0
));
1886 wxPyEndAllowThreads(__tstate
);
1887 if (PyErr_Occurred()) return NULL
;
1889 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1897 static void *SwigwxMemoryFSHandlerTowxFileSystemHandler(void *ptr
) {
1898 wxMemoryFSHandler
*src
;
1899 wxFileSystemHandler
*dest
;
1900 src
= (wxMemoryFSHandler
*) ptr
;
1901 dest
= (wxFileSystemHandler
*) src
;
1902 return (void *) dest
;
1905 static void *SwigwxMemoryFSHandlerTowxObject(void *ptr
) {
1906 wxMemoryFSHandler
*src
;
1908 src
= (wxMemoryFSHandler
*) ptr
;
1909 dest
= (wxObject
*) src
;
1910 return (void *) dest
;
1913 #define new_wxMemoryFSHandler() (new wxMemoryFSHandler())
1914 static PyObject
*_wrap_new_wxMemoryFSHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1915 PyObject
* _resultobj
;
1916 wxMemoryFSHandler
* _result
;
1917 char *_kwnames
[] = { NULL
};
1921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxMemoryFSHandler",_kwnames
))
1924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1925 _result
= (wxMemoryFSHandler
*)new_wxMemoryFSHandler();
1927 wxPyEndAllowThreads(__tstate
);
1928 if (PyErr_Occurred()) return NULL
;
1930 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMemoryFSHandler_p");
1931 _resultobj
= Py_BuildValue("s",_ptemp
);
1934 _resultobj
= Py_None
;
1939 static PyObject
*_wrap_wxMemoryFSHandler_RemoveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1940 PyObject
* _resultobj
;
1942 PyObject
* _obj0
= 0;
1943 char *_kwnames
[] = { "filename", NULL
};
1946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryFSHandler_RemoveFile",_kwnames
,&_obj0
))
1949 #if PYTHON_API_VERSION >= 1009
1950 char* tmpPtr
; int tmpSize
;
1951 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
1952 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1955 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
1957 _arg0
= new wxString(tmpPtr
, tmpSize
);
1959 if (!PyString_Check(_obj0
)) {
1960 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1963 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
1967 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1968 wxMemoryFSHandler::RemoveFile(*_arg0
);
1970 wxPyEndAllowThreads(__tstate
);
1971 if (PyErr_Occurred()) return NULL
;
1972 } Py_INCREF(Py_None
);
1973 _resultobj
= Py_None
;
1981 #define wxMemoryFSHandler_CanOpen(_swigobj,_swigarg0) (_swigobj->CanOpen(_swigarg0))
1982 static PyObject
*_wrap_wxMemoryFSHandler_CanOpen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1983 PyObject
* _resultobj
;
1985 wxMemoryFSHandler
* _arg0
;
1987 PyObject
* _argo0
= 0;
1988 PyObject
* _obj1
= 0;
1989 char *_kwnames
[] = { "self","location", NULL
};
1992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMemoryFSHandler_CanOpen",_kwnames
,&_argo0
,&_obj1
))
1995 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1996 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
1997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_CanOpen. Expected _wxMemoryFSHandler_p.");
2002 #if PYTHON_API_VERSION >= 1009
2003 char* tmpPtr
; int tmpSize
;
2004 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2005 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2008 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2010 _arg1
= new wxString(tmpPtr
, tmpSize
);
2012 if (!PyString_Check(_obj1
)) {
2013 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2016 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2021 _result
= (bool )wxMemoryFSHandler_CanOpen(_arg0
,*_arg1
);
2023 wxPyEndAllowThreads(__tstate
);
2024 if (PyErr_Occurred()) return NULL
;
2025 } _resultobj
= Py_BuildValue("i",_result
);
2033 #define wxMemoryFSHandler_OpenFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->OpenFile(_swigarg0,_swigarg1))
2034 static PyObject
*_wrap_wxMemoryFSHandler_OpenFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2035 PyObject
* _resultobj
;
2037 wxMemoryFSHandler
* _arg0
;
2038 wxFileSystem
* _arg1
;
2040 PyObject
* _argo0
= 0;
2041 PyObject
* _argo1
= 0;
2042 PyObject
* _obj2
= 0;
2043 char *_kwnames
[] = { "self","fs","location", NULL
};
2046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMemoryFSHandler_OpenFile",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
2049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
2051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_OpenFile. Expected _wxMemoryFSHandler_p.");
2056 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2057 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFileSystem_p")) {
2058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMemoryFSHandler_OpenFile. Expected _wxFileSystem_p.");
2063 #if PYTHON_API_VERSION >= 1009
2064 char* tmpPtr
; int tmpSize
;
2065 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2066 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2069 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2071 _arg2
= new wxString(tmpPtr
, tmpSize
);
2073 if (!PyString_Check(_obj2
)) {
2074 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2077 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2081 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2082 _result
= (wxFSFile
*)wxMemoryFSHandler_OpenFile(_arg0
,*_arg1
,*_arg2
);
2084 wxPyEndAllowThreads(__tstate
);
2085 if (PyErr_Occurred()) return NULL
;
2086 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2094 #define wxMemoryFSHandler_FindFirst(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindFirst(_swigarg0,_swigarg1))
2095 static PyObject
*_wrap_wxMemoryFSHandler_FindFirst(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2096 PyObject
* _resultobj
;
2098 wxMemoryFSHandler
* _arg0
;
2100 int _arg2
= (int ) 0;
2101 PyObject
* _argo0
= 0;
2102 PyObject
* _obj1
= 0;
2103 char *_kwnames
[] = { "self","spec","flags", NULL
};
2106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxMemoryFSHandler_FindFirst",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
2109 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2110 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
2111 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_FindFirst. Expected _wxMemoryFSHandler_p.");
2116 #if PYTHON_API_VERSION >= 1009
2117 char* tmpPtr
; int tmpSize
;
2118 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2119 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2122 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2124 _arg1
= new wxString(tmpPtr
, tmpSize
);
2126 if (!PyString_Check(_obj1
)) {
2127 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2130 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2135 _result
= new wxString (wxMemoryFSHandler_FindFirst(_arg0
,*_arg1
,_arg2
));
2137 wxPyEndAllowThreads(__tstate
);
2138 if (PyErr_Occurred()) return NULL
;
2140 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2152 #define wxMemoryFSHandler_FindNext(_swigobj) (_swigobj->FindNext())
2153 static PyObject
*_wrap_wxMemoryFSHandler_FindNext(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2154 PyObject
* _resultobj
;
2156 wxMemoryFSHandler
* _arg0
;
2157 PyObject
* _argo0
= 0;
2158 char *_kwnames
[] = { "self", NULL
};
2161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMemoryFSHandler_FindNext",_kwnames
,&_argo0
))
2164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMemoryFSHandler_p")) {
2166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMemoryFSHandler_FindNext. Expected _wxMemoryFSHandler_p.");
2171 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2172 _result
= new wxString (wxMemoryFSHandler_FindNext(_arg0
));
2174 wxPyEndAllowThreads(__tstate
);
2175 if (PyErr_Occurred()) return NULL
;
2177 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2185 static PyMethodDef filesyscMethods
[] = {
2186 { "wxMemoryFSHandler_FindNext", (PyCFunction
) _wrap_wxMemoryFSHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
2187 { "wxMemoryFSHandler_FindFirst", (PyCFunction
) _wrap_wxMemoryFSHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2188 { "wxMemoryFSHandler_OpenFile", (PyCFunction
) _wrap_wxMemoryFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2189 { "wxMemoryFSHandler_CanOpen", (PyCFunction
) _wrap_wxMemoryFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
2190 { "wxMemoryFSHandler_RemoveFile", (PyCFunction
) _wrap_wxMemoryFSHandler_RemoveFile
, METH_VARARGS
| METH_KEYWORDS
},
2191 { "new_wxMemoryFSHandler", (PyCFunction
) _wrap_new_wxMemoryFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
2192 { "wxZipFSHandler_FindNext", (PyCFunction
) _wrap_wxZipFSHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
2193 { "wxZipFSHandler_FindFirst", (PyCFunction
) _wrap_wxZipFSHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2194 { "wxZipFSHandler_OpenFile", (PyCFunction
) _wrap_wxZipFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2195 { "wxZipFSHandler_CanOpen", (PyCFunction
) _wrap_wxZipFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
2196 { "new_wxZipFSHandler", (PyCFunction
) _wrap_new_wxZipFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
2197 { "wxInternetFSHandler_OpenFile", (PyCFunction
) _wrap_wxInternetFSHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2198 { "wxInternetFSHandler_CanOpen", (PyCFunction
) _wrap_wxInternetFSHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
2199 { "new_wxInternetFSHandler", (PyCFunction
) _wrap_new_wxInternetFSHandler
, METH_VARARGS
| METH_KEYWORDS
},
2200 { "wxFileSystem_CleanUpHandlers", (PyCFunction
) _wrap_wxFileSystem_CleanUpHandlers
, METH_VARARGS
| METH_KEYWORDS
},
2201 { "wxFileSystem_AddHandler", (PyCFunction
) _wrap_wxFileSystem_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
2202 { "wxFileSystem_FindNext", (PyCFunction
) _wrap_wxFileSystem_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
2203 { "wxFileSystem_FindFirst", (PyCFunction
) _wrap_wxFileSystem_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2204 { "wxFileSystem_OpenFile", (PyCFunction
) _wrap_wxFileSystem_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2205 { "wxFileSystem_GetPath", (PyCFunction
) _wrap_wxFileSystem_GetPath
, METH_VARARGS
| METH_KEYWORDS
},
2206 { "wxFileSystem_ChangePathTo", (PyCFunction
) _wrap_wxFileSystem_ChangePathTo
, METH_VARARGS
| METH_KEYWORDS
},
2207 { "new_wxFileSystem", (PyCFunction
) _wrap_new_wxFileSystem
, METH_VARARGS
| METH_KEYWORDS
},
2208 { "wxFileSystemHandler_GetMimeTypeFromExt", (PyCFunction
) _wrap_wxFileSystemHandler_GetMimeTypeFromExt
, METH_VARARGS
| METH_KEYWORDS
},
2209 { "wxFileSystemHandler_GetRightLocation", (PyCFunction
) _wrap_wxFileSystemHandler_GetRightLocation
, METH_VARARGS
| METH_KEYWORDS
},
2210 { "wxFileSystemHandler_GetAnchor", (PyCFunction
) _wrap_wxFileSystemHandler_GetAnchor
, METH_VARARGS
| METH_KEYWORDS
},
2211 { "wxFileSystemHandler_GetLeftLocation", (PyCFunction
) _wrap_wxFileSystemHandler_GetLeftLocation
, METH_VARARGS
| METH_KEYWORDS
},
2212 { "wxFileSystemHandler_GetProtocol", (PyCFunction
) _wrap_wxFileSystemHandler_GetProtocol
, METH_VARARGS
| METH_KEYWORDS
},
2213 { "wxFileSystemHandler_FindNext", (PyCFunction
) _wrap_wxFileSystemHandler_FindNext
, METH_VARARGS
| METH_KEYWORDS
},
2214 { "wxFileSystemHandler_FindFirst", (PyCFunction
) _wrap_wxFileSystemHandler_FindFirst
, METH_VARARGS
| METH_KEYWORDS
},
2215 { "wxFileSystemHandler_OpenFile", (PyCFunction
) _wrap_wxFileSystemHandler_OpenFile
, METH_VARARGS
| METH_KEYWORDS
},
2216 { "wxFileSystemHandler_CanOpen", (PyCFunction
) _wrap_wxFileSystemHandler_CanOpen
, METH_VARARGS
| METH_KEYWORDS
},
2217 { "wxFileSystemHandler__setCallbackInfo", (PyCFunction
) _wrap_wxFileSystemHandler__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
2218 { "new_wxFileSystemHandler", (PyCFunction
) _wrap_new_wxFileSystemHandler
, METH_VARARGS
| METH_KEYWORDS
},
2219 { "wxFSFile_GetModificationTime", (PyCFunction
) _wrap_wxFSFile_GetModificationTime
, METH_VARARGS
| METH_KEYWORDS
},
2220 { "wxFSFile_GetAnchor", (PyCFunction
) _wrap_wxFSFile_GetAnchor
, METH_VARARGS
| METH_KEYWORDS
},
2221 { "wxFSFile_GetLocation", (PyCFunction
) _wrap_wxFSFile_GetLocation
, METH_VARARGS
| METH_KEYWORDS
},
2222 { "wxFSFile_GetMimeType", (PyCFunction
) _wrap_wxFSFile_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
2223 { "wxFSFile_GetStream", (PyCFunction
) _wrap_wxFSFile_GetStream
, METH_VARARGS
| METH_KEYWORDS
},
2224 { "new_wxFSFile", (PyCFunction
) _wrap_new_wxFSFile
, METH_VARARGS
| METH_KEYWORDS
},
2225 { "__wxMemoryFSHandler_AddFile_Data", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_Data
, METH_VARARGS
| METH_KEYWORDS
},
2226 { "__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_wxBitmap
, METH_VARARGS
| METH_KEYWORDS
},
2227 { "__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction
) _wrap___wxMemoryFSHandler_AddFile_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
2234 * This table is used by the pointer type-checker
2236 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
2237 { "_signed_long","_long",0},
2238 { "_wxPrintQuality","_wxCoord",0},
2239 { "_wxPrintQuality","_int",0},
2240 { "_wxPrintQuality","_signed_int",0},
2241 { "_wxPrintQuality","_unsigned_int",0},
2242 { "_wxPrintQuality","_wxWindowID",0},
2243 { "_wxPrintQuality","_uint",0},
2244 { "_wxPrintQuality","_EBool",0},
2245 { "_wxPrintQuality","_size_t",0},
2246 { "_wxPrintQuality","_time_t",0},
2247 { "_byte","_unsigned_char",0},
2248 { "_long","_unsigned_long",0},
2249 { "_long","_signed_long",0},
2250 { "_size_t","_wxCoord",0},
2251 { "_size_t","_wxPrintQuality",0},
2252 { "_size_t","_time_t",0},
2253 { "_size_t","_unsigned_int",0},
2254 { "_size_t","_int",0},
2255 { "_size_t","_wxWindowID",0},
2256 { "_size_t","_uint",0},
2257 { "_uint","_wxCoord",0},
2258 { "_uint","_wxPrintQuality",0},
2259 { "_uint","_time_t",0},
2260 { "_uint","_size_t",0},
2261 { "_uint","_unsigned_int",0},
2262 { "_uint","_int",0},
2263 { "_uint","_wxWindowID",0},
2264 { "_wxChar","_char",0},
2265 { "_char","_wxChar",0},
2266 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
2267 { "_EBool","_wxCoord",0},
2268 { "_EBool","_wxPrintQuality",0},
2269 { "_EBool","_signed_int",0},
2270 { "_EBool","_int",0},
2271 { "_EBool","_wxWindowID",0},
2272 { "_unsigned_long","_long",0},
2273 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
2274 { "_signed_int","_wxCoord",0},
2275 { "_signed_int","_wxPrintQuality",0},
2276 { "_signed_int","_EBool",0},
2277 { "_signed_int","_wxWindowID",0},
2278 { "_signed_int","_int",0},
2279 { "_WXTYPE","_wxDateTime_t",0},
2280 { "_WXTYPE","_short",0},
2281 { "_WXTYPE","_signed_short",0},
2282 { "_WXTYPE","_unsigned_short",0},
2283 { "_unsigned_short","_wxDateTime_t",0},
2284 { "_unsigned_short","_WXTYPE",0},
2285 { "_unsigned_short","_short",0},
2286 { "_wxObject","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxObject
},
2287 { "_wxObject","_wxZipFSHandler",SwigwxZipFSHandlerTowxObject
},
2288 { "_wxObject","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxObject
},
2289 { "_wxObject","_wxFileSystem",SwigwxFileSystemTowxObject
},
2290 { "_wxObject","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxObject
},
2291 { "_wxObject","_wxFileSystemHandler",SwigwxFileSystemHandlerTowxObject
},
2292 { "_wxObject","_wxFSFile",SwigwxFSFileTowxObject
},
2293 { "_signed_short","_WXTYPE",0},
2294 { "_signed_short","_short",0},
2295 { "_unsigned_char","_byte",0},
2296 { "_unsigned_int","_wxCoord",0},
2297 { "_unsigned_int","_wxPrintQuality",0},
2298 { "_unsigned_int","_time_t",0},
2299 { "_unsigned_int","_size_t",0},
2300 { "_unsigned_int","_uint",0},
2301 { "_unsigned_int","_wxWindowID",0},
2302 { "_unsigned_int","_int",0},
2303 { "_short","_wxDateTime_t",0},
2304 { "_short","_WXTYPE",0},
2305 { "_short","_unsigned_short",0},
2306 { "_short","_signed_short",0},
2307 { "_wxFileSystemHandler","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxFileSystemHandler
},
2308 { "_wxFileSystemHandler","_wxZipFSHandler",SwigwxZipFSHandlerTowxFileSystemHandler
},
2309 { "_wxFileSystemHandler","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxFileSystemHandler
},
2310 { "_wxFileSystemHandler","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxFileSystemHandler
},
2311 { "_wxWindowID","_wxCoord",0},
2312 { "_wxWindowID","_wxPrintQuality",0},
2313 { "_wxWindowID","_time_t",0},
2314 { "_wxWindowID","_size_t",0},
2315 { "_wxWindowID","_EBool",0},
2316 { "_wxWindowID","_uint",0},
2317 { "_wxWindowID","_int",0},
2318 { "_wxWindowID","_signed_int",0},
2319 { "_wxWindowID","_unsigned_int",0},
2320 { "_int","_wxCoord",0},
2321 { "_int","_wxPrintQuality",0},
2322 { "_int","_time_t",0},
2323 { "_int","_size_t",0},
2324 { "_int","_EBool",0},
2325 { "_int","_uint",0},
2326 { "_int","_wxWindowID",0},
2327 { "_int","_unsigned_int",0},
2328 { "_int","_signed_int",0},
2329 { "_wxDateTime_t","_unsigned_short",0},
2330 { "_wxDateTime_t","_short",0},
2331 { "_wxDateTime_t","_WXTYPE",0},
2332 { "_time_t","_wxCoord",0},
2333 { "_time_t","_wxPrintQuality",0},
2334 { "_time_t","_unsigned_int",0},
2335 { "_time_t","_int",0},
2336 { "_time_t","_wxWindowID",0},
2337 { "_time_t","_uint",0},
2338 { "_time_t","_size_t",0},
2339 { "_wxCoord","_int",0},
2340 { "_wxCoord","_signed_int",0},
2341 { "_wxCoord","_unsigned_int",0},
2342 { "_wxCoord","_wxWindowID",0},
2343 { "_wxCoord","_uint",0},
2344 { "_wxCoord","_EBool",0},
2345 { "_wxCoord","_size_t",0},
2346 { "_wxCoord","_time_t",0},
2347 { "_wxCoord","_wxPrintQuality",0},
2350 static PyObject
*SWIG_globals
;
2354 SWIGEXPORT(void) initfilesysc() {
2356 SWIG_globals
= SWIG_newvarlink();
2357 m
= Py_InitModule("filesysc", filesyscMethods
);
2358 d
= PyModule_GetDict(m
);
2360 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
2363 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
2364 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);