Moved utility functions to their right place (util.cc)
authorMario Sanchez Prada <msanchez@igalia.com>
Thu, 28 Jan 2010 18:54:34 +0000 (19:54 +0100)
committerMario Sanchez Prada <msanchez@igalia.com>
Thu, 28 Jan 2010 18:54:34 +0000 (19:54 +0100)
commit989a6208c791b427b739f3b6df4b6701d0cf4193
treec1d2d4bb366c49fb0e18ef4f77abf2bdb7a5d3a5
parent89144bc574713a121e003d58bba442581cc059ba
Moved utility functions to their right place (util.cc)

* src/dbus.c (MCE_SERVICE): Removed from here.
(MCE_REQUEST_IF): Likewise.
(MCE_REQUEST_PATH): Likewise.
(MCE_GET_DEVICE_MODE_REQ): Likewise.
(MCE_DEVICE_MODE_CHANGE_REQ): Likewise.
(get_device_mode): Likewise.
(set_device_mode): Likewise.

* src/dbus.h (device_mode): Removed from here.
(get_device_mode): Likewise.
(set_device_mode): Likewise.

* src/operations.cc (ip_kill_all_and_install_delayed): Removed crappy
code to kill and stop processes from here and call a new utility
function instead: kill_processes_for_SSU

* src/util.cc (stop_dsme_service): Made this function private.
(maybe_kill_all_by_name): Made this function private.
(MCE_SERVICE): Moved from dbus.cc.
(MCE_REQUEST_IF): Likewise.
(MCE_REQUEST_PATH): Likewise.
(MCE_GET_DEVICE_MODE_REQ): Likewise.
(MCE_DEVICE_MODE_CHANGE_REQ): Likewise.
(get_device_mode): Likewise.
(set_device_mode): Likewise.

* src/util.h (enum device_mode): Moved from dbus.h.
(stop_dsme_service): Removed from header.
(get_device_mode): Added prototype.
(set_device_mode): Added prototype.
(maybe_kill_all_by_name): Removed from header.
(kill_processes_for_SSU): Added prototype.
src/dbus.cc
src/dbus.h
src/operations.cc
src/util.cc
src/util.h