aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-10-10 12:11:45 +0200
committerLorenz Meier <lm@inf.ethz.ch>2015-01-02 12:28:21 +0100
commitbf134e697971194923fa6834c9919550d418665c (patch)
tree18b301cf1acb71d7a36c42f7c7738fa5c2c24f7d
parent2effc9a23d8df3922f9f7cec9b0af9b15b2e2367 (diff)
downloadpx4-firmware-bf134e697971194923fa6834c9919550d418665c.tar.gz
px4-firmware-bf134e697971194923fa6834c9919550d418665c.tar.bz2
px4-firmware-bf134e697971194923fa6834c9919550d418665c.zip
Allow to get access to dev name
-rw-r--r--src/drivers/device/device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/device/device.h b/src/drivers/device/device.h
index 67aaa0aff..4d4bed835 100644
--- a/src/drivers/device/device.h
+++ b/src/drivers/device/device.h
@@ -445,6 +445,13 @@ protected:
*/
virtual int unregister_class_devname(const char *class_devname, unsigned class_instance);
+ /**
+ * Get the device name.
+ *
+ * @return the file system string of the device handle
+ */
+ const char* get_devname() { return _devname; }
+
bool _pub_blocked; /**< true if publishing should be blocked */
private: