# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 302
- 303
- 304
- 305
- 306
…
- 373
- 374

Returns
GFX_STATUS_SUCCESS - is returned if the free was successful. GFX_STATUS_FAILURE - is returned if the free was not
successful.
Description
This function frees all the memory used by objects in the active list and initializes the active list pointer to NULL to start a
new empty list. This function must be called only inside the GFX_GOL_ObjectDrawCallback() function when using
GFX_GOL_ObjectListDraw() and GFX_GOL_ObjectMessage() functions. This requirement assures that primitive rendering
settings are not altered by the rendering state machines of the objects.
Preconditions
None.
Example
void DeletePage(GFX_GOL_OBJ_HEADER *pPage)
{
GFX_GOL_OBJ_HEADER *pTemp;
// assuming pPage is different from the current active list
// save the active list
pTemp = GFX_GOL_ObjectListGet();
// set list as active list
GFX_GOL_ObjectListSet(pPage);
// pPage objects are deleted
GFX_GOL_ObjectListFree();
// restore the active list
GFX_GOL_ObjectListSet(pTemp);
}
Function
GFX_STATUS GFX_GOL_ObjectListFree(void)
1.6.2.3.12 GFX_GOL_ObjectListGet Function
This function returns the current active list.
File
gfx_gol.h
Syntax
GFX_GOL_OBJ_HEADER * GFX_GOL_ObjectListGet();
Returns
Pointer (type GFX_GOL_OBJ_HEADER) to the current active list.
Description
This function returns the pointer to the current active.
Preconditions
None.
Example
See GFX_GOL_ObjectListNew() for example code.
Function
GFX_GOL_OBJ_HEADER *GFX_GOL_ObjectListGet(void)
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
304

- 1
- 2
…
- 302
- 303
- 304
- 305
- 306
…
- 373
- 374