int: configuration option to set
void *: Pointer to data to set the data to
- Return: OPM_ERR_T code if there are any errors, otherwise
- OPM_SUCCESS
+ Return: OPM_ERR_T or OPM_SUCCESS on success
+
+ OPM_ERR_BADVALUE: Unable to set the given value (bad formatting).
+ OPM_ERR_BADKEY: The key (configuration option) is unknown.
The opm_config function sets various options on the individual scanner
objects. A pointer to the data to set the option to is required. The scanner
int: type to add
int: port of type to add
- Return: OPM_ERR_T describing an error, or OPM_SUCCESS on success
+ Return: OPM_ERR_T or OPM_SUCCESS on success
+
+ OPM_ERR_BADPROTOCOL: Bad protocol type
The opm_addtype function adds a protocol type and port to the scanner's
protocol list. This list determines what ports the scanner will scan on,
Parameters: OPM_T: Scanner to scan on
OPM_REMOTE_T: Object containing information on remote host to scan
- Return: OPM_ERR_T describing an error, or OPM_SUCCESS on success
+ Return: OPM_ERR_T or OPM_SUCCESS on success
The opm_scan functions adds a remote host object to the scanner's scan queue
(or begins scanning on it if there is no queue).
int: Callback type
OPM_CALLBACK_T: Pointer to custom callback function
+ Return: OPM_ERR_T or OPM_SUCCESS on success
+
+ OPM_ERR_CBNOTFOUND: The given callback type is unknown
+
+
+
typedef void OPM_CALLBACK_T (OPM_T *, OPM_REMOTE_T *, int);