2 * This file was generated automatically by ExtUtils::ParseXS version 2.2202 from the
3 * contents of FS.xs. Do not edit this file, edit FS.xs instead.
5 * ANY CHANGES MADE HERE WILL BE LOST!
9 /////////////////////////////////////////////////////////////////////////////
10 // Name: ext/filesys/FS.xs
11 // Purpose: XS for Wx::FileSystem and related classes
12 // Author: Mattia Barbon
14 // Created: 28/04/2001
15 // RCS-ID: $Id: FS.xs 2057 2007-06-18 23:03:00Z mbarbon $
16 // Copyright: (c) 2001-2002, 2004, 2006 Mattia Barbon
17 // Licence: This program is free software; you can redistribute it and/or
18 // modify it under the same terms as Perl itself
19 /////////////////////////////////////////////////////////////////////////////
21 #define PERL_NO_GET_CONTEXT
23 #include "cpp/wxapi.h"
24 #include "cpp/constants.h"
28 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
29 #include <wx/filesys.h>
31 double fs_constant( const char* name, int arg )
34 // !parser: sub { $_[0] =~ m<^\s*r\w*\(\s*(\w+)\s*\);\s*(?://(.*))?$> }
37 if( strEQ( name, #n ) ) \
40 WX_PL_CONSTANT_INIT();
51 WX_PL_CONSTANT_CLEANUP();
54 wxPlConstants fs_module( &fs_constant );
57 #ifndef PERL_UNUSED_VAR
58 # define PERL_UNUSED_VAR(var) if (0) var = var
61 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
62 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
64 /* prototype to pass -Wmissing-prototypes */
66 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
69 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
71 const GV *const gv = CvGV(cv);
73 PERL_ARGS_ASSERT_CROAK_XS_USAGE;
76 const char *const gvname = GvNAME(gv);
77 const HV *const stash = GvSTASH(gv);
78 const char *const hvname = stash ? HvNAME(stash) : NULL;
81 Perl_croak(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
83 Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
85 /* Pants. I don't think that it should be possible to get here. */
86 Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
89 #undef PERL_ARGS_ASSERT_CROAK_XS_USAGE
91 #ifdef PERL_IMPLICIT_CONTEXT
92 #define croak_xs_usage(a,b) S_croak_xs_usage(aTHX_ a,b)
94 #define croak_xs_usage S_croak_xs_usage
99 /* NOTE: the prototype of newXSproto() is different in versions of perls,
100 * so we define a portable version of newXSproto()
103 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
105 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
106 #endif /* !defined(newXS_flags) */
109 /* INCLUDE: Including 'XS/FileSystem.xs' from 'FS.xs' */
112 /* INCLUDE: Including 'XS/FileSystemHandler.xs' from 'XS/FileSystem.xs' */
115 /* INCLUDE: Including 'XS/FSFile.xs' from 'XS/FileSystemHandler.xs' */
117 #include <wx/filesys.h>
119 XS(XS_Wx__FSFile_CLONE); /* prototype to pass -Wmissing-prototypes */
120 XS(XS_Wx__FSFile_CLONE)
128 croak_xs_usage(cv, "CLASS");
130 char * CLASS = (char *)SvPV_nolen(ST(0));
131 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
137 XS(XS_Wx__FSFile_DESTROY); /* prototype to pass -Wmissing-prototypes */
138 XS(XS_Wx__FSFile_DESTROY)
146 croak_xs_usage(cv, "THIS");
148 wxFSFile * THIS = (wxFSFile *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FSFile" );
149 wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ), THIS, ST(0) );
156 XS(XS_Wx__FSFile_GetAnchor); /* prototype to pass -Wmissing-prototypes */
157 XS(XS_Wx__FSFile_GetAnchor)
165 croak_xs_usage(cv, "THIS");
167 wxFSFile * THIS = (wxFSFile *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FSFile" );
170 RETVAL = THIS->GetAnchor();
171 ST(0) = sv_newmortal();
172 WXSTRING_OUTPUT( RETVAL, ST(0) );
179 XS(XS_Wx__FSFile_GetLocation); /* prototype to pass -Wmissing-prototypes */
180 XS(XS_Wx__FSFile_GetLocation)
188 croak_xs_usage(cv, "THIS");
190 wxFSFile * THIS = (wxFSFile *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FSFile" );
193 RETVAL = THIS->GetLocation();
194 ST(0) = sv_newmortal();
195 WXSTRING_OUTPUT( RETVAL, ST(0) );
202 XS(XS_Wx__FSFile_GetMimeType); /* prototype to pass -Wmissing-prototypes */
203 XS(XS_Wx__FSFile_GetMimeType)
211 croak_xs_usage(cv, "THIS");
213 wxFSFile * THIS = (wxFSFile *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FSFile" );
216 RETVAL = THIS->GetMimeType();
217 ST(0) = sv_newmortal();
218 WXSTRING_OUTPUT( RETVAL, ST(0) );
225 XS(XS_Wx__FSFile_GetStream); /* prototype to pass -Wmissing-prototypes */
226 XS(XS_Wx__FSFile_GetStream)
234 croak_xs_usage(cv, "THIS");
236 wxFSFile * THIS = (wxFSFile *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FSFile" );
237 wxInputStream * RETVAL;
239 RETVAL = THIS->GetStream();
240 ST(0) = sv_newmortal();
241 wxPli_stream_2_sv( aTHX_ ST(0), RETVAL, "Wx::InputStream" );
247 #include "cpp/fshandler.h"
249 XS(XS_Wx__FSFile_new); /* prototype to pass -Wmissing-prototypes */
250 XS(XS_Wx__FSFile_new)
258 croak_xs_usage(cv, "CLASS, fh, loc, mimetype, anchor");
264 char * CLASS = (char *)SvPV_nolen(ST(0));
267 WXSTRING_INPUT( loc, wxString, ST(2) );
269 WXSTRING_INPUT( mimetype, wxString, ST(3) );
271 WXSTRING_INPUT( anchor, wxString, ST(4) );
272 RETVAL = new wxPlFSFile( fh, loc, mimetype, anchor );
273 ST(0) = sv_newmortal();
274 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::PlFSFile" );
275 wxPli_thread_sv_register( aTHX_ "Wx::PlFSFile", RETVAL, ST(0) );
282 /* INCLUDE: Returning to 'XS/FileSystemHandler.xs' from 'XS/FSFile.xs' */
284 #include <wx/filesys.h>
285 #include <wx/fs_inet.h>
286 #include <wx/fs_zip.h>
287 #include <wx/fs_mem.h>
290 #define XSubPPtmpAAAA 1
293 XS(XS_Wx__FileSystemHandler_GetAnchor); /* prototype to pass -Wmissing-prototypes */
294 XS(XS_Wx__FileSystemHandler_GetAnchor)
302 croak_xs_usage(cv, "THIS, location");
305 wxFileSystemHandler * THIS = (wxFileSystemHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystemHandler" );
308 WXSTRING_INPUT( location, wxString, ST(1) );
310 RETVAL = THIS->GetAnchor(location);
311 ST(0) = sv_newmortal();
312 WXSTRING_OUTPUT( RETVAL, ST(0) );
319 XS(XS_Wx__FileSystemHandler_GetLeftLocation); /* prototype to pass -Wmissing-prototypes */
320 XS(XS_Wx__FileSystemHandler_GetLeftLocation)
328 croak_xs_usage(cv, "THIS, location");
331 wxFileSystemHandler * THIS = (wxFileSystemHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystemHandler" );
334 WXSTRING_INPUT( location, wxString, ST(1) );
336 RETVAL = THIS->GetLeftLocation(location);
337 ST(0) = sv_newmortal();
338 WXSTRING_OUTPUT( RETVAL, ST(0) );
345 XS(XS_Wx__FileSystemHandler_GetMimeTypeFromExt); /* prototype to pass -Wmissing-prototypes */
346 XS(XS_Wx__FileSystemHandler_GetMimeTypeFromExt)
354 croak_xs_usage(cv, "THIS, location");
357 wxFileSystemHandler * THIS = (wxFileSystemHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystemHandler" );
360 WXSTRING_INPUT( location, wxString, ST(1) );
362 RETVAL = THIS->GetMimeTypeFromExt(location);
363 ST(0) = sv_newmortal();
364 WXSTRING_OUTPUT( RETVAL, ST(0) );
371 XS(XS_Wx__FileSystemHandler_GetProtocol); /* prototype to pass -Wmissing-prototypes */
372 XS(XS_Wx__FileSystemHandler_GetProtocol)
380 croak_xs_usage(cv, "THIS, location");
383 wxFileSystemHandler * THIS = (wxFileSystemHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystemHandler" );
386 WXSTRING_INPUT( location, wxString, ST(1) );
388 RETVAL = THIS->GetProtocol(location);
389 ST(0) = sv_newmortal();
390 WXSTRING_OUTPUT( RETVAL, ST(0) );
397 XS(XS_Wx__FileSystemHandler_GetRightLocation); /* prototype to pass -Wmissing-prototypes */
398 XS(XS_Wx__FileSystemHandler_GetRightLocation)
406 croak_xs_usage(cv, "THIS, location");
409 wxFileSystemHandler * THIS = (wxFileSystemHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystemHandler" );
412 WXSTRING_INPUT( location, wxString, ST(1) );
414 RETVAL = THIS->GetRightLocation(location);
415 ST(0) = sv_newmortal();
416 WXSTRING_OUTPUT( RETVAL, ST(0) );
424 #define XSubPPtmpAAAB 1
427 XS(XS_Wx__InternetFSHandler_new); /* prototype to pass -Wmissing-prototypes */
428 XS(XS_Wx__InternetFSHandler_new)
436 croak_xs_usage(cv, "CLASS");
438 char * CLASS = (char *)SvPV_nolen(ST(0));
439 wxInternetFSHandler * RETVAL;
441 RETVAL = new wxInternetFSHandler();
442 ST(0) = sv_newmortal();
443 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
451 XS(XS_Wx__ZipFSHandler_new); /* prototype to pass -Wmissing-prototypes */
452 XS(XS_Wx__ZipFSHandler_new)
460 croak_xs_usage(cv, "CLASS");
462 char * CLASS = (char *)SvPV_nolen(ST(0));
463 wxZipFSHandler * RETVAL;
465 RETVAL = new wxZipFSHandler();
466 ST(0) = sv_newmortal();
467 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
473 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
474 #define XSubPPtmpAAAC 1
477 XS(XS_Wx__ArchiveFSHandler_new); /* prototype to pass -Wmissing-prototypes */
478 XS(XS_Wx__ArchiveFSHandler_new)
486 croak_xs_usage(cv, "CLASS");
488 char * CLASS = (char *)SvPV_nolen(ST(0));
489 wxArchiveFSHandler * RETVAL;
491 RETVAL = new wxArchiveFSHandler();
492 ST(0) = sv_newmortal();
493 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
501 XS(XS_Wx__MemoryFSHandler_new); /* prototype to pass -Wmissing-prototypes */
502 XS(XS_Wx__MemoryFSHandler_new)
510 croak_xs_usage(cv, "CLASS");
512 char * CLASS = (char *)SvPV_nolen(ST(0));
513 wxMemoryFSHandler * RETVAL;
515 RETVAL = new wxMemoryFSHandler();
516 ST(0) = sv_newmortal();
517 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
524 XS(XS_Wx__MemoryFSHandler_AddImageFile); /* prototype to pass -Wmissing-prototypes */
525 XS(XS_Wx__MemoryFSHandler_AddImageFile)
533 croak_xs_usage(cv, "name, image, type");
536 wxImage* image = (wxImage *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Image" );
537 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
539 WXSTRING_INPUT( name, wxString, ST(0) );
540 wxMemoryFSHandler::AddFile( name, *image, type );
546 XS(XS_Wx__MemoryFSHandler_AddBitmapFile); /* prototype to pass -Wmissing-prototypes */
547 XS(XS_Wx__MemoryFSHandler_AddBitmapFile)
555 croak_xs_usage(cv, "name, bitmap, type");
558 wxBitmap* bitmap = (wxBitmap *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Bitmap" );
559 wxBitmapType type = (wxBitmapType)SvIV(ST(2));
561 WXSTRING_INPUT( name, wxString, ST(0) );
562 wxMemoryFSHandler::AddFile( name, *bitmap, type );
568 XS(XS_Wx__MemoryFSHandler_AddTextFile); /* prototype to pass -Wmissing-prototypes */
569 XS(XS_Wx__MemoryFSHandler_AddTextFile)
577 croak_xs_usage(cv, "name, string");
582 WXSTRING_INPUT( name, wxString, ST(0) );
584 WXSTRING_INPUT( string, wxString, ST(1) );
585 wxMemoryFSHandler::AddFile( name, string );
591 XS(XS_Wx__MemoryFSHandler_AddBinaryFile); /* prototype to pass -Wmissing-prototypes */
592 XS(XS_Wx__MemoryFSHandler_AddBinaryFile)
600 croak_xs_usage(cv, "name, scalar");
605 char* data = SvPV( scalar, len );
607 WXSTRING_INPUT( name, wxString, ST(0) );
608 wxMemoryFSHandler::AddFile( name, data, len );
613 #if WXPERL_W_VERSION_GE( 2, 8, 5 )
614 #define XSubPPtmpAAAD 1
617 XS(XS_Wx__MemoryFSHandler_AddTextFileWithMimeType); /* prototype to pass -Wmissing-prototypes */
618 XS(XS_Wx__MemoryFSHandler_AddTextFileWithMimeType)
626 croak_xs_usage(cv, "name, string, mimetype");
632 WXSTRING_INPUT( name, wxString, ST(0) );
634 WXSTRING_INPUT( string, wxString, ST(1) );
636 WXSTRING_INPUT( mimetype, wxString, ST(2) );
637 wxMemoryFSHandler::AddFileWithMimeType( name, string, mimetype );
643 XS(XS_Wx__MemoryFSHandler_AddBinaryFileWithMimeType); /* prototype to pass -Wmissing-prototypes */
644 XS(XS_Wx__MemoryFSHandler_AddBinaryFileWithMimeType)
652 croak_xs_usage(cv, "name, scalar, mimetype");
658 char* data = SvPV( scalar, len );
660 WXSTRING_INPUT( name, wxString, ST(0) );
662 WXSTRING_INPUT( mimetype, wxString, ST(2) );
663 wxMemoryFSHandler::AddFileWithMimeType( name, data, len, mimetype );
670 XS(XS_Wx__MemoryFSHandler_RemoveFile); /* prototype to pass -Wmissing-prototypes */
671 XS(XS_Wx__MemoryFSHandler_RemoveFile)
679 croak_xs_usage(cv, "name");
683 WXSTRING_INPUT( name, wxString, ST(0) );
684 wxMemoryFSHandler::RemoveFile( name );
689 #include "cpp/fshandler.h"
691 XS(XS_Wx__PlFileSystemHandler_new); /* prototype to pass -Wmissing-prototypes */
692 XS(XS_Wx__PlFileSystemHandler_new)
700 croak_xs_usage(cv, "CLASS");
702 char * CLASS = (char *)SvPV_nolen(ST(0));
703 wxPlFileSystemHandler * RETVAL;
704 RETVAL = new wxPlFileSystemHandler( CLASS );
705 ST(0) = sv_newmortal();
706 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
713 /* INCLUDE: Returning to 'XS/FileSystem.xs' from 'XS/FileSystemHandler.xs' */
715 #include <wx/filesys.h>
717 XS(XS_Wx__FileSystem_new); /* prototype to pass -Wmissing-prototypes */
718 XS(XS_Wx__FileSystem_new)
726 croak_xs_usage(cv, "CLASS");
728 char * CLASS = (char *)SvPV_nolen(ST(0));
729 wxFileSystem * RETVAL;
731 RETVAL = new wxFileSystem();
732 ST(0) = sv_newmortal();
733 wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
734 wxPli_thread_sv_register( aTHX_ "Wx::FileSystem", RETVAL, ST(0) );
741 XS(XS_Wx__FileSystem_CLONE); /* prototype to pass -Wmissing-prototypes */
742 XS(XS_Wx__FileSystem_CLONE)
750 croak_xs_usage(cv, "CLASS");
752 char * CLASS = (char *)SvPV_nolen(ST(0));
753 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
759 XS(XS_Wx__FileSystem_DESTROY); /* prototype to pass -Wmissing-prototypes */
760 XS(XS_Wx__FileSystem_DESTROY)
768 croak_xs_usage(cv, "THIS");
770 wxFileSystem * THIS = (wxFileSystem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystem" );
771 wxPli_thread_sv_unregister( aTHX_ "Wx::FileSystem", THIS, ST(0) );
772 if( wxPli_object_is_deleteable( aTHX_ ST(0) ) )
779 XS(XS_Wx__FileSystem_AddHandler); /* prototype to pass -Wmissing-prototypes */
780 XS(XS_Wx__FileSystem_AddHandler)
788 croak_xs_usage(cv, "handler");
790 wxFileSystemHandler* handler = (wxFileSystemHandler *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystemHandler" );
791 wxFileSystem::AddHandler( handler );
796 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
797 #define XSubPPtmpAAAE 1
800 XS(XS_Wx__FileSystem_HasHandlerForPath); /* prototype to pass -Wmissing-prototypes */
801 XS(XS_Wx__FileSystem_HasHandlerForPath)
809 croak_xs_usage(cv, "location");
814 WXSTRING_INPUT( location, wxString, ST(0) );
815 RETVAL = wxFileSystem::HasHandlerForPath( location );
816 ST(0) = boolSV(RETVAL);
824 XS(XS_Wx__FileSystem_ChangePathTo); /* prototype to pass -Wmissing-prototypes */
825 XS(XS_Wx__FileSystem_ChangePathTo)
832 if (items < 2 || items > 3)
833 croak_xs_usage(cv, "THIS, location, is_dir = false");
837 wxFileSystem * THIS = (wxFileSystem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystem" );
839 WXSTRING_INPUT( location, wxString, ST(1) );
844 is_dir = (bool)SvTRUE(ST(2));
847 THIS->ChangePathTo(location, is_dir);
853 XS(XS_Wx__FileSystem_GetPath); /* prototype to pass -Wmissing-prototypes */
854 XS(XS_Wx__FileSystem_GetPath)
862 croak_xs_usage(cv, "THIS");
864 wxFileSystem * THIS = (wxFileSystem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystem" );
867 RETVAL = THIS->GetPath();
868 ST(0) = sv_newmortal();
869 WXSTRING_OUTPUT( RETVAL, ST(0) );
876 XS(XS_Wx__FileSystem_FindFirst); /* prototype to pass -Wmissing-prototypes */
877 XS(XS_Wx__FileSystem_FindFirst)
884 if (items < 2 || items > 3)
885 croak_xs_usage(cv, "THIS, wildcard, flags = 0");
889 wxFileSystem * THIS = (wxFileSystem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystem" );
892 WXSTRING_INPUT( wildcard, wxString, ST(1) );
897 flags = (int)SvIV(ST(2));
900 RETVAL = THIS->FindFirst(wildcard, flags);
901 ST(0) = sv_newmortal();
902 WXSTRING_OUTPUT( RETVAL, ST(0) );
909 XS(XS_Wx__FileSystem_FindNext); /* prototype to pass -Wmissing-prototypes */
910 XS(XS_Wx__FileSystem_FindNext)
918 croak_xs_usage(cv, "THIS");
920 wxFileSystem * THIS = (wxFileSystem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystem" );
923 RETVAL = THIS->FindNext();
924 ST(0) = sv_newmortal();
925 WXSTRING_OUTPUT( RETVAL, ST(0) );
931 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
932 #define XSubPPtmpAAAF 1
935 XS(XS_Wx__FileSystem_FindFileInPath); /* prototype to pass -Wmissing-prototypes */
936 XS(XS_Wx__FileSystem_FindFileInPath)
944 croak_xs_usage(cv, "THIS, path, file");
948 wxFileSystem * THIS = (wxFileSystem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystem" );
951 WXSTRING_INPUT( path, wxString, ST(1) );
953 WXSTRING_INPUT( file, wxString, ST(2) );
954 bool ret = THIS->FindFileInPath( &RETVAL, path, file );
957 ST(0) = sv_newmortal();
958 WXSTRING_OUTPUT( RETVAL, ST(0) );
965 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
966 #define XSubPPtmpAAAG 1
969 XS(XS_Wx__FileSystem_OpenFile); /* prototype to pass -Wmissing-prototypes */
970 XS(XS_Wx__FileSystem_OpenFile)
977 if (items < 2 || items > 3)
978 croak_xs_usage(cv, "THIS, location, flags = wxFS_READ");
982 wxFileSystem * THIS = (wxFileSystem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystem" );
985 WXSTRING_INPUT( location, wxString, ST(1) );
990 flags = (int)SvIV(ST(2));
993 RETVAL = THIS->OpenFile(location, flags);
994 ST(0) = sv_newmortal();
995 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::FSFile" );
996 wxPli_thread_sv_register( aTHX_ "Wx::FSFile", RETVAL, ST(0) );
1003 #define XSubPPtmpAAAH 1
1006 XS(XS_Wx__FileSystem_OpenFile); /* prototype to pass -Wmissing-prototypes */
1007 XS(XS_Wx__FileSystem_OpenFile)
1015 croak_xs_usage(cv, "THIS, location");
1018 wxFileSystem * THIS = (wxFileSystem *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::FileSystem" );
1021 WXSTRING_INPUT( location, wxString, ST(1) );
1023 RETVAL = THIS->OpenFile(location);
1024 ST(0) = sv_newmortal();
1025 wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::FSFile" );
1026 wxPli_thread_sv_register( aTHX_ "Wx::FSFile", RETVAL, ST(0) );
1034 /* INCLUDE: Returning to 'FS.xs' from 'XS/FileSystem.xs' */
1036 #if defined(__WXMSW__)
1038 #define XS( name ) WXXS( name )
1043 XS(boot_Wx__FS); /* prototype to pass -Wmissing-prototypes */
1051 #if (PERL_REVISION == 5 && PERL_VERSION < 9)
1052 char* file = __FILE__;
1054 const char* file = __FILE__;
1057 PERL_UNUSED_VAR(cv); /* -W */
1058 PERL_UNUSED_VAR(items); /* -W */
1059 XS_VERSION_BOOTCHECK ;
1061 newXS("Wx::FSFile::CLONE", XS_Wx__FSFile_CLONE, file);
1062 newXS("Wx::FSFile::DESTROY", XS_Wx__FSFile_DESTROY, file);
1063 newXS("Wx::FSFile::GetAnchor", XS_Wx__FSFile_GetAnchor, file);
1064 newXS("Wx::FSFile::GetLocation", XS_Wx__FSFile_GetLocation, file);
1065 newXS("Wx::FSFile::GetMimeType", XS_Wx__FSFile_GetMimeType, file);
1066 newXS("Wx::FSFile::GetStream", XS_Wx__FSFile_GetStream, file);
1067 newXS("Wx::FSFile::new", XS_Wx__FSFile_new, file);
1069 newXS("Wx::FileSystemHandler::GetAnchor", XS_Wx__FileSystemHandler_GetAnchor, file);
1070 newXS("Wx::FileSystemHandler::GetLeftLocation", XS_Wx__FileSystemHandler_GetLeftLocation, file);
1071 newXS("Wx::FileSystemHandler::GetMimeTypeFromExt", XS_Wx__FileSystemHandler_GetMimeTypeFromExt, file);
1072 newXS("Wx::FileSystemHandler::GetProtocol", XS_Wx__FileSystemHandler_GetProtocol, file);
1073 newXS("Wx::FileSystemHandler::GetRightLocation", XS_Wx__FileSystemHandler_GetRightLocation, file);
1076 newXS("Wx::InternetFSHandler::new", XS_Wx__InternetFSHandler_new, file);
1078 newXS("Wx::ZipFSHandler::new", XS_Wx__ZipFSHandler_new, file);
1080 newXS("Wx::ArchiveFSHandler::new", XS_Wx__ArchiveFSHandler_new, file);
1082 newXS("Wx::MemoryFSHandler::new", XS_Wx__MemoryFSHandler_new, file);
1083 newXS("Wx::MemoryFSHandler::AddImageFile", XS_Wx__MemoryFSHandler_AddImageFile, file);
1084 newXS("Wx::MemoryFSHandler::AddBitmapFile", XS_Wx__MemoryFSHandler_AddBitmapFile, file);
1085 newXS("Wx::MemoryFSHandler::AddTextFile", XS_Wx__MemoryFSHandler_AddTextFile, file);
1086 newXS("Wx::MemoryFSHandler::AddBinaryFile", XS_Wx__MemoryFSHandler_AddBinaryFile, file);
1088 newXS("Wx::MemoryFSHandler::AddTextFileWithMimeType", XS_Wx__MemoryFSHandler_AddTextFileWithMimeType, file);
1089 newXS("Wx::MemoryFSHandler::AddBinaryFileWithMimeType", XS_Wx__MemoryFSHandler_AddBinaryFileWithMimeType, file);
1091 newXS("Wx::MemoryFSHandler::RemoveFile", XS_Wx__MemoryFSHandler_RemoveFile, file);
1092 newXS("Wx::PlFileSystemHandler::new", XS_Wx__PlFileSystemHandler_new, file);
1093 newXS("Wx::FileSystem::new", XS_Wx__FileSystem_new, file);
1094 newXS("Wx::FileSystem::CLONE", XS_Wx__FileSystem_CLONE, file);
1095 newXS("Wx::FileSystem::DESTROY", XS_Wx__FileSystem_DESTROY, file);
1096 newXS("Wx::FileSystem::AddHandler", XS_Wx__FileSystem_AddHandler, file);
1098 newXS("Wx::FileSystem::HasHandlerForPath", XS_Wx__FileSystem_HasHandlerForPath, file);
1100 newXS("Wx::FileSystem::ChangePathTo", XS_Wx__FileSystem_ChangePathTo, file);
1101 newXS("Wx::FileSystem::GetPath", XS_Wx__FileSystem_GetPath, file);
1102 newXS("Wx::FileSystem::FindFirst", XS_Wx__FileSystem_FindFirst, file);
1103 newXS("Wx::FileSystem::FindNext", XS_Wx__FileSystem_FindNext, file);
1105 newXS("Wx::FileSystem::FindFileInPath", XS_Wx__FileSystem_FindFileInPath, file);
1108 newXS("Wx::FileSystem::OpenFile", XS_Wx__FileSystem_OpenFile, file);
1111 newXS("Wx::FileSystem::OpenFile", XS_Wx__FileSystem_OpenFile, file);
1114 /* Initialisation Section */
1116 INIT_PLI_HELPERS( wx_pli_helpers );
1135 /* End of Initialisation Section */
1137 #if (PERL_REVISION == 5 && PERL_VERSION >= 9)
1139 call_list(PL_scopestack_ix, PL_unitcheckav);