2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2015-07-30 03:56:23 +02:00
|
|
|
#include "Emu/Memory/Memory.h"
|
|
|
|
|
#include "Emu/SysCalls/Modules.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-09-08 15:53:28 +02:00
|
|
|
extern Module<> cellPrint;
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
// Error Codes
|
|
|
|
|
enum
|
|
|
|
|
{
|
2014-04-04 15:25:38 +02:00
|
|
|
CELL_PRINT_ERROR_INTERNAL = 0x8002c401,
|
|
|
|
|
CELL_PRINT_ERROR_NO_MEMORY = 0x8002c402,
|
|
|
|
|
CELL_PRINT_ERROR_PRINTER_NOT_FOUND = 0x8002c403,
|
|
|
|
|
CELL_PRINT_ERROR_INVALID_PARAM = 0x8002c404,
|
|
|
|
|
CELL_PRINT_ERROR_INVALID_FUNCTION = 0x8002c405,
|
|
|
|
|
CELL_PRINT_ERROR_NOT_SUPPORT = 0x8002c406,
|
|
|
|
|
CELL_PRINT_ERROR_OCCURRED = 0x8002c407,
|
|
|
|
|
CELL_PRINT_ERROR_CANCELED_BY_PRINTER = 0x8002c408,
|
2013-09-28 04:36:57 +02:00
|
|
|
};
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellSysutilPrintInit()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellSysutilPrintShutdown()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintLoadAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintLoadAsync2()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintUnloadAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintGetStatus()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintOpenConfig()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintGetPrintableArea()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintStartJob()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintEndJob()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintCancelJob()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintStartPage()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:56:23 +02:00
|
|
|
s32 cellPrintEndPage()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-30 03:56:23 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s32 cellPrintSendBand()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellPrint);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-08 15:53:28 +02:00
|
|
|
Module<> cellPrint("cellPrint", []()
|
2015-07-30 03:56:23 +02:00
|
|
|
{
|
|
|
|
|
REG_FUNC(cellPrint, cellSysutilPrintInit);
|
|
|
|
|
REG_FUNC(cellPrint, cellSysutilPrintShutdown);
|
|
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellPrint, cellPrintLoadAsync);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintLoadAsync2);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintUnloadAsync);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintGetStatus);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintOpenConfig);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintGetPrintableArea);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintStartJob);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintEndJob);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintCancelJob);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintStartPage);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintEndPage);
|
|
|
|
|
REG_FUNC(cellPrint, cellPrintSendBand);
|
2015-07-30 03:56:23 +02:00
|
|
|
});
|