%{
#include "helpers.h"
+#include "pyistream.h"
#include <wx/filesys.h>
#include <wx/fs_inet.h>
#include <wx/fs_mem.h>
return wxFileSystemHandler::GetRightLocation(location);
}
- wxString GetMimeTypeFromExt(const wxString& location){
+ wxString GetMimeTypeFromExt(const wxString& location) {
return wxFileSystemHandler::GetMimeTypeFromExt(location);
}
wxMemoryFSHandler::AddFile(filename, bitmap, type);
}
-// void __wxMemoryFSHandler_AddFile_wxString(const wxString& filename,
-// const wxString& textdata) {
-// wxMemoryFSHandler::AddFile(filename, textdata);
-// }
-
void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
PyObject* data) {
wxMemoryFSHandler::AddFile(filename,
+ // TODO: Verify data type
(void*)PyString_AsString(data),
(size_t)PyString_Size(data));
}