display: Relocate get_pname() to reduce plugin duplication 65/292465/10
authorYunhee Seo <yuni.seo@samsung.com>
Fri, 28 Apr 2023 06:36:37 +0000 (15:36 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Thu, 25 May 2023 01:54:07 +0000 (10:54 +0900)
commit2daa638dfeb2628f9668ae4ed3a739c37e6f7453
tree4ef0bb97bbbd126cf145e04e17b986f7c72b1f44
parentd4023b019395e803237d345ee1eac3855ab6c936
display: Relocate get_pname() to reduce plugin duplication

Remove and redefine get_pname function in plugins/display/core.c

This function is added to below display-misc.
void display_misc_get_process_name(pid_t pid, char *pname)
-> This function gets process name by pid parameter.

During display plugins refactoring, this function will be relocated.
To use macro value in poll.h, poll.h is relocated to core from plugin-common.
All plugin-common files will be moved to display core during refactoring process.

Change-Id: Iaaa32254bd93ee37f7bf5bfe5edafac4beb5ab83
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
plugins/iot-headed/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c
src/display/display-misc.c
src/display/display-misc.h
src/display/poll.h [moved from src/display/plugin-common/poll.h with 100% similarity]