fota: Modify upgrade checking function more readable
Previously, the function is_upgrade_completed() gets no argument and
returns -1 if error, 0 if upgrade is not completed, 1 if upgrade is
completed. This might confusing since the return value does two role:
indicating error and upgrade completion.
To increase the readability, the return value is only shows if function
call is succeed or not and upgrade completion is returned using bool
type parameter "upgrade_completed".
Also, the behavior of function is changed to 'get boolean value about
upgrade is done or not', so the name of this function is changed to
get_upgrade_completed.
Change-Id: I377db07b10d42f253ca44a973b25bbf06583a27c
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>