1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00

Fixing serial manifest.xml for ROS and replacing an accidental missing function

This commit is contained in:
William Woodall 2012-01-15 20:48:21 -06:00
parent 154ef46c20
commit 1bceb66e0e
2 changed files with 21 additions and 0 deletions

View File

@ -458,6 +458,23 @@ public:
/***** Hooks and Handlers ******/
/*!
* Sets the handler to be called when a lines is not caught by a filter.
*
* This allows you to set a catch all function that will get called
* everytime a line is not matched by a filter and the ttl expires.
*
* Setting the callbacks works just like SerialListener::setInfoHandler.
*
* \param default_handler A function pointer to the callback to handle
* unmatched and expired messages.
*
* \see serial::DataCallback, SerialListener::setInfoHandler
*/
void setDefaultHandler(DataCallback default_handler) {
this->default_handler = default_handler;
}
/*!
* Sets the function to be called when an exception occurs internally.
*

View File

@ -8,6 +8,10 @@
<license>BSD</license>
<review status="unreviewed" notes=""/>
<url>http://ros.org/wiki/serial</url>
<export>
<cpp cflags="-I${prefix}/include" lflags="-L${prefix}/lib -Wl,-rpath,${prefix}/lib -lserial"/>
</export>
</package>