1 ////////////////////////////////////////////////////////////////////////////////////////
2 //
3 // Nestopia - NES/Famicom emulator written in C++
4 //
5 // Copyright (C) 2003-2008 Martin Freij
6 //
7 // This file is part of Nestopia.
8 //
9 // Nestopia is free software; you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation; either version 2 of the License, or
12 // (at your option) any later version.
13 //
14 // Nestopia is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with Nestopia; if not, write to the Free Software
21 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22 //
23 ////////////////////////////////////////////////////////////////////////////////////////
24 
25 #include "NstApiUser.hpp"
26 
27 namespace Nes
28 {
29 	namespace Api
30 	{
31 		User::LogCaller      User::logCallback;
32 		User::EventCaller    User::eventCallback;
33 		User::QuestionCaller User::questionCallback;
34 		User::FileIoCaller   User::fileIoCallback;
35 
GetName() const36 		const wchar_t* User::File::GetName() const throw()
37 		{
38 			return L"";
39 		}
40 
GetId() const41 		uint User::File::GetId() const throw()
42 		{
43 			return 0;
44 		}
45 
GetMaxSize() const46 		ulong User::File::GetMaxSize() const throw()
47 		{
48 			return ULONG_MAX;
49 		}
50 
GetContent(const void * &,ulong &) const51 		Result User::File::GetContent(const void*&,ulong&) const throw()
52 		{
53 			return RESULT_ERR_NOT_READY;
54 		}
55 
GetContent(std::ostream &) const56 		Result User::File::GetContent(std::ostream&) const throw()
57 		{
58 			return RESULT_ERR_NOT_READY;
59 		}
60 
GetPatchContent(Patch,std::ostream &) const61 		Result User::File::GetPatchContent(Patch,std::ostream&) const throw()
62 		{
63 			return RESULT_ERR_NOT_READY;
64 		}
65 
SetContent(const void *,ulong)66 		Result User::File::SetContent(const void*,ulong) throw()
67 		{
68 			return RESULT_ERR_NOT_READY;
69 		}
70 
SetContent(std::istream &)71 		Result User::File::SetContent(std::istream&) throw()
72 		{
73 			return RESULT_ERR_NOT_READY;
74 		}
75 
SetPatchContent(std::istream &)76 		Result User::File::SetPatchContent(std::istream&) throw()
77 		{
78 			return RESULT_ERR_NOT_READY;
79 		}
80 
SetSampleContent(const void *,ulong,bool,uint,ulong)81 		Result User::File::SetSampleContent(const void*,ulong,bool,uint,ulong) throw()
82 		{
83 			return RESULT_ERR_NOT_READY;
84 		}
85 
GetRawStorage(void * & data,ulong & size) const86 		void User::File::GetRawStorage(void*& data, ulong& size) const throw()
87 		{
88 			data = 0;
89 			size = 0;
90 		}
91 	}
92 }
93