I have update OPEP files
All,
It has been a few days since I sent out any new information (someone told me "I needed time to develop a story" for why I have made changes to the original JTAPI's; not true!!! The changes were chosen to eliminate internal overhead associated with the existing API definitions that would not be suitable for an embedded environment (is that a story?).
In the OPEP-JTAPI file there was one principle API change I wanted to provide rational ("a story") for.
1. Added Object (type) to some API's and Attribute ID (type) enum to most
API's. Together, these changes....
a. ...removes the unnecessary overhead of internal managing "floating"
objects/attributes and a second binding step
i. "floating" objects/attributes are memory leaks happening!
b. The caller will in generally know the type of object/attribute type
they are working on. Therefore, why does
the OPEP-JTAPI's accept only a pointer and try to figure out what
this object/attribute is.; just more unnecessary overhead.
Other overall things that you may note.
--- The internal job-ticket I create and manage contains a private copy of any data. From experience, it is not a good idea to assume that memory allocations created by the calling entity will not be freed without
informing you. I have experienced a calling entity recycling
variables/pointers; so, if the internal job-ticket does not create it own copy of data, the data could change which really represents something else!!! Thus, using this methodology, the calling entity is responsible for their pointers and memory allocations and the JTAPI is responsible for
internal pointers and memory allocations. Under the current
implementation, the structs I have defined and used internally can be made
completely invisible to the calling entity. However, my intent is that
the calling entity has access to the internal job-ticket. It is the convenient place for both sides to keep the pointers and data. Of course this means, the calling entity could alter the internal job-ticket directly; oh well.
I took other liberties
Changed "Destroy" to "Free" (I think that "free" is something I am more used to and representative versus "destroy").
Added a opjtSetValue. Note that opjtReplaceValue just calls opjtSetValue.
ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Job Ticket_Lib/inc/opJTAPI.h <ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Jo bTicket_Lib/inc/opJTAPI.h> ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Job Ticket_Lib/src/opJTAPI.c ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Ope pCommon/inc/opPrintIO.h <ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Op epCommon/inc/opPrintIO.h> ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Ope pCommon/src/opPrintIO.c <ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Op epCommon/src/opPrintIO.c> ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Ope pCommon/inc/opGeneric.h <ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Op epCommon/inc/opGeneric.h> ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Ope pCommon/inc/opEnums.h <ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Op epCommon/inc/opEnums.h> ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Ope pCommon/inc/opJobStructs.h <ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Op epCommon/inc/opJobStructs.h>
Rgds,
Glen W. Petrie
Epson Imaging Technology Center
2580 Orchard Parkway, Suite 200
San Jose, CA, 95131
Voice: 408.576.4131 Fax: 408.474.0511