From 94e9f0697313ee4070da2f343735ee5211d2e0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Tue, 23 Sep 2003 22:54:56 +0000 Subject: [PATCH] follow register.h init method git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1540 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- gnuradio/gnuradio.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gnuradio/gnuradio.cc b/gnuradio/gnuradio.cc index 7183cb755..6ba38e449 100644 --- a/gnuradio/gnuradio.cc +++ b/gnuradio/gnuradio.cc @@ -3,7 +3,7 @@ * Hamlib GNUradio backend - main file * Copyright (c) 2001-2003 by Stephane Fillod * - * $Id: gnuradio.cc,v 1.4 2003-04-06 18:50:21 fillods Exp $ + * $Id: gnuradio.cc,v 1.5 2003-09-23 22:54:56 fillods Exp $ * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as @@ -37,7 +37,7 @@ #include #include -#include +#include #include #include @@ -72,6 +72,7 @@ #include #include #include +#include #include "gnuradio.h" #include "gr_priv.h" // struct gnuradio_priv_data @@ -323,7 +324,7 @@ int mc4020_open(RIG *rig) struct gnuradio_priv_data *priv = (struct gnuradio_priv_data*)rig->state.priv; /* input sample rate from PCI-DAS4020/12: 20000000 */ - priv->source = new GrMC4020Source(priv->input_rate, MCC_CH3_EN | MCC_ALL_1V); + priv->source = make_GrMC4020SourceS(priv->input_rate, MCC_CH3_EN | MCC_ALL_1V); return gr_open(rig); } @@ -1075,7 +1076,7 @@ int gnuradio_vfo_op(RIG *rig, vfo_t vfo, vfo_op_t op) return ret; } -int initrigs_gnuradio(void *be_handle) +DECLARE_INITRIG_BACKEND(gnuradio) { rig_debug(RIG_DEBUG_VERBOSE, "gnuradio: _init called\n");