> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/annotated/struct_update_context.md).

# UpdateContext

[Public Member Functions](#pub-methods) | [Data Fields](#pub-attribs)

Collaboration diagram for UpdateContext:

![Collaboration graph](/files/dCFXPL0Z3YHNDTMEJMhs)

\[[legend](/s-adk-5.1-programmers-guide/graph_legend.md)]

|                         |                                                          |
| ----------------------- | -------------------------------------------------------- |
| Public Member Functions |                                                          |
|                         | [UpdateContext](#aed2042414d1bcd5aedeb8140ab48054c) ()   |
| virtual                 | [\~UpdateContext](#a7e5d9d6e9de3c8625bef9f98e6ff2838) () |

|                                                                                                                   |                                                  |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| Data Fields                                                                                                       |                                                  |
| unsigned char                                                                                                     | [uploadType](#a38b41dd7eed55580b64c9494d4651f65) |
| unsigned int                                                                                                      | [paketNbr](#a65850cf52b001c884f60f00cdaaf1a59)   |
| void \*                                                                                                           | [handle](#a81011b79683fab64ce3aff71114f8fdd)     |
| [mADK\_PP\_ProtBusyLock](/s-adk-5.1-programmers-guide/readme/annotated/classm_a_d_k___p_p___prot_busy_lock.md) \* | [busy\_lock](#a2ccc77d945e9a4721f950c3fc490fa41) |
| string                                                                                                            | [file](#ab2c5ab3c7a17f0969cdd40146339903a)       |
| string                                                                                                            | [dest](#a66d4da94e0e4f717ff3e7f23c53f7c2d)       |

### Constructor& Destructor Documentation

### UpdateContext() <a href="#aed2042414d1bcd5aedeb8140ab48054c" id="aed2042414d1bcd5aedeb8140ab48054c"></a>

[UpdateContext](/s-adk-5.1-programmers-guide/readme/annotated/struct_update_context.md)

inline

constructor: init variables obtain the SDI busy lock

### \~UpdateContext() <a href="#a7e5d9d6e9de3c8625bef9f98e6ff2838" id="a7e5d9d6e9de3c8625bef9f98e6ff2838"></a>

virtual \\\~[UpdateContext](/s-adk-5.1-programmers-guide/readme/annotated/struct_update_context.md)

inlinevirtual

destructor: resets the SDI busy lock and clears the uploaded update file

### FieldDocumentation <a href="#field-documentation" id="field-documentation"></a>

### busy\_lock <a href="#a2ccc77d945e9a4721f950c3fc490fa41" id="a2ccc77d945e9a4721f950c3fc490fa41"></a>

[mADK\_PP\_ProtBusyLock](/s-adk-5.1-programmers-guide/readme/annotated/classm_a_d_k___p_p___prot_busy_lock.md)\\\* busy\_lock

SDI busy lock object

### dest <a href="#a66d4da94e0e4f717ff3e7f23c53f7c2d" id="a66d4da94e0e4f717ff3e7f23c53f7c2d"></a>

string dest

destination of the update file (in case of config file upload)

### file <a href="#ab2c5ab3c7a17f0969cdd40146339903a" id="ab2c5ab3c7a17f0969cdd40146339903a"></a>

string file

upload file for update

### handle <a href="#a81011b79683fab64ce3aff71114f8fdd" id="a81011b79683fab64ce3aff71114f8fdd"></a>

void\\\* handle

connection handle

### paketNbr <a href="#a65850cf52b001c884f60f00cdaaf1a59" id="a65850cf52b001c884f60f00cdaaf1a59"></a>

unsigned int paketNbr

package number

### uploadType <a href="#a38b41dd7eed55580b64c9494d4651f65" id="a38b41dd7eed55580b64c9494d4651f65"></a>

unsigned char uploadType

upload tpye, e.g. UPLOAD\_TYPE\_SOFTWARE\_UPDATE

***

The documentation for this struct was generated from the following file:

* sdi/src/[sys.cpp](/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/sys_8cpp.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/annotated/struct_update_context.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
