diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-10-10 12:11:45 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-02 12:28:21 +0100 |
commit | bf134e697971194923fa6834c9919550d418665c (patch) | |
tree | 18b301cf1acb71d7a36c42f7c7738fa5c2c24f7d /src/drivers/device/device.h | |
parent | 2effc9a23d8df3922f9f7cec9b0af9b15b2e2367 (diff) | |
download | px4-firmware-bf134e697971194923fa6834c9919550d418665c.tar.gz px4-firmware-bf134e697971194923fa6834c9919550d418665c.tar.bz2 px4-firmware-bf134e697971194923fa6834c9919550d418665c.zip |
Allow to get access to dev name
Diffstat (limited to 'src/drivers/device/device.h')
-rw-r--r-- | src/drivers/device/device.h | 7 |
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: |