netmgt_save_argument manual page
Table of Contents

NAME

netmgt_save_argument, netmgt_restore_argument - save and restore optional argument

SYNOPSIS

bool_t
netmgt_save_argument (name, argument)
char *name,
Netmgt_argument *argument;
bool_t
netmgt_restore_argument (argument)
Netmgt_argument *argument;

DESCRIPTION

netmgt_save_argument copies information about an optional argument into the buffer pointed to by argument .

netmgt_restore_argument sets a argument from the contents of the buffer pointed to by argument .

typedef struct
{

char name [NETMGT_NAMESIZ] ;
/* argument name */
u_int type ;
/* argument type */
u_int length ;
/* argument length */
u_char value [NETMGT_VALUESIZ] ;
/* argument value buffer */
}
Netmgt_argument ;

The members of this structure are:

name Optional argument name

type Argument data type

length
Argument value length

value
Argument value buffer

RETURN VALUE

TRUE if successful, otherwise FALSE.

DIAGNOSTICS

If false is returned, global variable netmgt_errno indicates the error. The caller can get the reason for the error with netmgt_fetch_error(3n).

FILES

netmgt_arglist.h, netmgt_msg.h, netmgt_request.h

SEE ALSO

netmgt_fetch_error(3n),
netmgt_save_request(3n), netmgt_save_threshold(3n)

NOTES

Only agents may call this function.


Table of Contents