diff options
-rw-r--r-- | p2pvr/ice/dvb.ice | 1 | ||||
-rw-r--r-- | p2pvr/ice/p2pvrHelpers.cpp | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/p2pvr/ice/dvb.ice b/p2pvr/ice/dvb.ice index 3c6ef87..44f2a56 100644 --- a/p2pvr/ice/dvb.ice +++ b/p2pvr/ice/dvb.ice @@ -4,6 +4,7 @@ #include "dvbsi.ice" module P2PVR { + ["cpp:ice_print"] exception DeviceError { string Device; string Message; diff --git a/p2pvr/ice/p2pvrHelpers.cpp b/p2pvr/ice/p2pvrHelpers.cpp new file mode 100644 index 0000000..7e04f87 --- /dev/null +++ b/p2pvr/ice/p2pvrHelpers.cpp @@ -0,0 +1,12 @@ +#include <p2pvr.h> +#include <compileTimeFormatter.h> + +namespace P2PVR { + AdHocFormatter(DeviceErrorMsg, "Device error: %? (%?) on %?"); + void + DeviceError::ice_print(std::ostream & s) const + { + DeviceErrorMsg::write(s, Message, Errno, Device); + } +} + |