Sun Java System Access Manager 7.1 C API Reference

am_web_init()

Initializes the web agent.

Syntax

#include "am_web.h"
AM_WEB_EXPORT am_status_t
am_web_init(const char *config_file);

Parameters

This function takes the following parameter:

config_file

Pointer to the agent configuration file as in/etc/opt/AMAgent.properties.

Returns

This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):

AM_SUCCESS

If the call was successful.

AM_*

If any error occurs, the type of error indicated by the status value.