summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorWei Chen <weic@codeaurora.org>2019-06-05 15:29:31 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-06-20 10:10:08 -0700
commit333e69585b2f89705fd68b1c2bfeb7981a383def (patch)
treee2922cc6a8f565b31f291ea7a0359705ff21dbe0 /utils
parent98896798de4da8d9fb9fec384533f3df104d862b (diff)
downloadgps-333e69585b2f89705fd68b1c2bfeb7981a383def.tar.gz
Loc Ipc: add routine to notify sender that receiver has restarted
When qrtr socket receiver has restarted, need a way to inform sender so sender can restart the service discovery process Change-Id: Id665da649e0962691277124b42f1ee9cc6160fa8 CRs-fixed: 2445555
Diffstat (limited to 'utils')
-rw-r--r--utils/LocIpc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/LocIpc.h b/utils/LocIpc.h
index 42fbff3..af4c2c3 100644
--- a/utils/LocIpc.h
+++ b/utils/LocIpc.h
@@ -127,6 +127,7 @@ protected:
virtual bool isOperable() const = 0;
virtual ssize_t send(const uint8_t data[], uint32_t length, int32_t msgId) const = 0;
public:
+ virtual void informRecverRestarted() {}
inline bool isSendable() const { return isOperable(); }
inline bool sendData(const uint8_t data[], uint32_t length, int32_t msgId) const {
return isSendable() && (send(data, length, msgId) > 0);