shutdown()

This function terminates a Panopticon session that was initialized by init(), and frees allocated system resources. You must call this function when the Panopticon context is no longer required.

Syntax

KVPanopticonError shutdown(KVPanopticonContext** const context);

Arguments

context

A pointer to a pointer of type KVPanopticonContext, initialized by calling init(). This function sets the target to NULL to prevent accidental reuse of the context value that it contained, which must not be subsequently passed to any Panopticon function.

Returns

If the function was successful, it returns KVP_Success. Otherwise, it returns a KVPanopticonError value describing the problem.

Discussion

  • The context value pointed to by context can be NULL.