> 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/scriptproc_8h_source.md).

# scriptproc.h

[Go to the documentation of this file.](/s-adk-5.1-programmers-guide/readme/files/dir_9225c15707e5fd27b700c844799f6dc5/dir_7447c8e6446ba60664134d106c4ecb69/dir_8c13e55433a2f6247a8b0f337ff26c19/scriptproc_8h.md)

```cpp
 1 #ifndef SCRIPTPROC_H_20141114
 2 #define SCRIPTPROC_H_20141114
 3 
 6 #if defined _WIN32 && defined VFI_GUIPRT_SHARED_EXPORT
 7 # define DllSpec __declspec(dllexport)
 8 #elif defined __GNUC__ && defined VFI_GUIPRT_SHARED_EXPORT
 9 # define DllSpec __attribute__((visibility ("default")))
 10 #else
 11 # define DllSpec
 12 #endif
 13 
 14 #include <string>
 15 #include <map>
 16 
 17 namespace vfihtml {
 18 
 19 class ExtContext;
 20 
 30 typedef bool (*ScriptProcessor)(void *data,
 31  const std::string &script,
 32  std::map<std::string,std::string> &value,
 33  std::string &out,
 34  std::string &err,
 35  std::string &exitcode);
 36 
 47  typedef bool (*ScriptProcessorExt)(void *data,
 48  const std::string &script,
 49  std::map<std::string,std::string> &value,
 50  std::string &out,
 51  std::string &err,
 52  std::string &exitcode,
 53  ExtContext *context);
 54 
 60 DllSpec void htmlSetScriptProcessor(const char *name, ScriptProcessor proc, void *data);
 61 
 67 DllSpec void htmlSetScriptProcessor(const char *name, ScriptProcessorExt proc, void *data=0);
 68 
 69 } // namespace vfihtml
 70 
 71 #undef DllSpec
 72 
 73 #endif
```


---

# 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/scriptproc_8h_source.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.
