Dialogic 05-0867-005 Table Top Game User Manual


 
cc_SetUsrAttr( ) sets the user attribute
254
Name:
int cc_SetUsrAttr(linedev, usrattr)
Inputs:
LINEDEV linedev
line device handle
long usrattr
user attribute information
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
System tools
Mode:
synchronous
Technology:
BRI/2; BRI/SC; PRI
!
! !
!
Description
The cc_SetUsrAttr( ) function sets the user attribute for a line device for later
retrieval. The user attribute value can be a memory pointer used to identify a
board and a channel on a board. The value can also be a pointer to a user-defined
structure such as the current state or the active call reference number.
For example, the application can use the first two digits to identify a board and the
last two digits to identify a channel on a board, with a ‘0’ inserted between the
numbers to separate them. The number ‘12024’ would indicate
the 24th channel
on board 12.
Parameter Description
linedev:
The line device handle.
usrattr:
The user-defined attribute. Applications can recall this number
by calling the cc_GetUsrAttr( ) function.
!
! !
!
Cautions
None
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include srllib.h
#include dtilib.h
#include cclib.h