Use source ID instead of GSource 01/275801/3
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Jun 2022 03:15:10 +0000 (12:15 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Jun 2022 03:21:14 +0000 (12:21 +0900)
commit64edab5b01f61cd97bed9104f3de8cd03ec84f61
tree44e1f40f9dba44cbffed436cca0dbeeb5370d9fb
parent6b6e3e7276fe2b2804c8d813e181c65343abb8b0
Use source ID instead of GSource

To find the GSource properly from the GMainContext, the port object uses
the source_id instead of the GSource. And, if creating shared_ptr is failed,
the OnEventReceived callback function should return G_SOURCE_REMOVE to
prevent recalling the function.

Change-Id: I26604a7671f73f1d48476434e180ec4d542c05f2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/port-internal.cc
src/port-internal.hh