X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hwplugin.c;h=4ad7502b7705068ec241f4ce5c37696944f2e862;hb=c73d2ea421c2b425c3f0ae33bce2bfd0c448ca5f;hp=dfee3814bd32e4ce6533db4fc052b04fa5d42b71;hpb=a1645fcd81ed4be71d29380218acb078789a6268;p=libsigrok.git diff --git a/hwplugin.c b/hwplugin.c index dfee3814..4ad7502b 100644 --- a/hwplugin.c +++ b/hwplugin.c @@ -1,7 +1,7 @@ /* * This file is part of the sigrok project. * - * Copyright (C) 2010 Bert Vermeulen + * Copyright (C) 2010-2012 Bert Vermeulen * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -145,9 +145,9 @@ SR_API int sr_init_hwplugin(struct sr_device_plugin *plugin) continue; } - device = sr_device_new(plugin, i); + device = sr_dev_new(plugin, i); for (j = 0; j < num_probes; j++) - sr_device_probe_add(device, probe_names[j]); + sr_dev_probe_add(device, probe_names[j]); num_initialized_devices++; }