Use source ID instead of GSource
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 Mar 2023 07:44:05 +0000 (07:44 +0000)
commit214b06b8041675e50040adffb580d363095beefe
treec8dff141ebbb55ade9b998a044ecc95511f2d6d3
parent44fd9fda00427b74cb7e051315f6ebee25395756
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.h