summaryrefslogtreecommitdiff
path: root/2005/i/robert/src
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src')
-rw-r--r--2005/i/robert/src/serial/serial.hh2
-rw-r--r--2005/i/robert/src/serial/serial_base.hh2
2 files changed, 4 insertions, 0 deletions
diff --git a/2005/i/robert/src/serial/serial.hh b/2005/i/robert/src/serial/serial.hh
index 71fdd26..23feb42 100644
--- a/2005/i/robert/src/serial/serial.hh
+++ b/2005/i/robert/src/serial/serial.hh
@@ -57,6 +57,8 @@ class Serial
/// Attend que des caractères soient disponibles pendant un delay en
/// millisecondes.
bool wait (int timeout = -1) { return sb_->wait (timeout); }
+ /// Récupère le descripteur.
+ int getFd (void) { return sb_->getFd (); }
};
#endif // serial_hh
diff --git a/2005/i/robert/src/serial/serial_base.hh b/2005/i/robert/src/serial/serial_base.hh
index b940a6e..9caf27d 100644
--- a/2005/i/robert/src/serial/serial_base.hh
+++ b/2005/i/robert/src/serial/serial_base.hh
@@ -61,6 +61,8 @@ class SerialBase
/// Attend que des caractères soient disponibles pendant un delay en
/// millisecondes.
bool wait (int timeout = -1);
+ /// Récupère le descripteur.
+ int getFd (void) { return fdIn_; }
};
#endif // serial_base_hh