Dialogic 05-0867-005 Table Top Game User Manual


 
cc_GetUsrAttr( ) gets the established attribute for the line device
156
Name:
int cc_GetUsrAttr(linedev, usr_attr)
Inputs:
LINEDEV linedev
line device handle
long *usr_attr
user attribute information
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
System tools
Mode:
synchronous
Technology:
BRI/2; BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_GetUsrAttr( ) function gets the established attribute for the line device.
The attributes are user defined and are established using the cc_SetUsrAttr( )
function. The user attribute value can be a memory pointer used to identify a
board and a channel on a board, or a pointer to a user-defined structure such as the
current state or the active call reference number.
Parameter Description
linedev:
The line device handle.
usr_attr:
The location where the returned user attribute will be stored.
!
! !
!
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
main()
{
int chan = 1;
char devname[16];
.
.
.