|
From: | address@hidden |
Subject: | [gpsd-dev] Moving nmea2000 open function out of libgpsd_core.c |
Date: | Wed, 06 Jun 2012 20:19:17 +0200 |
Hello,
1.) does it make sense to move most of the nmea2000 code out of the libgpsd_core.c and into driver_nmea2000.c, at the cost of an driver_nmea2000.h file?
2.) I may be a lean approach to handle every device on the a nmea2000 bus as an own device, and open the device automatic, when it is detected. My idea is to call add_device() with a string like "nmea2000://can0:14". 14 is in this example the device id on the nmea2000 bus. The cost is, that "add_device" can no longer be a static function.
Comments are welcome
Reinhard
[Prev in Thread] | Current Thread | [Next in Thread] |