aboutsummaryrefslogtreecommitdiffstats
path: root/sisinstall/fakepsion.cpp
blob: 3eaba18ec7f73c7280aad055d0681f560dc7a1c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include "fakepsion.h"
#include "sistypes.h"

#include <stdio.h>

FakePsion::~FakePsion()
{
}

bool
FakePsion::connect()
{
	return true;
}

Enum<rfsv::errs>
FakePsion::copyToPsion(const char * const from, const char * const to,
				   void *, cpCallback_t func)
{
	if (logLevel >= 1)
		printf(" -- Not really copying %s to %s\n", from, to);
	return rfsv::E_PSI_GEN_NONE;
}

Enum<rfsv::errs>
FakePsion::devinfo(const char drive, PlpDrive& plpDrive)
{
	return rfsv::E_PSI_GEN_NONE;
}

Enum<rfsv::errs>
FakePsion::devlist(u_int32_t& devbits)
{
	return rfsv::E_PSI_GEN_FAIL;
}

Enum<rfsv::errs>
FakePsion::dir(const char* dir, PlpDir& files)
{
	return rfsv::E_PSI_GEN_NONE;
}

bool
FakePsion::dirExists(const char* name)
{
	return true;
}

void
FakePsion::disconnect()
{
}

Enum<rfsv::errs>
FakePsion::mkdir(const char* dir)
{
	if (logLevel >= 1)
		printf(" -- Not really creating dir %s\n", dir);
	return rfsv::E_PSI_GEN_NONE;
}

void
FakePsion::remove(const char* name)
{
}