///
/// @param handle Callout context - which is expected to contain the
/// get command JSON text in the "command" argument
- /// @return result of the operation (includes lease details, if found)
+ /// @return result of the operation (includes lease details, if found),
+ /// 1 if an error occurs, 3 if lease not found.
int
leaseGetHandler(hooks::CalloutHandle& handle);
///
/// @param handle Callout context - which is expected to contain the
/// get command JSON text in the "command" argument
- /// @return result of the operation.
+ /// @return 0 if the handler has been invoked successfully, 1 if an
+ /// error occurs, 3 if no leases are returned.
int
leaseGetAllHandler(hooks::CalloutHandle& handle);
/// @param handle Callout handle used to retrieve a command and
/// provide a response.
/// @return 0 if this callout has been invoked successfully,
-/// 1 if an error occurs, 2 if empty.
+/// 1 if an error occurs, 3 if no leases are returned.
int lease4_get_all(CalloutHandle& handle) {
LeaseCmds lease_cmds;
return (lease_cmds.leaseGetAllHandler(handle));
/// @param handle Callout handle used to retrieve a command and
/// provide a response.
/// @return 0 if this callout has been invoked successfully,
-/// 1 if an error occurs, 2 if empty.
+/// 1 if an error occurs, 3 if no leases are returned.
int lease6_get_all(CalloutHandle& handle) {
LeaseCmds lease_cmds;
return (lease_cmds.leaseGetAllHandler(handle));