# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

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

1.6.2.3.13 GFX_GOL_ObjectListNew 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_ObjectListNew();
Returns
GFX_STATUS_SUCCESS - is returned if the new list start was successful. GFX_STATUS_FAILURE - is returned if the new
list start was not successful.
Description
This function starts a new linked list of objects and resets the keyboard focus to none. This function assigns the current
active list and current focused object (receiving keyboard inputs) object pointers to NULL. Any keyboard inputs at this point
will be ignored.
This function does not erase the objects in the previous list. Application must save the previous list to another pointer if to be
referenced later. If not needed anymore, memory used by that list should be freed by GFX_GOL_ObjectListFree() function.
In this case, freeing the list with GFX_GOL_ObjectListFree() function has the same effect as GFX_GOL_ObjectListNew()
where the current active list is empty.
Preconditions
None.
Example
// assume pointers to objects (pButton, pWindow and pSlider
// are initialized to objects already created
// GFX_GOL_OBJ_HEADER *pButton;
// GFX_GOL_OBJ_HEADER *pWindow;
// GFX_GOL_OBJ_HEADER *pSlider;
GFX_GOL_OBJ_HEADER *pSave;
// save current list
pSave = GFX_GOL_ObjectListGet();
// start the new list, after the start of the list, the
// current active list is empty.
GFX_GOL_ObjectListNew();
// assume that objects are already created
// you can now add objects to the new list
GFX_GOL_ObjectAdd(pButton);
GFX_GOL_ObjectAdd(pWindow);
GFX_GOL_ObjectAdd(pSlider);
Function
GFX_STATUS GFX_GOL_ObjectListNew(void)
1.6.2.3.14 GFX_GOL_ObjectListSet Function
This function sets the active list to the new list.
File
gfx_gol.h
Syntax
GFX_STATUS GFX_GOL_ObjectListSet(GFX_GOL_OBJ_HEADER * pList);
1.6 Library Interface MLA - Graphics Library Help Graphics Object Layer
305

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