Message-ID: <2F7D63A21DB2C74EB8EB8C09AF667DB00559CC10@eitc220.eitc.epson.com> From: "Petrie, Glen" Date: Mon, 20 Aug 2007 09:58:09 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7E34B.4918E5D8" Subject: [Printing-architecture] I have update OPEP files List-Id: Printing architecture under linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "'printing-architecture@lists.freestandards.org'" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C7E34B.4918E5D8 Content-Type: text/plain 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/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/Ope pCommon/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/Ope pCommon/inc/opEnums.h ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Ope pCommon/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 ------_=_NextPart_001_01C7E34B.4918E5D8 Content-Type: text/html Content-Transfer-Encoding: quoted-printable 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/opepCurre= nt/opepSoftware/JobTicket_Lib/inc/opJTAPI.h 

ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCu= rrent/opepSoftware/JobTicket_Lib/src/opJTAPI.c 

ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepS= oftware/OpepCommon/inc/opPrintIO.h

ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepS= oftware/OpepCommon/src/opPrintIO.c

ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepS= oftware/OpepCommon/inc/opGeneric.h

ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/OpepCommon/inc/opEnums.h

ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/OpepCommon/i= nc/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

------_=_NextPart_001_01C7E34B.4918E5D8--