X-Git-Url: https://git.proxmox.com/?p=mirror_smartmontools-debian.git;a=blobdiff_plain;f=dev_interface.h;h=136831cc41edfb0466ecb97ae5e95b3ced6004fd;hp=d887b608f01b6b551bc999c859a34a40c8714bc6;hb=f4e463df436b0b3c97efe7e53c81b663e4241180;hpb=e165493d6c108ac738ea8803240dad44dfe696de diff --git a/dev_interface.h b/dev_interface.h index d887b60..136831c 100644 --- a/dev_interface.h +++ b/dev_interface.h @@ -18,7 +18,7 @@ #ifndef DEV_INTERFACE_H #define DEV_INTERFACE_H -#define DEV_INTERFACE_H_CVSID "$Id: dev_interface.h 3524 2012-03-21 22:19:31Z chrfranke $\n" +#define DEV_INTERFACE_H_CVSID "$Id: dev_interface.h 3554 2012-06-01 20:11:46Z chrfranke $\n" #include "utility.h" @@ -147,6 +147,10 @@ public: const char * get_errmsg() const { return m_err.msg.c_str(); } + /// Return true if last error indicates an unsupported system call. + /// Default implementation returns true on ENOSYS and ENOTSUP. + virtual bool is_syscall_unsup() const; + /// Set last error number and message. /// Printf()-like formatting is supported. /// Returns false always to allow use as a return expression. @@ -183,7 +187,7 @@ public: /// Open device with autodetection support. /// May return another device for further access. /// In this case, the original pointer is no longer valid. - /// Default Implementation calls 'open()' and returns 'this'. + /// Default implementation calls 'open()' and returns 'this'. virtual smart_device * autodetect_open(); ///////////////////////////////////////////////