From 9dc71aaab743ec9a9866e00a139eabee023ab68f Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Mon, 15 Apr 2002 19:46:33 +0000 Subject: [PATCH] Use only non-deprecated routines. --- src/makeBaseExt/top/exampleExt/caExample.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/makeBaseExt/top/exampleExt/caExample.c b/src/makeBaseExt/top/exampleExt/caExample.c index 04e57197e..3df548452 100644 --- a/src/makeBaseExt/top/exampleExt/caExample.c +++ b/src/makeBaseExt/top/exampleExt/caExample.c @@ -15,8 +15,8 @@ main(int argc,char **argv) fprintf(stderr,"usage: caExample pvname\n"); exit(1); } - SEVCHK(ca_task_initialize(),"ca_task_initialize"); - SEVCHK(ca_search(argv[1],&mychid),"ca_search failure"); + SEVCHK(ca_context_create(ca_disable_preemptive_callback),"ca_context_create"); + SEVCHK(ca_create_channel(argv[1],NULL,NULL,10,&mychid),"ca_create_channel failure"); SEVCHK(ca_pend_io(5.0),"ca_pend_io failure"); SEVCHK(ca_get(DBR_DOUBLE,mychid,(void *)&data),"ca_get failure"); SEVCHK(ca_pend_io(5.0),"ca_pend_io failure");