# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 296
- 297
- 298
- 299
- 300
…
- 373
- 374

1.6.2.3.1 GFX_GOL_ObjectAdd Function
This function adds an object to the tail of the currently active list.
File
gfx_gol.h
Syntax
void GFX_GOL_ObjectAdd(GFX_GOL_OBJ_HEADER * pObject);
Returns
None.
Description
This function adds an object to the tail of the currently active list. The new list tail is set to point to NULL after the new object
is added.
Preconditions
None.
Example
void MoveObject( GFX_GOL_OBJ_HEADER *pSrcList,
GFX_GOL_OBJ_HEADER *pDstList,
GFX_GOL_OBJ_HEADER *pObjtoMove)
{
GFX_GOL_OBJ_HEADER *pTemp = pSrcList;
if(pTemp != pObjtoMove)
{
while(pTemp->pNxtObj != pObjtoMove)
pTemp = pTemp->pNxtObj;
}
pTemp->pNxtObj = pObjtoMove->pNxt; // remove object from list
GFX_GOL_ObjectListSet(pDstList); // destination as active list
GFX_GOL_ObjectAdd(pObjtoMove); // add object to active list
}
Function
void GFX_GOL_ObjectAdd( GFX_GOL_OBJ_HEADER *pObject)
1.6.2.3.2 GFX_GOL_ObjectByIDDelete Function
This function removes an object with the given user defined ID from the currently active list.
File
gfx_gol.h
Syntax
GFX_STATUS GFX_GOL_ObjectByIDDelete(uint16_t id);
Returns
GFX_STATUS_SUCCESS - is returned if the removal was successful. GFX_STATUS_FAILURE - is returned if the removal
was not successful.
Description
This function removes an object with the given user defined ID from the currently active list. Aside from the removal of the
object from the list, the RAM resources consumed by the object is also freed.
If there is no object with the given ID, the function exits with GFX_STATUS_FAILURE.
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
298

- 1
- 2
…
- 296
- 297
- 298
- 299
- 300
…
- 373
- 374