HP-UX SNAplus2 R7 LUA Programmer's Guide

RUI Verbs
RUI_REINIT
This parameter is required only if the lua_sid parameter is 0 (zero). If a session ID is supplied in lua_sid,
LUA does not use this parameter.
This parameter must be eight bytes long; pad on the right with spaces, 0x20, if the name is shorter than
eight characters.
lua_sid
The session ID of the session. This must match a session ID returned on the previous RUI_INIT verb for the
failed session.
This parameter is optional; if you do not specify the session ID, you must specify the LU name for the session
in the lua_luname parameter.
lua_post_handle
A pointer to a callback routine. If the verb completes asynchronously, LUA will call this routine to indicate
completion of the verb. For more information, see Chapter 2, Designing and Writing LUA Applications.
4.6.2 Returned Parameters
LUA always returns the following parameter:
lua_ag2.async
This ag is set to
1 if the verb completed asynchronously, or
0 if the verb completed synchro-
nously. (RUI_REINIT will always complete asynchronously, unless it returns an error such as
LUA_PARAMETER_CHECK.)
Other returned parameters depend on whether the verb completed successfully; see the following sections.
Successful Execution
If the verb executes successfully, LUA returns the following parameter:
lua_prim_rc
LUA_OK
Unsuccessful Execution
If a verb does not complete successfully, LUA returns a primary return code to indicate the type of error and a
secondary return code to provide specic details about the reason for unsuccessful execution.
Verb Canceled
The following return codes indicate that the verb did not complete successfully because it was canceled by another
verb:
lua_prim_rc
LUA_CANCELLED
lua_sec_rc
LUA_TERMINATED
An RUI_TERM verb was issued before the RUI_REINIT had completed.
Parameter Check
The following return codes indicate that the verb did not complete successfully because a supplied parameter was
in error:
lua_prim_rc
LUA_PARAMETER_CHECK
lua_sec_rc
92