oma.h File Reference
Header for the core libOMA library. More...
Go to the source code of this file.
Functions | |
OMAAPI OMAenum OMAAPIENTRY | omaGetError (void) |
Return error information. | |
OMAAPI const OMAubyte *OMAAPIENTRY | omaGetString (OMAenum pname) |
Return a string describing OMA. | |
OMAAPI void *OMAAPIENTRY | omaGetProcAddress (const OMAubyte *which) |
Returns the address of a function. | |
OMAAPI OMAboolean OMAAPIENTRY | omaGetBoolean (OMAenum pname) |
Return the value of a selected boolean parameter. | |
OMAAPI void OMAAPIENTRY | omaGetBooleanv (OMAenum pname, OMAboolean *params) |
Return the value or values of a selected boolean parameter. | |
OMAAPI OMAint OMAAPIENTRY | omaGetInteger (OMAenum pname) |
Return the value of a selected integer parameter. | |
OMAAPI void OMAAPIENTRY | omaGetIntegerv (OMAenum pname, OMAint *params) |
Return the value or values of a selected integer parameter. | |
OMAAPI void OMAAPIENTRY | omaGetFloatv (OMAenum pname, OMAfloat *params) |
Return the value or values of a selected floating point parameter. | |
OMAAPI void OMAAPIENTRY | omaGetDoublev (OMAenum pname, OMAdouble *params) |
Return the value or values of a selected double precision floating point parameter. | |
OMAAPI void OMAAPIENTRY | omaInit (void) |
Initializes an OMA context. | |
OMAAPI void OMAAPIENTRY | omaShutdown (void) |
Shuts down an OMA context. | |
OMAAPI void OMAAPIENTRY | omaPushAttrib (OMAbitfield mask) |
Push the server attribute stack. | |
OMAAPI void OMAAPIENTRY | omaPopAttrib (void) |
Pop the server attribute stack. | |
OMAAPI void OMAAPIENTRY | omaBindChunk (OMAuint name) |
Bind a named chunk. | |
OMAAPI void OMAAPIENTRY | omaDeleteChunks (OMAsizei n, const OMAuint *chunks) |
Delete named chunks. | |
OMAAPI void OMAAPIENTRY | omaGenChunks (OMAsizei n, OMAuint *chunks) |
Generate chunk names. | |
OMAAPI OMAboolean OMAAPIENTRY | omaIsChunk (OMAuint name) |
Determine if a name corresponds to a chunk. | |
OMAAPI OMAint OMAAPIENTRY | omaGetChunkParameteri (OMAenum pname) |
Return integer chunk parameter values. | |
OMAAPI void OMAAPIENTRY | omaGetChunkParameteriv (OMAenum pname, OMAint *params) |
Return integer chunk parameter values. | |
OMAAPI void *OMAAPIENTRY | omaGetChunkPointer (OMAenum pname) |
Return chunk pointer values. | |
OMAAPI void OMAAPIENTRY | omaGetChunkPointerv (OMAenum pname, void **params) |
Return chunk pointer values. | |
OMAAPI void OMAAPIENTRY | omaChunkData (OMAenum type, OMAsizeiptr size, const OMAvoid *data) |
Define the type and data of a chunk. | |
OMAAPI void OMAAPIENTRY | omaChunkSubData (OMAintptr offset, OMAsizeiptr size, const OMAvoid *data) |
Specify a subregion of chunk data. | |
OMAAPI void OMAAPIENTRY | omaGetChunkSubData (OMAintptr offset, OMAsizeiptr size, OMAvoid *data) |
Queries the data contents of a chunk object. | |
OMAAPI void *OMAAPIENTRY | omaMapChunk (OMAenum access) |
Maps the data store of a chunk into the client's address space. | |
OMAAPI void OMAAPIENTRY | omaUnmapChunk (void) |
Unmaps the data store of a chunk. | |
OMAAPI void OMAAPIENTRY | omaLoadPath (OMAenum format, const OMAubyte *path) |
Loads a path into the currently bound chunk. | |
OMAAPI void OMAAPIENTRY | omaLoadBuffer (OMAenum format, const OMAubyte *buffer, OMAsizeiptr size) |
Loads a buffer into the currently bound chunk. |
Detailed Description
Function Documentation
|
omaBindChunk binds the chunk named name. If the name does not exist, it is created. When a chunk is bound, the previous binding is broken.
|
|
omaChunkData sets the type and data of the bound chunk.
|
|
omaChunkSubData redefines a contiguous subregion of an existing chunk.
|
|
omaDeleteChunks deletes n chunks named by the elements of the array chunks. After a chunk is deleted, it has no contents, and its name is free for reuse (for example by omaGenChunks). If a chunk that is currently bound is deleted, the binding reverts to 0 (the default chunk). omaDeleteChunks silently ignores zeros and names that do not correspond to existing chunks.
|
|
omaGenChunks returns n chunk names in chunks. There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names was in use immediately before the call to omaGenChunks. The generated chunks can initially be of any type and contain no data. Chunk names returned by a call to omaGenChunks are not returned by subsequent calls, unless they are first deleted with omaDeleteChunks.
|
|
Returns simple boolean state variables in OMA.
|
|
Returns simple boolean state variables in OMA.
|
|
omaGetChunkParameteri returns the value of the chunk parameter specified as pname.
|
|
omaGetChunkParameteriv returns in params the value or values of the chunk parameter specified as pname.
|
|
omaGetChunkPointer returns the value of the chunk pointer specified as pname.
|
|
omaGetChunkPointerv returns in params the value of the chunk pointer specified as pname.
|
|
omaGetChunkSubData queries the data contents of a chunk object and stores the results in data.
|
|
Returns simple double precision floating point state variables in OMA.
|
|
omaGetError returns the value of the error flag. Each detectable error is assigned a numeric code and symbolic name. When an error occurs, the error flag is set to the appropriate error code value. No other errors are recorded until omaGetError is called, the error code is returned, and the flag is reset to OMA_NO_ERROR. If a call to omaGetError returns OMA_NO_ERROR, there has been no detectable error since the last call to omaGetError, or since OMA was initialized.
|
|
Returns simple floating point state variables in OMA.
|
|
Returns simple integer state variables in OMA.
|
|
Returns simple integer state variables in OMA.
|
|
omaGetProcAddress returns a pointer to a function looked up by name.
|
|
omaGetString returns a pointer to a static string describing some aspect of OMA.
|
|
Sets up a usable OMA context for this process. Prior to calling this function, no other OMA functions can be called. omaShutdown must be called at some point after this being called. |
|
omaIsChunk returns OMA_TRUE if name is currently the name of a chunk. If chunk is zero, or is a non-zero value that is not currently the name of a chunk, or if an error occurs, omaIsChunk returns OMA_FALSE.
|
|
omaLoadBuffer sets the current chunk to an OMA_SET of names loaded from the specified buffer.
|
|
omaLoadPath sets the current chunk to an OMA_SET of names loaded from the specified path.
|
|
omaMapChunk maps the entire data store of a chunk object into the client's address space.
|
|
omaPopAttrib restores the values of the state variables saved with the last omaPushAttrib command. Those not saved are left unchanged. It is an error to push attributes onto a full stack, or to pop attributes off an empty stack. In either case, the error flag is set and no other change is made to OMA state. Initially, the attribute stack is empty.
|
|
omaPushAttrib takes one argument, a mask that indicates which groups of state variables to save on the attribute stack. Symbolic constants are used to set bits in the mask. mask is typically constructed by ORing several of these constants together. The special mask OMA_ALL_ATTRIB_BITS can be used to save all stackable states. The symbolic mask constants and their associated OMA state are as follows:
|
|
Releases all resources pertaining to this process's OMA context. After calling this function no OMA functions besides omaInit can be called. |
|
omaUnmapChunk unmaps the chunk's data store from the client memory.
|