Subject: misc/31056: cdk_matrix(3) described function setCDKMatrixCB() doesn't exist.
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <eau@phear.org>
List: netbsd-bugs
Date: 08/24/2005 09:46:00
>Number:         31056
>Category:       misc
>Synopsis:       cdk_matrix(3) described function setCDKMatrixCB() doesn't  exist.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 24 09:46:00 +0000 2005
>Originator:     Eric AUGE
>Release:        3.99.6
>Organization:
none
>Environment:
NetBSD mubutu.no.phear.org 3.99.6 NetBSD 3.99.6 (MUBUTU) #3: Mon Aug 22 00:26:03 CEST 2005  root@mubutu.no.phear.org:/usr/src/sys/arch/i386/compile/MUBUTU i386

>Description:
cdk_matrix(3) described function setCDKMatrixCB() doesn't exist :

during compilation :
gcc -I/usr/include/cdk  -lcdk -o test test.c 
/var/tmp//ccMHPQm1.o(.text+0x53): In function `test':
: undefined reference to `setCDKMatrixCB'

rival@mubutu:~/tmp $ grep -r setCDKMatrixCB /usr/src/dist/cdk/*
/usr/src/dist/cdk/include/matrix.h:void setCDKMatrixCB (
/usr/src/dist/cdk/man/cdk_matrix.3:setCDKMatrixCell, getCDKMatrixCell, setCDKMatrixCB,
/usr/src/dist/cdk/man/cdk_matrix.3:.BI "void setCDKMatrixCB (CDKMATRIX *" "matrix",
/usr/src/dist/cdk/man/cdk_matrix.3:void setCDKMatrixCB (CDKMATRIX *\f2matrix\f1, MATRIXCB \f2callbackFunction\f1);

Apparently the function header exists etc.. but the function is not there, may be i missed something..?


>How-To-Repeat:
try to use setCDKMatrixCB()  in some code. 
(use cdk matrix example in dist/cdk/examples/matrix_ex.c)
>Fix:
Adding this function should make it 
(not tested, i found another way to fill my needs)

void setCDKMatrixCB(CDKMATRIX *matrix, MATRIXCB callbackFunction) 
{
   matrix->callbackfn = callbackFunction;
}