Print plugin

From PS3 Developer wiki
Revision as of 02:48, 6 April 2014 by Mysis (talk | contribs) (→‎1 Interface)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The print_plugin.sprx uses two execution modes. Based on which mode it sets up a different plugin interface table.

1 Identifier:

  • 1 (Global, for both modes)

1 Interface[edit | edit source]

contains 17 subs:


0: - Printer Selection
1: p_open, 2 Parameter: void * callback, int - Printer Open
2: p_j_start, 2 Parameter: void *callback, int - Printer Manager
3: p_j_end/p_j_abort, 0 Parameter:

4 - 8 on exeuction mode = 1 will only return 1

4: 
5: 
6: 
7: 
8:

9 - 16 apply to execution mode = 1, mode = 0 only returns 1

9: printStartJob, 2 Parameter: int total_page, int color_format 
10: printEndJob, 0 Parameter
11: printCancelJob, 0 Parameter
12: printStartPage, 0 Parameter
13: printEndPage, 0 Parameter
14: printGetPrintableArea, 2 Parameter: int *pixelWidth, int *pixelHeight
15: printSendBand, 3 Parameter: const unsigned char *buff, int buffsize, int *sendsize
16: printGetStatus, 1 Parameter: uint8_t *status [] {int status;    int errorStatus;    int continueEnabled;    unsigned char reserved[32]}