<am_types.h> contains defined types and corresponding functions. They are:
Defines true or false boolean with the syntax:
#include "am_types.h" typedef enum { B_FALSE, B_TRUE } boolean_t;
Defines true or false boolean with the syntax:
#include "am_types.h" typedef enum { AM_FALSE = 0, AM_TRUE } am_bool_t;
Defines error codes with the syntax:
#include "am_types.h" typedef enum { AM_SUCCESS = 0, AM_FAILURE, AM_INIT_FAILURE, AM_AUTH_FAILURE, AM_NAMING_FAILURE, AM_SESSION_FAILURE, AM_POLICY_FAILURE, AM_NO_POLICY, AM_INVALID_ARGUMENT, AM_INVALID_VALUE, AM_NOT_FOUND, AM_NO_MEMORY, AM_NSPR_ERROR, AM_END_OF_FILE, AM_BUFFER_TOO_SMALL, AM_NO_SUCH_SERVICE_TYPE, AM_SERVICE_NOT_AVAILABLE, AM_ERROR_PARSING_XML, AM_INVALID_SESSION, AM_INVALID_ACTION_TYPE, AM_ACCESS_DENIED, AM_HTTP_ERROR, AM_INVALID_FQDN_ACCESS, AM_FEATURE_UNSUPPORTED, AM_AUTH_CTX_INIT_FAILURE, AM_SERVICE_NOT_INITIALIZED, AM_INVALID_RESOURCE_FORMAT, AM_NOTIF_NOT_ENABLED, AM_ERROR_DISPATCH_LISTENER, AM_REMOTE_LOG_FAILURE, AM_LOG_FAILURE, AM_REMOTE_LOG_NOT_INITIALIZED, AM_NUM_ERROR_CODES /* This should always be the last. */ } am_status_t;
Returns a message for the given error code.
#include "am_types.h" AM_EXPORT const char *am_status_to_string(am_status_t status);
This function takes the following parameter:
Given error code
This function returns the appropriate message for the status code as a const char *
Success.
Failure.
Initialization failure.
Access Manager Authentication Service failure.
Access Manager Naming Service failure.
Access Manager Session Service failure.
Access Manager Policy Service failure.
No policy found.
Invalid argument.
Invalid value.
Access Manager not found.
No memory.
NSPR error.
Reached end of file.
If the defined size of the buffer is smaller than the encoded value.
No such service type found.
Service is not available.
Error found during XML parsing.
Invalid session.
Reached end of file.
Invalid action type.
Access denied.
HTTP error.
Invalid fully qualified domain name (FQDN) access.
The feature or configuration is unsupported.
Authentication context initialization failed.
Specified service was not initialized.
Specified resource name does not follow the format required by the service.
Notification Service is not enabled or no notification URL is set.
Error occurred dispatching single sign-on (SSO) listener.
Remote Logging Service encountered an error.
Log encountered an error.
Remote Logging Service is not initialized.