X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FAdapterCommunication.h;h=98f55e61588911ad5c70c1f3da2b6cb1d188db27;hb=f80cd2082cb6b36e56e00d42c0f2fc104565f7e5;hp=400b32151e10fc8a51d4cb5c305cb3d9d0333b2b;hpb=e69d8f191784c77c156ffec90db50767f91421e3;p=deb_libcec.git diff --git a/src/lib/adapter/AdapterCommunication.h b/src/lib/adapter/AdapterCommunication.h index 400b321..98f55e6 100644 --- a/src/lib/adapter/AdapterCommunication.h +++ b/src/lib/adapter/AdapterCommunication.h @@ -71,9 +71,10 @@ namespace CEC * @param cb The callback struct. if set to NULL, the Read() method has to be used to read commands. if set, OnCommandReceived() will be called for each command that was received * @param iTimeoutMs Connection timeout in ms * @param bSkipChecks Skips all initial checks of the adapter, and starts the reader/writer threads directly after connecting. + * @param bStartListening Start a listener thread when true. False to just open a connection, read the device info, and close the connection. * @return True when connected, false otherwise */ - virtual bool Open(IAdapterCommunicationCallback *cb, uint32_t iTimeoutMs = 10000, bool bSkipChecks = false) = 0; + virtual bool Open(IAdapterCommunicationCallback *cb, uint32_t iTimeoutMs = 10000, bool bSkipChecks = false, bool bStartListening = true) = 0; /*! * @brief Close an open connection