Skip to main content
Version: 16.8.2

GW2GetAllIdInfo

Every issue identified and reported by the Glasswall engine has a unique issue ID associated. This API provides a summary of all possible issue ID numbers and corresponding high level descriptions.

For a session the GW2GetAllIdInfo function places XML data populated with Glasswall Issue ID descriptions and value ranges in an output buffer.

Synopsis

For session session the GW2GetAllIdInfo function places in the object pointed to by outputBuffer a pointer to XML data populated with Glasswall Issue ID descriptions and value ranges. The length, in bytes, of the populated output buffer is placed in the size_t object pointed to by bufferLength.


#include "glasswall.core2.api.h"

int GW2GetAllIdInfo(
Session session,
size_t *bufferLength,
char **outputBuffer);

Returns

Returns an integer GW2_RetStatus enum value. Negative numbers indicate a failure. If successful, output buffer contains the XML file.

Example

#include "glasswall.core2.api.h"

...

char *outbuf = NULL;
size_t buflen = 0;

if (GW2OpenSession())
/* error opening session*/
else
{
int status = GW2GetAllIdInfo(session, &buflen, &outbuf);
/* Buffer contains the XML file.
* Either process the data pointed to, or copy the data and process it
* after the session is closed
*/

if (GW2CloseSession())
/* error closing session */
}