Adjust directory hierarchy 62/305362/6
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Feb 2024 00:33:54 +0000 (09:33 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 1 Feb 2024 00:44:58 +0000 (09:44 +0900)
The following directories are moved to the src directory.
 - aul
 - server
 - parser
 - tool

The include directory is moved to the src/aul directory.
The source codes will have the following directory structure:

aul-1/src
 |---aul
 |---parser
 |---server
 +---tool

Change-Id: I0f29482336759eea00cbbdef0b8d15bc11eccbc4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
383 files changed:
CMakeLists.txt
packaging/aul.spec
src/CMakeLists.txt [new file with mode: 0644]
src/aul/CMakeLists.txt [new file with mode: 0644]
src/aul/api/aul_app_context.cc [moved from aul/api/aul_app_context.cc with 100% similarity]
src/aul/api/aul_app_context.h [moved from aul/api/aul_app_context.h with 100% similarity]
src/aul/api/aul_app_event.cc [moved from aul/api/aul_app_event.cc with 100% similarity]
src/aul/api/aul_app_event.h [moved from aul/api/aul_app_event.h with 100% similarity]
src/aul/api/aul_app_lifecycle.cc [moved from aul/api/aul_app_lifecycle.cc with 100% similarity]
src/aul/api/aul_app_lifecycle.h [moved from aul/api/aul_app_lifecycle.h with 100% similarity]
src/aul/api/aul_app_manager.cc [moved from aul/api/aul_app_manager.cc with 100% similarity]
src/aul/api/aul_app_manager.h [moved from aul/api/aul_app_manager.h with 100% similarity]
src/aul/api/aul_component_port.cc [moved from aul/api/aul_component_port.cc with 100% similarity]
src/aul/api/aul_component_port.h [moved from aul/api/aul_component_port.h with 100% similarity]
src/aul/app_com.cc [moved from src/app_com.cc with 97% similarity]
src/aul/app_control/resolve_info.cc [moved from aul/app_control/resolve_info.cc with 99% similarity]
src/aul/app_control/resolve_info.hh [moved from aul/app_control/resolve_info.hh with 100% similarity]
src/aul/app_group.cc [moved from src/app_group.cc with 98% similarity]
src/aul/app_group/app_group_info.cc [moved from aul/app_group/app_group_info.cc with 100% similarity]
src/aul/app_group/app_group_info.hh [moved from aul/app_group/app_group_info.hh with 100% similarity]
src/aul/app_info/app_info.cc [moved from aul/app_info/app_info.cc with 100% similarity]
src/aul/app_info/app_info.hh [moved from aul/app_info/app_info.hh with 100% similarity]
src/aul/app_info/directory_info.cc [moved from aul/app_info/directory_info.cc with 100% similarity]
src/aul/app_info/directory_info.hh [moved from aul/app_info/directory_info.hh with 100% similarity]
src/aul/app_info/external_directory_info.cc [moved from aul/app_info/external_directory_info.cc with 100% similarity]
src/aul/app_info/external_directory_info.hh [moved from aul/app_info/external_directory_info.hh with 100% similarity]
src/aul/app_manager/app_context.cc [moved from aul/app_manager/app_context.cc with 100% similarity]
src/aul/app_manager/app_context.hh [moved from aul/app_manager/app_context.hh with 100% similarity]
src/aul/app_manager/app_event.cc [moved from aul/app_manager/app_event.cc with 100% similarity]
src/aul/app_manager/app_event.hh [moved from aul/app_manager/app_event.hh with 100% similarity]
src/aul/app_manager/app_manager.cc [moved from aul/app_manager/app_manager.cc with 100% similarity]
src/aul/app_manager/app_manager.hh [moved from aul/app_manager/app_manager.hh with 100% similarity]
src/aul/app_request.cc [moved from src/app_request.cc with 96% similarity]
src/aul/app_request.h [moved from src/app_request.h with 88% similarity]
src/aul/app_signal.cc [moved from src/app_signal.cc with 99% similarity]
src/aul/app_signal.h [moved from src/app_signal.h with 100% similarity]
src/aul/aul.conf [moved from aul.conf with 100% similarity]
src/aul/aul.pc.in [moved from aul.pc.in with 100% similarity]
src/aul/aul_api.h [moved from src/aul_api.h with 100% similarity]
src/aul/aul_cmd.cc [new file with mode: 0644]
src/aul/aul_comp_context.cc [moved from src/aul_comp_context.cc with 98% similarity]
src/aul/aul_comp_info.cc [moved from src/aul_comp_info.cc with 97% similarity]
src/aul/aul_comp_status.cc [moved from src/aul_comp_status.cc with 100% similarity]
src/aul/aul_complication.cc [moved from src/aul_complication.cc with 100% similarity]
src/aul/aul_debug_info.c [moved from src/aul_debug_info.c with 100% similarity]
src/aul/aul_error.cc [new file with mode: 0644]
src/aul/aul_job_scheduler.cc [moved from src/aul_job_scheduler.cc with 86% similarity]
src/aul/aul_launch.c [moved from src/aul_launch.c with 100% similarity]
src/aul/aul_launcher_service.cc [moved from src/aul_launcher_service.cc with 94% similarity]
src/aul/aul_path.cc [moved from src/aul_path.cc with 99% similarity]
src/aul/aul_proc.cc [moved from src/aul_proc.cc with 98% similarity]
src/aul/aul_proc_group.cc [moved from src/aul_proc_group.cc with 96% similarity]
src/aul/aul_rpc_port.cc [moved from src/aul_rpc_port.cc with 97% similarity]
src/aul/aul_rsc_mgr.c [moved from src/aul_rsc_mgr.c with 100% similarity]
src/aul/aul_rsc_mgr_internal.c [moved from src/aul_rsc_mgr_internal.c with 100% similarity]
src/aul/aul_rsc_mgr_internal.h [moved from src/aul_rsc_mgr_internal.h with 100% similarity]
src/aul/aul_rsc_mgr_schema.h [moved from src/aul_rsc_mgr_schema.h with 100% similarity]
src/aul/aul_running_context.c [moved from src/aul_running_context.c with 100% similarity]
src/aul/aul_screen_connector.c [moved from src/aul_screen_connector.c with 100% similarity]
src/aul/aul_sock.cc [moved from src/aul_sock.cc with 99% similarity]
src/aul/aul_svc.cc [moved from src/aul_svc.cc with 99% similarity]
src/aul/aul_svc_priv_key.h [moved from src/aul_svc_priv_key.h with 100% similarity]
src/aul/aul_util.c [moved from src/aul_util.c with 100% similarity]
src/aul/aul_util.h [moved from src/aul_util.h with 100% similarity]
src/aul/aul_watch_control.cc [moved from src/aul_watch_control.cc with 92% similarity]
src/aul/aul_watch_control_internal.h [moved from src/aul_watch_control_internal.h with 100% similarity]
src/aul/aul_watchdog.cc [moved from src/aul_watchdog.cc with 95% similarity]
src/aul/aul_window.cc [moved from src/aul_window.cc with 98% similarity]
src/aul/aul_worker.c [moved from src/aul_worker.c with 100% similarity]
src/aul/aul_worker.h [moved from src/aul_worker.h with 100% similarity]
src/aul/common/api.hh [moved from aul/common/api.hh with 100% similarity]
src/aul/common/common.hh [moved from aul/common/common.hh with 100% similarity]
src/aul/common/exception.hh [moved from aul/common/exception.hh with 100% similarity]
src/aul/common/file_descriptor.hh [moved from aul/common/file_descriptor.hh with 100% similarity]
src/aul/common/log_private.hh [moved from aul/common/log_private.hh with 100% similarity]
src/aul/common/util.hh [moved from aul/common/util.hh with 100% similarity]
src/aul/component/component_info.cc [moved from aul/component/component_info.cc with 100% similarity]
src/aul/component/component_info.hh [moved from aul/component/component_info.hh with 100% similarity]
src/aul/component/component_port.cc [moved from aul/component/component_port.cc with 100% similarity]
src/aul/component/component_port.hh [moved from aul/component/component_port.hh with 100% similarity]
src/aul/component/component_running_context.cc [moved from aul/component/component_running_context.cc with 100% similarity]
src/aul/component/component_running_context.hh [moved from aul/component/component_running_context.hh with 100% similarity]
src/aul/component/localized_info.cc [moved from aul/component/localized_info.cc with 100% similarity]
src/aul/component/localized_info.hh [moved from aul/component/localized_info.hh with 100% similarity]
src/aul/cpu_inheritance.cc [moved from src/cpu_inheritance.cc with 95% similarity]
src/aul/cpu_inheritance.hh [moved from src/cpu_inheritance.hh with 100% similarity]
src/aul/include/aul.h [moved from include/aul.h with 100% similarity]
src/aul/include/aul_app_com.h [moved from include/aul_app_com.h with 100% similarity]
src/aul/include/aul_app_group.h [moved from include/aul_app_group.h with 100% similarity]
src/aul/include/aul_cmd.h [moved from include/aul_cmd.h with 100% similarity]
src/aul/include/aul_comp_context.h [moved from include/aul_comp_context.h with 100% similarity]
src/aul/include/aul_comp_info.h [moved from include/aul_comp_info.h with 100% similarity]
src/aul/include/aul_comp_status.h [moved from include/aul_comp_status.h with 100% similarity]
src/aul/include/aul_comp_types.h [moved from include/aul_comp_types.h with 100% similarity]
src/aul/include/aul_complication.h [moved from include/aul_complication.h with 100% similarity]
src/aul/include/aul_debug_info.h [moved from include/aul_debug_info.h with 100% similarity]
src/aul/include/aul_error.h [moved from include/aul_error.h with 100% similarity]
src/aul/include/aul_job_scheduler.h [moved from include/aul_job_scheduler.h with 100% similarity]
src/aul/include/aul_key.h [moved from include/aul_key.h with 100% similarity]
src/aul/include/aul_launcher_service.h [moved from include/aul_launcher_service.h with 100% similarity]
src/aul/include/aul_proc.h [moved from include/aul_proc.h with 100% similarity]
src/aul/include/aul_proc_group.h [moved from include/aul_proc_group.h with 100% similarity]
src/aul/include/aul_rpc_port.h [moved from include/aul_rpc_port.h with 100% similarity]
src/aul/include/aul_rsc_mgr.h [moved from include/aul_rsc_mgr.h with 100% similarity]
src/aul/include/aul_running_context.h [moved from include/aul_running_context.h with 100% similarity]
src/aul/include/aul_screen_connector.h [moved from include/aul_screen_connector.h with 100% similarity]
src/aul/include/aul_sock.h [moved from include/aul_sock.h with 100% similarity]
src/aul/include/aul_svc.h [moved from include/aul_svc.h with 100% similarity]
src/aul/include/aul_svc_internal.h [moved from include/aul_svc_internal.h with 100% similarity]
src/aul/include/aul_watch_control.h [moved from include/aul_watch_control.h with 100% similarity]
src/aul/include/aul_watchdog.h [moved from include/aul_watchdog.h with 100% similarity]
src/aul/include/aul_widget.h [moved from include/aul_widget.h with 100% similarity]
src/aul/include/aul_window.h [moved from include/aul_window.h with 99% similarity]
src/aul/launch.cc [moved from src/launch.cc with 98% similarity]
src/aul/launch.h [moved from src/launch.h with 99% similarity]
src/aul/launch_with_result.cc [moved from src/launch_with_result.cc with 98% similarity]
src/aul/menu_db_util.h [moved from src/menu_db_util.h with 100% similarity]
src/aul/mime.c [moved from src/mime.c with 100% similarity]
src/aul/miregex.c [moved from src/miregex.c with 100% similarity]
src/aul/miregex.h [moved from src/miregex.h with 100% similarity]
src/aul/pkginfo.cc [moved from src/pkginfo.cc with 98% similarity]
src/aul/pkginfo_internal.h [moved from src/pkginfo_internal.h with 100% similarity]
src/aul/socket/client.cc [moved from aul/socket/client.cc with 100% similarity]
src/aul/socket/client.hh [moved from aul/socket/client.hh with 100% similarity]
src/aul/socket/client_socket.cc [moved from aul/socket/client_socket.cc with 100% similarity]
src/aul/socket/client_socket.hh [moved from aul/socket/client_socket.hh with 100% similarity]
src/aul/socket/packet.cc [moved from aul/socket/packet.cc with 100% similarity]
src/aul/socket/packet.hh [moved from aul/socket/packet.hh with 100% similarity]
src/aul/socket/server_socket.cc [moved from aul/socket/server_socket.cc with 100% similarity]
src/aul/socket/server_socket.hh [moved from aul/socket/server_socket.hh with 100% similarity]
src/aul/socket/socket.cc [moved from aul/socket/socket.cc with 100% similarity]
src/aul/socket/socket.hh [moved from aul/socket/socket.hh with 100% similarity]
src/aul/status.cc [moved from src/status.cc with 97% similarity]
src/aul/widget.c [moved from src/widget.c with 100% similarity]
src/aul_cmd.c [deleted file]
src/aul_error.c [deleted file]
src/parser/CMakeLists.txt [moved from parser/CMakeLists.txt with 100% similarity]
src/parser/boot-sequencer/CMakeLists.txt [moved from parser/boot-sequencer/CMakeLists.txt with 100% similarity]
src/parser/boot-sequencer/app_info.cc [moved from parser/boot-sequencer/app_info.cc with 100% similarity]
src/parser/boot-sequencer/app_info.hh [moved from parser/boot-sequencer/app_info.hh with 100% similarity]
src/parser/boot-sequencer/appsvc_db.cc [moved from parser/boot-sequencer/appsvc_db.cc with 100% similarity]
src/parser/boot-sequencer/appsvc_db.hh [moved from parser/boot-sequencer/appsvc_db.hh with 100% similarity]
src/parser/boot-sequencer/cert_checker.cc [moved from parser/boot-sequencer/cert_checker.cc with 100% similarity]
src/parser/boot-sequencer/cert_checker.hh [moved from parser/boot-sequencer/cert_checker.hh with 100% similarity]
src/parser/boot-sequencer/data/boot-sequencer.info [moved from parser/boot-sequencer/data/boot-sequencer.info with 100% similarity]
src/parser/boot-sequencer/database.cc [moved from parser/boot-sequencer/database.cc with 100% similarity]
src/parser/boot-sequencer/database.hh [moved from parser/boot-sequencer/database.hh with 100% similarity]
src/parser/boot-sequencer/event_type.hh [moved from parser/boot-sequencer/event_type.hh with 100% similarity]
src/parser/boot-sequencer/exception.cc [moved from parser/boot-sequencer/exception.cc with 100% similarity]
src/parser/boot-sequencer/exception.hh [moved from parser/boot-sequencer/exception.hh with 100% similarity]
src/parser/boot-sequencer/log_private.hh [moved from parser/boot-sequencer/log_private.hh with 100% similarity]
src/parser/boot-sequencer/package_event_args.cc [moved from parser/boot-sequencer/package_event_args.cc with 100% similarity]
src/parser/boot-sequencer/package_event_args.hh [moved from parser/boot-sequencer/package_event_args.hh with 100% similarity]
src/parser/boot-sequencer/parser_plugin.cc [moved from parser/boot-sequencer/parser_plugin.cc with 100% similarity]
src/parser/boot-sequencer/parser_plugin.hh [moved from parser/boot-sequencer/parser_plugin.hh with 100% similarity]
src/parser/boot-sequencer/pkgmgr_interface.cc [moved from parser/boot-sequencer/pkgmgr_interface.cc with 100% similarity]
src/parser/component/CMakeLists.txt [moved from parser/component/CMakeLists.txt with 100% similarity]
src/parser/component/data/component.info [moved from parser/component/data/component.info with 100% similarity]
src/parser/component/data/component_db.sql.in [moved from parser/component/data/component_db.sql.in with 100% similarity]
src/parser/component/inc/component_plugin_parser.h [moved from parser/component/inc/component_plugin_parser.h with 100% similarity]
src/parser/component/inc/component_plugin_parser_db.h [moved from parser/component/inc/component_plugin_parser_db.h with 100% similarity]
src/parser/component/inc/component_plugin_parser_handler.h [moved from parser/component/inc/component_plugin_parser_handler.h with 100% similarity]
src/parser/component/inc/component_plugin_parser_private.h [moved from parser/component/inc/component_plugin_parser_private.h with 100% similarity]
src/parser/component/inc/component_plugin_parser_type.h [moved from parser/component/inc/component_plugin_parser_type.h with 100% similarity]
src/parser/component/script/14_component-add.post.in [moved from parser/component/script/14_component-add.post.in with 100% similarity]
src/parser/component/script/501.component_upgrade.sh.in [moved from parser/component/script/501.component_upgrade.sh.in with 100% similarity]
src/parser/component/script/upgrade/1_component_db_upgrade.sh.in [moved from parser/component/script/upgrade/1_component_db_upgrade.sh.in with 100% similarity]
src/parser/component/src/component_plugin_parser.c [moved from parser/component/src/component_plugin_parser.c with 100% similarity]
src/parser/component/src/component_plugin_parser_db.c [moved from parser/component/src/component_plugin_parser_db.c with 100% similarity]
src/parser/component/src/component_plugin_parser_handler.c [moved from parser/component/src/component_plugin_parser_handler.c with 100% similarity]
src/parser/component/src/component_plugin_parser_pkgmgr_interface.c [moved from parser/component/src/component_plugin_parser_pkgmgr_interface.c with 100% similarity]
src/parser/exec-checker/CMakeLists.txt [moved from parser/exec-checker/CMakeLists.txt with 100% similarity]
src/parser/exec-checker/data/exec-checker.info [moved from parser/exec-checker/data/exec-checker.info with 100% similarity]
src/parser/exec-checker/inc/exec_checker.hh [moved from parser/exec-checker/inc/exec_checker.hh with 100% similarity]
src/parser/exec-checker/inc/exec_checker_private.hh [moved from parser/exec-checker/inc/exec_checker_private.hh with 100% similarity]
src/parser/exec-checker/inc/plugin_manager.hh [moved from parser/exec-checker/inc/plugin_manager.hh with 100% similarity]
src/parser/exec-checker/src/exec_checker.cc [moved from parser/exec-checker/src/exec_checker.cc with 100% similarity]
src/parser/exec-checker/src/exec_checker_plugin_interface.cc [moved from parser/exec-checker/src/exec_checker_plugin_interface.cc with 100% similarity]
src/parser/exec-checker/src/plugin_manager.cc [moved from parser/exec-checker/src/plugin_manager.cc with 100% similarity]
src/parser/metadata/CMakeLists.txt [moved from parser/metadata/CMakeLists.txt with 100% similarity]
src/parser/metadata/alias-appid/CMakeLists.txt [moved from parser/metadata/alias-appid/CMakeLists.txt with 100% similarity]
src/parser/metadata/alias-appid/alias_info.hh [moved from parser/metadata/alias-appid/alias_info.hh with 100% similarity]
src/parser/metadata/alias-appid/appsvc_db.cc [moved from parser/metadata/alias-appid/appsvc_db.cc with 100% similarity]
src/parser/metadata/alias-appid/appsvc_db.hh [moved from parser/metadata/alias-appid/appsvc_db.hh with 100% similarity]
src/parser/metadata/alias-appid/data/alias-appid.info [moved from parser/metadata/alias-appid/data/alias-appid.info with 100% similarity]
src/parser/metadata/alias-appid/pkgmgr_interface.cc [moved from parser/metadata/alias-appid/pkgmgr_interface.cc with 100% similarity]
src/parser/metadata/alias-appid/plugin_manager.cc [moved from parser/metadata/alias-appid/plugin_manager.cc with 100% similarity]
src/parser/metadata/alias-appid/plugin_manager.hh [moved from parser/metadata/alias-appid/plugin_manager.hh with 100% similarity]
src/parser/metadata/allowed-appid/CMakeLists.txt [moved from parser/metadata/allowed-appid/CMakeLists.txt with 100% similarity]
src/parser/metadata/allowed-appid/allowed_info.hh [moved from parser/metadata/allowed-appid/allowed_info.hh with 100% similarity]
src/parser/metadata/allowed-appid/appsvc_db.cc [moved from parser/metadata/allowed-appid/appsvc_db.cc with 100% similarity]
src/parser/metadata/allowed-appid/appsvc_db.hh [moved from parser/metadata/allowed-appid/appsvc_db.hh with 100% similarity]
src/parser/metadata/allowed-appid/data/allowed-appid.info [moved from parser/metadata/allowed-appid/data/allowed-appid.info with 100% similarity]
src/parser/metadata/allowed-appid/pkgmgr_interface.cc [moved from parser/metadata/allowed-appid/pkgmgr_interface.cc with 100% similarity]
src/parser/metadata/allowed-appid/plugin_manager.cc [moved from parser/metadata/allowed-appid/plugin_manager.cc with 100% similarity]
src/parser/metadata/allowed-appid/plugin_manager.hh [moved from parser/metadata/allowed-appid/plugin_manager.hh with 100% similarity]
src/parser/metadata/common/app_event_args.hh [moved from parser/metadata/common/app_event_args.hh with 100% similarity]
src/parser/metadata/common/database.cc [moved from parser/metadata/common/database.cc with 100% similarity]
src/parser/metadata/common/database.hh [moved from parser/metadata/common/database.hh with 100% similarity]
src/parser/metadata/common/event_type.hh [moved from parser/metadata/common/event_type.hh with 100% similarity]
src/parser/metadata/common/exception.hh [moved from parser/metadata/common/exception.hh with 100% similarity]
src/parser/metadata/common/log_private.hh [moved from parser/metadata/common/log_private.hh with 100% similarity]
src/parser/metadata/common/metadata.hh [moved from parser/metadata/common/metadata.hh with 100% similarity]
src/parser/metadata/common/metadata_plugin.cc [moved from parser/metadata/common/metadata_plugin.cc with 100% similarity]
src/parser/metadata/common/metadata_plugin.hh [moved from parser/metadata/common/metadata_plugin.hh with 100% similarity]
src/parser/metadata/common/metadata_type.hh [moved from parser/metadata/common/metadata_type.hh with 100% similarity]
src/server/CMakeLists.txt [moved from server/CMakeLists.txt with 100% similarity]
src/server/api/aul_boot_sequence.cc [moved from server/api/aul_boot_sequence.cc with 100% similarity]
src/server/api/aul_boot_sequence.h [moved from server/api/aul_boot_sequence.h with 100% similarity]
src/server/api/aul_comp_info_internal.cc [moved from server/api/aul_comp_info_internal.cc with 100% similarity]
src/server/api/aul_comp_info_internal.h [moved from server/api/aul_comp_info_internal.h with 100% similarity]
src/server/api/aul_service.cc [moved from server/api/aul_service.cc with 100% similarity]
src/server/api/aul_service.h [moved from server/api/aul_service.h with 100% similarity]
src/server/api/aul_types.h [moved from server/api/aul_types.h with 100% similarity]
src/server/api/aul_widget_service.cc [moved from server/api/aul_widget_service.cc with 100% similarity]
src/server/api/aul_widget_service.h [moved from server/api/aul_widget_service.h with 100% similarity]
src/server/aul-server.pc.in [moved from server/aul-server.pc.in with 100% similarity]
src/server/boot_sequence.cc [moved from server/boot_sequence.cc with 100% similarity]
src/server/boot_sequence.hh [moved from server/boot_sequence.hh with 100% similarity]
src/server/common_private.hh [moved from server/common_private.hh with 100% similarity]
src/server/component_info.cc [moved from server/component_info.cc with 100% similarity]
src/server/component_info.hh [moved from server/component_info.hh with 100% similarity]
src/server/database.cc [moved from server/database.cc with 100% similarity]
src/server/database.hh [moved from server/database.hh with 100% similarity]
src/server/exception.cc [moved from server/exception.cc with 100% similarity]
src/server/exception.hh [moved from server/exception.hh with 100% similarity]
src/server/localized_info.cc [moved from server/localized_info.cc with 100% similarity]
src/server/localized_info.hh [moved from server/localized_info.hh with 100% similarity]
src/server/log_private.hh [moved from server/log_private.hh with 100% similarity]
src/tool/CMakeLists.txt [moved from tool/CMakeLists.txt with 100% similarity]
src/tool/app_com_tool/CMakeLists.txt [new file with mode: 0644]
src/tool/app_com_tool/app_com_tool.c [moved from tool/app_com_tool/app_com_tool.c with 100% similarity]
src/tool/app_launcher/CMakeLists.txt [moved from tool/app_launcher/CMakeLists.txt with 53% similarity]
src/tool/app_launcher/app_launcher.c [moved from tool/app_launcher/app_launcher.c with 100% similarity]
src/tool/appgroup_info/CMakeLists.txt [new file with mode: 0644]
src/tool/appgroup_info/app_group_info.c [moved from tool/appgroup_info/app_group_info.c with 100% similarity]
src/tool/appid2pid/CMakeLists.txt [new file with mode: 0644]
src/tool/appid2pid/appid2pid.c [moved from tool/appid2pid/appid2pid.c with 100% similarity]
src/tool/aul_test/CMakeLists.txt [moved from tool/aul_test/CMakeLists.txt with 78% similarity]
src/tool/aul_test/aul_test.cc [moved from tool/aul_test/aul_test.cc with 100% similarity]
src/tool/aul_test/aul_test.hh [moved from tool/aul_test/aul_test.hh with 100% similarity]
src/tool/aul_test/aul_test_private.hh [moved from tool/aul_test/aul_test_private.hh with 100% similarity]
src/tool/aul_test/log_private.hh [moved from tool/aul_test/log_private.hh with 100% similarity]
src/tool/aul_test/main.cc [moved from tool/aul_test/main.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_all_running_app_info_for_uid_test.cc [moved from tool/aul_test/tests/aul_app_get_all_running_app_info_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_all_running_app_info_test.cc [moved from tool/aul_test/tests/aul_app_get_all_running_app_info_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_appid_bypid_async_test.cc [moved from tool/aul_test/tests/aul_app_get_appid_bypid_async_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_appid_bypid_test.cc [moved from tool/aul_test/tests/aul_app_get_appid_bypid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_last_caller_pid_for_uid_test.cc [moved from tool/aul_test/tests/aul_app_get_last_caller_pid_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_last_caller_pid_test.cc [moved from tool/aul_test/tests/aul_app_get_last_caller_pid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_pid_for_uid_test.cc [moved from tool/aul_test/tests/aul_app_get_pid_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_pid_test.cc [moved from tool/aul_test/tests/aul_app_get_pid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_pkgid_bypid_test.cc [moved from tool/aul_test/tests/aul_app_get_pkgid_bypid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_running_app_info_for_uid_test.cc [moved from tool/aul_test/tests/aul_app_get_running_app_info_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_running_app_info_test.cc [moved from tool/aul_test/tests/aul_app_get_running_app_info_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_status_bypid_for_uid_test.cc [moved from tool/aul_test/tests/aul_app_get_status_bypid_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_status_bypid_test.cc [moved from tool/aul_test/tests/aul_app_get_status_bypid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_status_for_uid_test.cc [moved from tool/aul_test/tests/aul_app_get_status_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_get_status_test.cc [moved from tool/aul_test/tests/aul_app_get_status_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_is_running_test.cc [moved from tool/aul_test/tests/aul_app_is_running_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_lifecycle_get_state_test.cc [moved from tool/aul_test/tests/aul_app_lifecycle_get_state_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_app_lifecycle_register_state_changed_cb_test.cc [moved from tool/aul_test/tests/aul_app_lifecycle_register_state_changed_cb_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_disable_alias_info_test.cc [moved from tool/aul_test/tests/aul_disable_alias_info_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_enable_alias_info_test.cc [moved from tool/aul_test/tests/aul_enable_alias_info_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_get_app_info_from_db_by_pkgname_test.cc [moved from tool/aul_test/tests/aul_get_app_info_from_db_by_pkgname_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_get_defapp_from_mime_test.cc [moved from tool/aul_test/tests/aul_get_defapp_from_mime_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_get_default_app_test.cc [moved from tool/aul_test/tests/aul_get_default_app_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_get_mime_description_test.cc [moved from tool/aul_test/tests/aul_get_mime_description_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_get_mime_extension_test.cc [moved from tool/aul_test/tests/aul_get_mime_extension_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_get_mime_from_content_test.cc [moved from tool/aul_test/tests/aul_get_mime_from_content_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_get_mime_from_file_test.cc [moved from tool/aul_test/tests/aul_get_mime_from_file_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_get_mime_icon_test.cc [moved from tool/aul_test/tests/aul_get_mime_icon_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_kill_loader_test.cc [moved from tool/aul_test/tests/aul_kill_loader_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_kill_pid_async_test.cc [moved from tool/aul_test/tests/aul_kill_pid_async_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_launch_app_async_for_uid_test.cc [moved from tool/aul_test/tests/aul_launch_app_async_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_launch_app_async_test.cc [moved from tool/aul_test/tests/aul_launch_app_async_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_launch_app_for_uid_test.cc [moved from tool/aul_test/tests/aul_launch_app_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_launch_app_test.cc [moved from tool/aul_test/tests/aul_launch_app_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_listen_app_dead_signal_test.cc [moved from tool/aul_test/tests/aul_listen_app_dead_signal_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_listen_app_launch_signal_test.cc [moved from tool/aul_test/tests/aul_listen_app_launch_signal_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_listen_app_launch_signal_v2_test.cc [moved from tool/aul_test/tests/aul_listen_app_launch_signal_v2_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_listen_app_status_for_uid_test.cc [moved from tool/aul_test/tests/aul_listen_app_status_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_listen_app_status_signal_test.cc [moved from tool/aul_test/tests/aul_listen_app_status_signal_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_listen_app_status_test.cc [moved from tool/aul_test/tests/aul_listen_app_status_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_open_app_for_uid_test.cc [moved from tool/aul_test/tests/aul_open_app_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_open_app_test.cc [moved from tool/aul_test/tests/aul_open_app_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_open_content_test.cc [moved from tool/aul_test/tests/aul_open_content_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_open_file_test.cc [moved from tool/aul_test/tests/aul_open_file_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_pause_app_for_uid_test.cc [moved from tool/aul_test/tests/aul_pause_app_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_pause_app_test.cc [moved from tool/aul_test/tests/aul_pause_app_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_pause_pid_for_uid_test.cc [moved from tool/aul_test/tests/aul_pause_pid_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_pause_pid_test.cc [moved from tool/aul_test/tests/aul_pause_pid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_proc_get_extra_test.cc [moved from tool/aul_test/tests/aul_proc_get_extra_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_proc_get_name_test.cc [moved from tool/aul_test/tests/aul_proc_get_name_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_proc_group_add_test.cc [moved from tool/aul_test/tests/aul_proc_group_add_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_proc_group_foreach_test.cc [moved from tool/aul_test/tests/aul_proc_group_foreach_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_proc_group_get_test.cc [moved from tool/aul_test/tests/aul_proc_group_get_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_proc_group_remove_test.cc [moved from tool/aul_test/tests/aul_proc_group_remove_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_proc_register_test.cc [moved from tool/aul_test/tests/aul_proc_register_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_reload_appinfo_test.cc [moved from tool/aul_test/tests/aul_reload_appinfo_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_restart_loader_test.cc [moved from tool/aul_test/tests/aul_restart_loader_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_resume_app_for_uid_test.cc [moved from tool/aul_test/tests/aul_resume_app_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_resume_app_test.cc [moved from tool/aul_test/tests/aul_resume_app_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_resume_pid_async_for_uid_test.cc [moved from tool/aul_test/tests/aul_resume_pid_async_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_resume_pid_async_test.cc [moved from tool/aul_test/tests/aul_resume_pid_async_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_resume_pid_for_uid_test.cc [moved from tool/aul_test/tests/aul_resume_pid_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_resume_pid_test.cc [moved from tool/aul_test/tests/aul_resume_pid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_set_alias_appid_test.cc [moved from tool/aul_test/tests/aul_set_alias_appid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_set_defapp_with_mime_test.cc [moved from tool/aul_test/tests/aul_set_defapp_with_mime_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_set_default_app_by_operation_test.cc [moved from tool/aul_test/tests/aul_set_default_app_by_operation_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_subapp_terminate_request_pid_test.cc [moved from tool/aul_test/tests/aul_subapp_terminate_request_pid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_terminate_app_async_test.cc [moved from tool/aul_test/tests/aul_terminate_app_async_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_terminate_bgapp_pid_test.cc [moved from tool/aul_test/tests/aul_terminate_bgapp_pid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_terminate_pid_async_for_uid_test.cc [moved from tool/aul_test/tests/aul_terminate_pid_async_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_terminate_pid_async_v2_test.cc [moved from tool/aul_test/tests/aul_terminate_pid_async_v2_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_terminate_pid_for_uid_test.cc [moved from tool/aul_test/tests/aul_terminate_pid_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_terminate_pid_sync_for_uid_test.cc [moved from tool/aul_test/tests/aul_terminate_pid_sync_for_uid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_terminate_pid_sync_test.cc [moved from tool/aul_test/tests/aul_terminate_pid_sync_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_terminate_pid_test.cc [moved from tool/aul_test/tests/aul_terminate_pid_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_terminate_pid_without_restart_test.cc [moved from tool/aul_test/tests/aul_terminate_pid_without_restart_test.cc with 100% similarity]
src/tool/aul_test/tests/aul_unset_alias_appid_test.cc [moved from tool/aul_test/tests/aul_unset_alias_appid_test.cc with 100% similarity]
src/tool/aul_window/CMakeLists.txt [moved from tool/aul_window/CMakeLists.txt with 87% similarity]
src/tool/aul_window/aul_window.cc [moved from tool/aul_window/aul_window.cc with 100% similarity]
src/tool/aulctl/CMakeLists.txt [moved from tool/aulctl/CMakeLists.txt with 90% similarity]
src/tool/aulctl/aulctl.cc [moved from tool/aulctl/aulctl.cc with 100% similarity]
src/tool/aulctl/boot_sequence/app_info.cc [moved from tool/aulctl/boot_sequence/app_info.cc with 99% similarity]
src/tool/aulctl/boot_sequence/app_info.hh [moved from tool/aulctl/boot_sequence/app_info.hh with 100% similarity]
src/tool/aulctl/boot_sequence/boot_sequence_manager.cc [moved from tool/aulctl/boot_sequence/boot_sequence_manager.cc with 95% similarity]
src/tool/aulctl/boot_sequence/boot_sequence_manager.hh [moved from tool/aulctl/boot_sequence/boot_sequence_manager.hh with 100% similarity]
src/tool/aulctl/operation/help_operation.cc [moved from tool/aulctl/operation/help_operation.cc with 100% similarity]
src/tool/aulctl/operation/help_operation.hh [moved from tool/aulctl/operation/help_operation.hh with 100% similarity]
src/tool/aulctl/operation/is_active_operation.cc [moved from tool/aulctl/operation/is_active_operation.cc with 100% similarity]
src/tool/aulctl/operation/is_active_operation.hh [moved from tool/aulctl/operation/is_active_operation.hh with 100% similarity]
src/tool/aulctl/operation/list_apps_operation.cc [moved from tool/aulctl/operation/list_apps_operation.cc with 100% similarity]
src/tool/aulctl/operation/list_apps_operation.hh [moved from tool/aulctl/operation/list_apps_operation.hh with 100% similarity]
src/tool/aulctl/operation/list_dependencies_operation.cc [moved from tool/aulctl/operation/list_dependencies_operation.cc with 100% similarity]
src/tool/aulctl/operation/list_dependencies_operation.hh [moved from tool/aulctl/operation/list_dependencies_operation.hh with 100% similarity]
src/tool/aulctl/operation/operation.hh [moved from tool/aulctl/operation/operation.hh with 100% similarity]
src/tool/aulctl/operation/operation_factory.cc [moved from tool/aulctl/operation/operation_factory.cc with 100% similarity]
src/tool/aulctl/operation/operation_factory.hh [moved from tool/aulctl/operation/operation_factory.hh with 100% similarity]
src/tool/aulctl/operation/reload_operation.cc [moved from tool/aulctl/operation/reload_operation.cc with 100% similarity]
src/tool/aulctl/operation/reload_operation.hh [moved from tool/aulctl/operation/reload_operation.hh with 100% similarity]
src/tool/aulctl/operation/start_operation.cc [moved from tool/aulctl/operation/start_operation.cc with 100% similarity]
src/tool/aulctl/operation/start_operation.hh [moved from tool/aulctl/operation/start_operation.hh with 100% similarity]
src/tool/aulctl/operation/status_all_operation.cc [moved from tool/aulctl/operation/status_all_operation.cc with 100% similarity]
src/tool/aulctl/operation/status_all_operation.hh [moved from tool/aulctl/operation/status_all_operation.hh with 100% similarity]
src/tool/aulctl/operation/status_once_operation.cc [moved from tool/aulctl/operation/status_once_operation.cc with 100% similarity]
src/tool/aulctl/operation/status_once_operation.hh [moved from tool/aulctl/operation/status_once_operation.hh with 100% similarity]
src/tool/aulctl/operation/stop_operation.cc [moved from tool/aulctl/operation/stop_operation.cc with 100% similarity]
src/tool/aulctl/operation/stop_operation.hh [moved from tool/aulctl/operation/stop_operation.hh with 100% similarity]
src/tool/compmgr_tool/CMakeLists.txt [new file with mode: 0644]
src/tool/compmgr_tool/compmgr_tool.c [moved from tool/compmgr_tool/compmgr_tool.c with 100% similarity]
src/tool/launch_app/CMakeLists.txt [new file with mode: 0644]
src/tool/launch_app/launch_app.c [moved from tool/launch_app/launch_app.c with 100% similarity]
src/tool/launch_debug/CMakeLists.txt [moved from tool/launch_debug/CMakeLists.txt with 50% similarity]
src/tool/launch_debug/launch_debug.c [moved from tool/launch_debug/launch_debug.c with 100% similarity]
src/tool/open_app/CMakeLists.txt [moved from tool/open_app/CMakeLists.txt with 52% similarity]
src/tool/open_app/open_app.c [moved from tool/open_app/open_app.c with 100% similarity]
src/tool/recovery/CMakeLists.txt [moved from tool/recovery/CMakeLists.txt with 100% similarity]
src/tool/recovery/appsvc_db_recovery.c [moved from tool/recovery/appsvc_db_recovery.c with 100% similarity]
src/tool/recovery/component_db_recovery.c [moved from tool/recovery/component_db_recovery.c with 100% similarity]
src/tool/recovery/db_internal.c [moved from tool/recovery/db_internal.c with 100% similarity]
src/tool/recovery/db_internal.h [moved from tool/recovery/db_internal.h with 100% similarity]
test/app_control_tests/CMakeLists.txt
test/unit_tests/CMakeLists.txt
test/unit_tests/test_app_com.cc
test/unit_tests/test_app_group.cc
test/unit_tests/test_comp_context.cc
test/unit_tests/test_comp_info.cc
test/unit_tests/test_comp_status.cc
test/unit_tests/test_complication.cc
test/unit_tests/test_job_scheduler.cc
test/unit_tests/test_launch.cc
test/unit_tests/test_launch_with_result.cc
test/unit_tests/test_launcher_service.cc
test/unit_tests/test_pkginfo.cc
test/unit_tests/test_status.cc
test/unit_tests/test_watchdog.cc
tool/app_com_tool/CMakeLists.txt [deleted file]
tool/appgroup_info/CMakeLists.txt [deleted file]
tool/appid2pid/CMakeLists.txt [deleted file]
tool/compmgr_tool/CMakeLists.txt [deleted file]
tool/launch_app/CMakeLists.txt [deleted file]

index dcd0144..95a204c 100644 (file)
@@ -15,7 +15,12 @@ ADD_DEFINITIONS("-DCOMPONENT_DB_VERSION=\"${COMPONENT_DB_VERSION}\"")
 ADD_DEFINITIONS("-DLIBDIR=\"${LIBDIR}\"")
 
 ## Compile flags
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-zdefs -fvisibility=hidden -g -Wall -Werror -fpic ")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-zdefs")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fpic")
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 SET(CMAKE_C_FLAGS_RELEASE "-O2")
 
@@ -25,7 +30,8 @@ SET(CMAKE_CXX_FLAGS_RELEASE "-O2")
 
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
 
-SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
+SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
+  "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
 
 ## Target
 SET(TARGET_AUL "aul")
@@ -59,78 +65,19 @@ PKG_CHECK_MODULES(UUID_DEPS REQUIRED uuid)
 PKG_CHECK_MODULES(VCONF_DEPS REQUIRED vconf)
 PKG_CHECK_MODULES(XDGMIME_DEPS REQUIRED xdgmime)
 
-## Target sources
-AUX_SOURCE_DIRECTORY(src SRCS)
-AUX_SOURCE_DIRECTORY(aul AUL_SRCS)
-AUX_SOURCE_DIRECTORY(aul/api AUL_API_SRCS)
-AUX_SOURCE_DIRECTORY(aul/app_control AUL_APP_CONTROL_SRCS)
-AUX_SOURCE_DIRECTORY(aul/app_group AUL_APP_GROUP_SRCS)
-AUX_SOURCE_DIRECTORY(aul/app_info AUL_APP_INFO_SRCS)
-AUX_SOURCE_DIRECTORY(aul/app_manager AUL_APP_MANAGER_SRCS)
-AUX_SOURCE_DIRECTORY(aul/common AUL_COMMON_SRCS)
-AUX_SOURCE_DIRECTORY(aul/component AUL_COMPONENT_SRCS)
-AUX_SOURCE_DIRECTORY(aul/socket AUL_SOCKET_SRCS)
-
-ADD_LIBRARY(${TARGET_AUL} SHARED
-  ${SRCS}
-  ${AUL_SRCS}
-  ${AUL_API_SRCS}
-  ${AUL_APP_CONTROL_SRCS}
-  ${AUL_APP_GROUP_SRCS}
-  ${AUL_APP_MANAGER_SRCS}
-  ${AUL_APP_INFO_SRCS}
-  ${AUL_COMMON_SRCS}
-  ${AUL_COMPONENT_SRCS}
-  ${AUL_SOCKET_SRCS}
-  ${AUL_BOOT_SEQUENCE_SRCS}
-)
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL} PUBLIC
-  ${CMAKE_CURRENT_SOURCE_DIR}
-  ${CMAKE_CURRENT_SOURCE_DIR}/include
-  ${CMAKE_CURRENT_SOURCE_DIR}/include/internal
-  ${CMAKE_CURRENT_SOURCE_DIR}/aul/
-  ${CMAKE_CURRENT_SOURCE_DIR}/aul/api
-  ${CMAKE_CURRENT_SOURCE_DIR}/aul/app_control
-  ${CMAKE_CURRENT_SOURCE_DIR}/aul/app_manager
-  ${CMAKE_CURRENT_SOURCE_DIR}/aul/common
-  ${CMAKE_CURRENT_SOURCE_DIR}/aul/component
-  ${CMAKE_CURRENT_SOURCE_DIR}/aul/socket
-)
-
-SET_TARGET_PROPERTIES(${TARGET_AUL} PROPERTIES SOVERSION ${MAJORVER})
-SET_TARGET_PROPERTIES(${TARGET_AUL} PROPERTIES VERSION ${FULLVER})
-
-APPLY_PKG_CONFIG(${TARGET_AUL} PUBLIC
-  BUNDLE_DEPS
-  CAPI_SYSTEM_INFO_DEPS
-  CAPI_SYSTEM_RESOURCE_DEPS
-  DLOG_DEPS
-  GIO_DEPS
-  GLIB_DEPS
-  INIPARSER_DEPS
-  LIBSMACK_DEPS
-  LIBTZPLATFORM_CONFIG_DEPS
-  LIBXML_DEPS
-  PARCEL_DEPS
-  PKGMGR_INFO_DEPS
-  STORAGE_DEPS
-  TTRACE_DEPS
-  UUID_DEPS
-  VCONF_DEPS
-  XDGMIME_DEPS
-)
-
-INSTALL(TARGETS ${TARGET_AUL} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
-
 # pkgconfig file
-CONFIGURE_FILE(aul.pc.in aul.pc @ONLY)
-CONFIGURE_FILE(feature/preexec_list.txt.in feature/preexec_list.txt @ONLY)
-CONFIGURE_FILE(data/appsvc_db.sql.in data/appsvc_db.sql @ONLY)
-CONFIGURE_FILE(scripts/12_appsvc-add.post.in scripts/12_appsvc-add.post @ONLY)
-CONFIGURE_FILE(scripts/501.appsvc_db_upgrade.sh.in scripts/501.appsvc_db_upgrade.sh @ONLY)
-CONFIGURE_FILE(scripts/upgrade/1_appsvc_db_upgrade.sh.in scripts/upgrade/1_appsvc_db_upgrade.sh @ONLY)
-CONFIGURE_FILE(scripts/upgrade/2_appsvc_db_upgrade.sh.in scripts/upgrade/2_appsvc_db_upgrade.sh @ONLY)
+CONFIGURE_FILE(feature/preexec_list.txt.in
+  feature/preexec_list.txt @ONLY)
+CONFIGURE_FILE(data/appsvc_db.sql.in
+  data/appsvc_db.sql @ONLY)
+CONFIGURE_FILE(scripts/12_appsvc-add.post.in
+  scripts/12_appsvc-add.post @ONLY)
+CONFIGURE_FILE(scripts/501.appsvc_db_upgrade.sh.in
+  scripts/501.appsvc_db_upgrade.sh @ONLY)
+CONFIGURE_FILE(scripts/upgrade/1_appsvc_db_upgrade.sh.in
+  scripts/upgrade/1_appsvc_db_upgrade.sh @ONLY)
+CONFIGURE_FILE(scripts/upgrade/2_appsvc_db_upgrade.sh.in
+  scripts/upgrade/2_appsvc_db_upgrade.sh @ONLY)
 
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/501.appsvc_db_upgrade.sh
   DESTINATION /usr/share/upgrade/scripts)
@@ -138,21 +85,11 @@ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/upgrade/1_appsvc_db_upgrade.sh
   DESTINATION /etc/aul/upgrade/scripts)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/upgrade/2_appsvc_db_upgrade.sh
   DESTINATION /etc/aul/upgrade/scripts)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/aul.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/feature/preexec_list.txt DESTINATION ${SHARE_INSTALL_PREFIX}/aul )
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/miregex DESTINATION ${SHARE_INSTALL_PREFIX}/aul )
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/aul.conf DESTINATION /etc/dbus-1/system.d)
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/include/  DESTINATION include/aul
-  FILES_MATCHING
-  PATTERN "*.h"
-)
-INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/aul/api/ DESTINATION include/aul/api
-  FILES_MATCHING
-  PATTERN "*.h"
-)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/feature/preexec_list.txt
+  DESTINATION ${SHARE_INSTALL_PREFIX}/aul )
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/miregex
+  DESTINATION ${SHARE_INSTALL_PREFIX}/aul )
 
 ## Sub directories
-ADD_SUBDIRECTORY(parser)
-ADD_SUBDIRECTORY(server)
+ADD_SUBDIRECTORY(src)
 ADD_SUBDIRECTORY(test)
-ADD_SUBDIRECTORY(tool)
index 6616d13..1e5dc61 100644 (file)
@@ -155,10 +155,10 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %__make %{?_smp_mflags}
 
 sqlite3 .appsvc.db < ./data/appsvc_db.sql
-sqlite3 .component.db < ./parser/component/data/component_db.sql
+sqlite3 .component.db < ./src/parser/component/data/component_db.sql
 
 %check
-export LD_LIBRARY_PATH="../../"
+export LD_LIBRARY_PATH="../../src/aul"
 ctest -V
 
 %if 0%{?gcov:1}
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644 (file)
index 0000000..cd5f6cc
--- /dev/null
@@ -0,0 +1,4 @@
+ADD_SUBDIRECTORY(aul)
+ADD_SUBDIRECTORY(parser)
+ADD_SUBDIRECTORY(server)
+ADD_SUBDIRECTORY(tool)
diff --git a/src/aul/CMakeLists.txt b/src/aul/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f372ce9
--- /dev/null
@@ -0,0 +1,80 @@
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/api AUL_API_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/app_control
+  AUL_APP_CONTROL_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/app_group AUL_APP_GROUP_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/app_info AUL_APP_INFO_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/app_manager AUL_APP_MANAGER_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/common AUL_COMMON_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/component AUL_COMPONENT_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/socket AUL_SOCKET_SRCS)
+
+ADD_LIBRARY(${TARGET_AUL} SHARED
+  ${SRCS}
+  ${AUL_API_SRCS}
+  ${AUL_APP_CONTROL_SRCS}
+  ${AUL_APP_GROUP_SRCS}
+  ${AUL_APP_MANAGER_SRCS}
+  ${AUL_APP_INFO_SRCS}
+  ${AUL_COMMON_SRCS}
+  ${AUL_COMPONENT_SRCS}
+  ${AUL_SOCKET_SRCS}
+  ${AUL_BOOT_SEQUENCE_SRCS}
+)
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../
+  ${CMAKE_CURRENT_SOURCE_DIR}/include
+  ${CMAKE_CURRENT_SOURCE_DIR}/include/internal
+  ${CMAKE_CURRENT_SOURCE_DIR}/api
+  ${CMAKE_CURRENT_SOURCE_DIR}/app_control
+  ${CMAKE_CURRENT_SOURCE_DIR}/app_manager
+  ${CMAKE_CURRENT_SOURCE_DIR}/common
+  ${CMAKE_CURRENT_SOURCE_DIR}/component
+  ${CMAKE_CURRENT_SOURCE_DIR}/socket
+)
+
+SET_TARGET_PROPERTIES(${TARGET_AUL} PROPERTIES SOVERSION ${MAJORVER})
+SET_TARGET_PROPERTIES(${TARGET_AUL} PROPERTIES VERSION ${FULLVER})
+
+APPLY_PKG_CONFIG(${TARGET_AUL} PUBLIC
+  BUNDLE_DEPS
+  CAPI_SYSTEM_INFO_DEPS
+  CAPI_SYSTEM_RESOURCE_DEPS
+  DLOG_DEPS
+  GIO_DEPS
+  GLIB_DEPS
+  INIPARSER_DEPS
+  LIBSMACK_DEPS
+  LIBTZPLATFORM_CONFIG_DEPS
+  LIBXML_DEPS
+  PARCEL_DEPS
+  PKGMGR_INFO_DEPS
+  STORAGE_DEPS
+  TTRACE_DEPS
+  UUID_DEPS
+  VCONF_DEPS
+  XDGMIME_DEPS
+)
+
+INSTALL(TARGETS ${TARGET_AUL}
+  DESTINATION ${LIB_INSTALL_DIR}
+  COMPONENT RuntimeLibraries)
+
+# pkgconfig file
+CONFIGURE_FILE(aul.pc.in aul.pc @ONLY)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/aul.pc
+  DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/aul.conf
+  DESTINATION /etc/dbus-1/system.d)
+
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION include/aul
+  FILES_MATCHING
+  PATTERN "*.h"
+)
+
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/api/ DESTINATION include/aul/api
+  FILES_MATCHING
+  PATTERN "*.h"
+)
similarity index 97%
rename from src/app_com.cc
rename to src/aul/app_com.cc
index 57c304d..ff92125 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "include/aul_app_com.h"
+#include "aul/include/aul_app_com.h"
 
 #include <bundle_cpp.h>
 #include <bundle_internal.h>
 #include <mutex>
 #include <string>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_cmd.h"
-#include "launch.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_cmd.h"
+#include "aul/launch.h"
 
 using namespace aul::internal;
 
similarity index 99%
rename from aul/app_control/resolve_info.cc
rename to src/aul/app_control/resolve_info.cc
index 5efc46d..c384f05 100644 (file)
  * limitations under the License.
  */
 
+#include "aul/app_control/resolve_info.hh"
+
 #include <errno.h>
 #include <glib.h>
 
-#include "aul/app_control/resolve_info.hh"
+#include "aul/aul_svc_priv_key.h"
 #include "aul/common/exception.hh"
 #include "aul/common/log_private.hh"
 #include "aul/common/util.hh"
-#include "include/aul.h"
-#include "src/aul_svc_priv_key.h"
+#include "aul/include/aul.h"
 
 namespace aul {
 
similarity index 98%
rename from src/app_group.cc
rename to src/aul/app_group.cc
index dc2d1a0..4d74244 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "include/aul_app_group.h"
+#include "aul/include/aul_app_group.h"
 
 #include <bundle_cpp.h>
 
 #include <string>
 #include <vector>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-#include "launch.h"
-
 #include "aul/app_group/app_group_info.hh"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
 #include "aul/common/exception.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/launch.h"
 
 using namespace aul;
 using namespace aul::internal;
similarity index 96%
rename from src/app_request.cc
rename to src/aul/app_request.cc
index 1842a2e..488bc25 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "app_request.h"
+#include "aul/app_request.h"
 
 #include <bundle_internal.h>
 #include <ctype.h>
 #include <memory>
 #include <utility>
 
-#include "aul_cmd.h"
-#include "aul_error.h"
-#include "aul_sock.h"
-#include "aul_util.h"
-#include "launch.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul_cmd.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/launch.h"
 
 namespace aul {
 namespace internal {
similarity index 88%
rename from src/app_request.h
rename to src/aul/app_request.h
index 28f066f..ce21ac5 100644 (file)
  * limitations under the License.
  */
 
-#ifndef APP_REQUEST_H_
-#define APP_REQUEST_H_
+#ifndef AUL_APP_REQUEST_H_
+#define AUL_APP_REQUEST_H_
 
 #include <bundle_cpp.h>
 #include <bundle.h>
 #include <string>
 
-#include "aul.h"
-#include "aul_sock.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_sock.h"
 
 namespace aul {
 namespace internal {
@@ -30,7 +30,7 @@ namespace internal {
 class AppRequest {
  public:
   AppRequest(int cmd, uid_t uid);
-  AppRequest(int cmd);
+  explicit AppRequest(int cmd);
 
   AppRequest& With(tizen_base::Bundle b);
   AppRequest& With(bundle* b);
@@ -56,4 +56,4 @@ class AppRequest {
 }  // namespace internal
 }  // namespace aul
 
-#endif  // APP_REQUEST_H_
\ No newline at end of file
+#endif  // AUL_APP_REQUEST_H_
\ No newline at end of file
similarity index 99%
rename from src/app_signal.cc
rename to src/aul/app_signal.cc
index ae44e7b..a9d6967 100644 (file)
 #include <mutex>
 #include <string>
 
-#include "include/aul.h"
-#include "aul_api.h"
-
-#include "log_private.hh"
+#include "aul/aul_api.h"
+#include "aul/include/aul.h"
+#include "aul/common/log_private.hh"
 
 namespace {
 
similarity index 100%
rename from src/app_signal.h
rename to src/aul/app_signal.h
similarity index 100%
rename from aul.conf
rename to src/aul/aul.conf
similarity index 100%
rename from aul.pc.in
rename to src/aul/aul.pc.in
similarity index 100%
rename from src/aul_api.h
rename to src/aul/aul_api.h
diff --git a/src/aul/aul_cmd.cc b/src/aul/aul_cmd.cc
new file mode 100644 (file)
index 0000000..84c6465
--- /dev/null
@@ -0,0 +1,232 @@
+/*
+ * Copyright (c) 2018 - 2020 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include "aul/include/aul_cmd.h"
+
+#include <stdio.h>
+
+#include "aul/aul_api.h"
+
+extern "C" API const char* aul_cmd_convert_to_string(int cmd) {
+  static const char* cmd_string_table[] = {
+      "APP_START",
+
+      "APP_OPEN",
+      "APP_RESUME",
+      "APP_RESUME_BY_PID",
+      "APP_TERM_BY_PID",
+      "APP_TERM_BY_PID_WITHOUT_RESTART",
+      "APP_RESULT",
+      "APP_START_RES",
+      "APP_CANCEL",
+      "APP_KILL_BY_PID",
+      "APP_UPDATE_RUA_STAT",
+
+      "APP_ADD_HISTORY",
+      "APP_REMOVE_HISTORY",
+      "APP_RUNNING_INFO",
+      "APP_RUNNING_INFO_RESULT",
+      "APP_IS_RUNNING",
+      "APP_GET_APPID_BYPID",
+      "APP_GET_PKGID_BYPID",
+      "APP_GET_INFO_OK",
+      "APP_GET_INFO_ERROR",
+      "APP_KEY_EVENT",
+
+      "APP_KEY_RESERVE",
+      "APP_KEY_RELEASE",
+      "APP_STATUS_UPDATE",
+      "APP_RUNNING_LIST_UPDATE",
+      "APP_TERM_REQ_BY_PID",
+      "APP_TERM_BY_PID_ASYNC",
+      "APP_TERM_BGAPP_BY_PID",
+      "APP_PAUSE",
+      "APP_PAUSE_BY_PID",
+      "APP_GROUP_GET_WINDOW",
+
+      "APP_GROUP_SET_WINDOW",
+      "APP_GROUP_GET_FG",
+      "APP_GROUP_GET_LEADER_PID",
+      "APP_GROUP_GET_LEADER_PIDS",
+      "APP_GROUP_GET_GROUP_PIDS",
+      "APP_GROUP_GET_IDLE_PIDS",
+      "APP_GROUP_LOWER",
+      "APP_GROUP_CLEAR_TOP",
+      "APP_GROUP_ACTIVATE_BELOW",
+      "APP_GET_STATUS",
+
+      "APP_ADD_LOADER",
+      "APP_REMOVE_LOADER",
+      "APP_GET_PID",
+      "APP_GET_DC_SOCKET_PAIR",
+      "APP_GET_MP_SOCKET_PAIR",
+      "APP_COM_CREATE",
+      "APP_COM_JOIN",
+      "APP_COM_SEND",
+      "APP_COM_LEAVE",
+      "APP_COM_MESSAGE",
+
+      "WIDGET_ADD",
+      "WIDGET_DEL",
+      "WIDGET_LIST",
+      "WIDGET_UPDATE",
+      "WIDGET_COUNT",
+      "WIDGET_GET_CONTENT",
+      "APP_REGISTER_PID",
+      "APP_WAKE",
+      "APP_SUSPEND",
+      "AMD_RELOAD_APPINFO",
+
+      "LAUNCHPAD_DEAD_SIGNAL",
+      "APP_ALL_RUNNING_INFO",
+      "APP_SET_APP_CONTROL_DEFAULT_APP",
+      "APP_UNSET_APP_CONTROL_DEFAULT_APP",
+      "APP_START_ASYNC",
+      "APP_SET_PROCESS_GROUP",
+      "APP_PREPARE_CANDIDATE_PROCESS",
+      "APP_TERM_BY_PID_SYNC",
+      "APP_GET_STATUS_BY_APPID",
+      "APP_GET_LAST_CALLER_PID",
+
+      "APP_TERM_BY_PID_SYNC_WITHOUT_RESTART",
+      "APP_RESUME_BY_PID_ASYNC",
+      "APP_SET_ALIAS_APPID",
+      "APP_UNSET_ALIAS_APPID",
+      "APP_ENABLE_ALIAS_INFO",
+      "APP_DISABLE_ALIAS_INFO",
+      "APP_GROUP_ACTIVATE_ABOVE",
+      "ADD_APP_SCREEN",
+      "REMOVE_APP_SCREEN",
+      "APP_UPDATE_REQUESTED",
+
+      "ADD_SCREEN_VIEWER",
+      "REMOVE_SCREEN_VIEWER",
+      "LAUNCHPAD_LAUNCH_SIGNAL",
+      "APP_RUNNING_INSTANCE_INFO",
+      "APP_GET_INSTANCE_ID_BYPID",
+      "APP_SET_CACHE",
+      "APP_GET_APPID_FROM_CACHE",
+      "APP_INVALIDATE_CACHE",
+      "APP_STARTUP_SIGNAL",
+      "APP_WINDOW_ATTACH",
+
+      "APP_WINDOW_DETACH",
+      "APP_START_RES_ASYNC",
+      "APP_NOTIFY_EXIT",
+      "APP_GET_APPID_BY_SURFACE_ID",
+      "APP_GET_INSTANCE_ID_BY_SURFACE_ID",
+      "UPDATE_SCREEN_VIEWER_STATUS",
+      "WIDGET_RUNNING_INFO",
+      "JOB_STATUS_UPDATE",
+      "WIDGET_CHANGE_STATUS",
+      "RPC_PORT_PREPARE_STUB",
+
+      "RPC_PORT_CREATE_SOCKET_PAIR",
+      "RPC_PORT_NOTIFY_RPC_FINISHED",
+      "COMPLICATION_UPDATE_REQUEST",
+      "APP_NOTIFY_START",
+      "WATCHDOG_ENABLE",
+      "WATCHDOG_DISABLE",
+      "WATCHDOG_PING",
+      "WATCHDOG_KICK",
+      "APP_SEND_LAUNCH_REQUEST",
+      "APP_SEND_LAUNCH_REQUEST_SYNC",
+
+      "COMP_NOTIFY_START",
+      "COMP_NOTIFY_EXIT",
+      "COMP_STATUS_UPDATE",
+      "APP_TERM_INSTANCE_ASYNC",
+      "APP_GROUP_SET_WINDOW_V2",
+      "APP_GROUP_LOWER_V2",
+      "APP_GROUP_GET_LEADER_IDS",
+      "APP_GROUP_GET_GROUP_INFO",
+      "APP_GROUP_GET_IDLE_INFO",
+      "COMP_CONTEXT_FOREACH",
+
+      "COMP_CONTEXT_GET",
+      "COMP_CONTEXT_IS_RUNNING",
+      "COMP_CONTEXT_RESUME",
+      "COMP_CONTEXT_PAUSE",
+      "COMP_CONTEXT_TERMINATE_BG_COMP",
+      "COMP_CONTEXT_TERMINATE",
+      "APP_RESUME_INSTANCE",
+      "APP_PAUSE_INSTANCE",
+      "APP_TERM_BG_INSTANCE",
+      "LAUNCHPAD_CHILD_PROCESS", /* unused */
+
+      "COMP_INFO_GET",
+      "COMP_INFO_FOREACH",
+      "APP_TERMINATE",
+      "APP_IS_RUNNING_V2",
+      "ANR_NOTIFY",
+      "APP_GET_RUNNING_CONTEXT",
+      "LAUNCHER_SERVICE_NOTIFY_ANIMATION_STARTED",
+      "LAUNCHER_SERVICE_NOTIFY_ANIMATION_FINISHED",
+      "APP_SEND_RESUME_REQUEST",
+      "APP_PREPARE_APP_DEFINED_LOADER",
+
+      "WIDGET_DISABLE",
+      "TRIGGER_APP_SCREEN_FOCUSED_FORCE",
+      "WIDGET_EVENT",
+      "SET_PRIVATE_SHARING",
+      "UNSET_PRIVATE_SHARING",
+      "APP_CONTEXT_GET",
+      "APP_CONTEXT_GET_BY_INSTANCE_ID",
+      "APP_CONTEXT_GET_BY_PID",
+      "APP_GROUP_ADD",
+      "APP_GROUP_REMOVE",
+
+      "APP_GET_APPID_LIST",
+      "COMP_PORT_EXIST",
+      "COMP_PORT_CREATE",
+      "COMP_PORT_DESTROY",
+      "APP_LIFECYCLE_UPDATE_STATE",
+
+      "APP_STATUS_UPDATE_V2",
+      "APP_GET_APP_CONTROL_DEFAULT_APPS",
+      "APP_GET_APPID_BY_ALIAS_APPID",
+      "APP_GET_APP_CONTROL_DEFAULT_APP",
+      "APP_LIFECYCLE_GET_STATE",
+
+      "PROC_REGISTER",
+      "PROC_DEREGISTER",
+      "PROC_GET_NAME",
+      "PROC_GET_EXTRA",
+      "RPC_PORT_CREATE",
+
+      "RPC_PORT_DESTROY",
+      "RPC_PORT_EXIST",
+      "APP_WINDOW_ATTACH_BELOW",
+      "PROC_GROUP_ADD",
+      "PROC_GROUP_REMOVE",
+
+      "APP_CONNECT",
+      "APP_SET_AUTO_RESTART",
+      "BOOT_SEQUENCE_START_APP",
+      "BOOT_SEQUENCE_GET_APPINFO_LIST",
+      "BOOT_SEQUENCE_RELOAD",
+
+      "PKG_PRE_EVENT_SEND",
+      "PROC_GROUP_FOREACH",
+      "PROC_GROUP_GET",
+
+      "CUSTOM_COMMAND"};
+
+  if (cmd < 0 || cmd >= APP_CMD_MAX) return cmd_string_table[APP_CMD_MAX];
+
+  return cmd_string_table[cmd];
+}
similarity index 98%
rename from src/aul_comp_context.cc
rename to src/aul/aul_comp_context.cc
index b93e82c..46b06bb 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "include/aul_comp_context.h"
+#include "aul/include/aul_comp_context.h"
 
 #include <bundle_cpp.h>
 
 #include <string>
 #include <vector>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
-
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
 #include "aul/common/exception.hh"
 #include "aul/component/component_running_context.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
 
 using namespace aul;
 
similarity index 97%
rename from src/aul_comp_info.cc
rename to src/aul/aul_comp_info.cc
index 544579f..604779b 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "include/aul_comp_info.h"
+#include "aul/include/aul_comp_info.h"
 
 #include <vconf.h>
 
 #include <string>
 #include <vector>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
 #include "aul/common/exception.hh"
 #include "aul/component/component_info.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
 
 using namespace aul;
 
diff --git a/src/aul/aul_error.cc b/src/aul/aul_error.cc
new file mode 100644 (file)
index 0000000..a2ca1bd
--- /dev/null
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "aul/include/aul_error.h"
+
+#include <errno.h>
+
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_sock.h"
+
+extern "C" API int aul_error_convert(int res) {
+  int ret;
+
+  switch (res) {
+    case -ENOMEM:
+      ret = AUL_R_ENOMEM;
+      break;
+    case -EREJECTED:
+      ret = AUL_R_EREJECTED;
+      break;
+    case -ENOENT:
+      ret = AUL_R_ENOAPP;
+      break;
+    case -ETERMINATING:
+      ret = AUL_R_ETERMINATING;
+      break;
+    case -EILLEGALACCESS:
+      ret = AUL_R_EILLACC;
+      break;
+    case -ELOCALLAUNCH_ID:
+      ret = AUL_R_LOCAL;
+      break;
+    case -EAGAIN:
+      ret = AUL_R_ETIMEOUT;
+      break;
+    case -EINVAL:
+      ret = AUL_R_EINVAL;
+      break;
+    case -ECOMM:
+      ret = AUL_R_ECOMM;
+      break;
+    case -ECANCELED:
+      ret = AUL_R_ECANCELED;
+      break;
+    default:
+      ret = AUL_R_ERROR;
+      break;
+  }
+
+  return ret;
+}
similarity index 86%
rename from src/aul_job_scheduler.cc
rename to src/aul/aul_job_scheduler.cc
index 1b169de..a42175a 100644 (file)
  * limitations under the License.
  */
 
-#include "include/aul_job_scheduler.h"
+#include "aul/include/aul_job_scheduler.h"
 
 #include <bundle_cpp.h>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_sock.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_sock.h"
 
 extern "C" API int aul_job_scheduler_update_job_status(const char* job_id,
     aul_job_status_e job_status) {
similarity index 100%
rename from src/aul_launch.c
rename to src/aul/aul_launch.c
similarity index 94%
rename from src/aul_launcher_service.cc
rename to src/aul/aul_launcher_service.cc
index d9b9411..9edf7f2 100644 (file)
  *
  */
 
-#include "include/aul_launcher_service.h"
+#include "aul/include/aul_launcher_service.h"
 
+#include <bundle_internal.h>
+#include <glib.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <glib.h>
-#include <bundle_internal.h>
-
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul_app_com.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
 
-#include "app_request.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
 
 struct aul_launcher_serivce_s {
   void* dummy;
similarity index 99%
rename from src/aul_path.cc
rename to src/aul/aul_path.cc
index c681d59..446bc09 100644 (file)
@@ -21,9 +21,9 @@
 
 #include "aul/app_info/directory_info.hh"
 #include "aul/app_info/external_directory_info.hh"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
 
 #undef AUL_API
 #define AUL_API extern "C" API
similarity index 98%
rename from src/aul_proc.cc
rename to src/aul/aul_proc.cc
index dd53c69..e592975 100644 (file)
@@ -14,6 +14,9 @@
  * limitations under the License.
  */
 
+#include "aul/include/aul_proc.h"
+
+#include <bundle_cpp.h>
 #include <bundle_internal.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <unistd.h>
 
-#include <bundle_cpp.h>
-
-#include <string>
 #include <memory>
 #include <mutex>
+#include <string>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul_proc.h"
-#include "include/aul_sock.h"
-
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
 #include "aul/common/file_descriptor.hh"
+#include "aul/include/aul_sock.h"
 
 using namespace aul;
 using namespace aul::internal;
similarity index 96%
rename from src/aul_proc_group.cc
rename to src/aul/aul_proc_group.cc
index d42104e..fd34ba2 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "include/aul_proc_group.h"
+#include "aul/include/aul_proc_group.h"
 
 #include <fcntl.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <unistd.h>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
 #include "aul/common/file_descriptor.hh"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
 
 using namespace aul;
 using namespace aul::internal;
similarity index 97%
rename from src/aul_rpc_port.cc
rename to src/aul/aul_rpc_port.cc
index 492d9e2..7a8d68b 100644 (file)
@@ -14,6 +14,8 @@
  * limitations under the License.
  */
 
+#include "aul/include/aul_rpc_port.h"
+
 #include <bundle_cpp.h>
 #include <bundle_internal.h>
 #include <glib.h>
 #include <memory>
 #include <string>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_app_com.h"
-#include "include/aul_error.h"
-#include "include/aul_rpc_port.h"
-#include "include/aul_sock.h"
-#include "include/aul_svc.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/include/aul_svc.h"
 
 using namespace aul::internal;
 
similarity index 100%
rename from src/aul_rsc_mgr.c
rename to src/aul/aul_rsc_mgr.c
similarity index 99%
rename from src/aul_sock.cc
rename to src/aul/aul_sock.cc
index 23903a3..88007fa 100644 (file)
@@ -14,8 +14,9 @@
  * limitations under the License.
  */
 
-#include "include/aul_sock.h"
+#include "aul/include/aul_sock.h"
 
+#include <bundle_cpp.h>
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <vconf.h>
 
-#include <bundle_cpp.h>
-
-#include "aul_api.h"
-#include "aul_key.h"
-#include "aul_util.h"
-
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/cpu_inheritance.hh"
+#include "aul/include/aul_key.h"
 #include "aul/socket/client_socket.hh"
 #include "aul/socket/packet.hh"
 #include "aul/socket/server_socket.hh"
-#include "cpu_inheritance.hh"
 
 using namespace aul;
 
similarity index 99%
rename from src/aul_svc.cc
rename to src/aul/aul_svc.cc
index 389dc50..73ff1b8 100644 (file)
 #include <vector>
 
 #include "aul/app_control/resolve_info.hh"
-#include "include/aul.h"
-#include "include/aul_app_group.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-#include "include/aul_svc.h"
-#include "include/aul_svc_internal.h"
-#include "src/aul_api.h"
-#include "src/aul_svc_priv_key.h"
-#include "src/aul_util.h"
-#include "src/launch.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_group.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/include/aul_svc.h"
+#include "aul/include/aul_svc_internal.h"
+#include "aul/aul_api.h"
+#include "aul/aul_svc_priv_key.h"
+#include "aul/aul_util.h"
+#include "aul/launch.h"
 
 #undef MAX_MIME_STR_SIZE
 #define MAX_MIME_STR_SIZE 256
similarity index 100%
rename from src/aul_util.c
rename to src/aul/aul_util.c
similarity index 100%
rename from src/aul_util.h
rename to src/aul/aul_util.h
similarity index 92%
rename from src/aul_watch_control.cc
rename to src/aul/aul_watch_control.cc
index d21936a..41a1c98 100644 (file)
  * limitations under the License.
  */
 
-#include "include/aul_watch_control.h"
+#include "aul/include/aul_watch_control.h"
 
 #include <algorithm>
-#include <list>
 #include <iterator>
+#include <list>
 
-#include "aul_api.h"
-#include "aul_util.h"
-#include "aul_watch_control_internal.h"
-#include "include/aul.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/aul_watch_control_internal.h"
+#include "aul/include/aul.h"
 
 namespace {
 
similarity index 95%
rename from src/aul_watchdog.cc
rename to src/aul/aul_watchdog.cc
index 069a5f3..fdceabd 100644 (file)
  * limitations under the License.
  */
 
-#include "include/aul_watchdog.h"
+#include "aul/include/aul_watchdog.h"
 
 #include <glib.h>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
 #include "aul/common/exception.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
 
 using namespace aul;
 
similarity index 98%
rename from src/aul_window.cc
rename to src/aul/aul_window.cc
index 56b5752..4b0f720 100644 (file)
  * limitations under the License.
  */
 
+#include "aul/include/aul_window.h"
+
+#include <bundle_cpp.h>
 #include <gio/gio.h>
 #include <glib.h>
 #include <stdbool.h>
 #include <stdio.h>
 
-#include <bundle_cpp.h>
-
 #include <memory>
 #include <mutex>
 #include <string>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul.h"
-#include "include/aul_app_com.h"
-#include "include/aul_cmd.h"
-#include "include/aul_window.h"
-#include "launch.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_cmd.h"
+#include "aul/launch.h"
 
 using namespace aul;
 using namespace aul::internal;
similarity index 100%
rename from src/aul_worker.c
rename to src/aul/aul_worker.c
similarity index 100%
rename from src/aul_worker.h
rename to src/aul/aul_worker.h
similarity index 100%
rename from aul/common/api.hh
rename to src/aul/common/api.hh
similarity index 100%
rename from aul/common/util.hh
rename to src/aul/common/util.hh
similarity index 95%
rename from src/cpu_inheritance.cc
rename to src/aul/cpu_inheritance.cc
index 3eac883..1a7b6b2 100644 (file)
  * limitations under the License.
  */
 
-#include "cpu_inheritance.hh"
+#include "aul/cpu_inheritance.hh"
 
 #include <cpu-boosting.h>
 
-#include "include/aul_cmd.h"
-#include "aul_util.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul_cmd.h"
 
 namespace aul {
 namespace internal {
similarity index 100%
rename from include/aul.h
rename to src/aul/include/aul.h
similarity index 100%
rename from include/aul_cmd.h
rename to src/aul/include/aul_cmd.h
similarity index 100%
rename from include/aul_key.h
rename to src/aul/include/aul_key.h
similarity index 100%
rename from include/aul_svc.h
rename to src/aul/include/aul_svc.h
similarity index 99%
rename from include/aul_window.h
rename to src/aul/include/aul_window.h
index 22c944f..91352e2 100644 (file)
@@ -17,6 +17,7 @@
 #pragma once
 
 #include <stdbool.h>
+#include <sys/types.h>
 
 #ifdef __cplusplus
 extern "C" {
similarity index 98%
rename from src/launch.cc
rename to src/aul/launch.cc
index adf2559..48a6ea3 100644 (file)
@@ -14,6 +14,8 @@
  * limitations under the License.
  */
 
+#include "aul/launch.h"
+
 #include <bundle_internal.h>
 #include <ctype.h>
 #include <dirent.h>
 #include <string>
 #include <utility>
 
-#include "app_request.h"
-#include "app_signal.h"
-#include "aul.h"
-#include "aul_api.h"
-#include "aul_app_com.h"
-#include "aul_error.h"
-#include "aul_sock.h"
-#include "aul_util.h"
-#include "launch.h"
+#include "aul/app_request.h"
+#include "aul/app_signal.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
 
 using namespace aul::internal;
 
similarity index 99%
rename from src/launch.h
rename to src/aul/launch.h
index 50919ae..74ea1c0 100644 (file)
@@ -17,6 +17,7 @@
 #pragma once
 
 #include <glib.h>
+#include <bundle.h>
 
 #ifdef __cplusplus
 extern "C" {
similarity index 98%
rename from src/launch_with_result.cc
rename to src/aul/launch_with_result.cc
index 1bbca55..25ca3ff 100644 (file)
@@ -15,8 +15,8 @@
 */
 
 #include <bundle_internal.h>
-#include <glib.h>
 #include <gio/gio.h>
+#include <glib.h>
 #include <uuid.h>
 
 #include <atomic>
 #include <list>
 #include <mutex>
 
-#include "app_request.h"
-#include "aul.h"
-#include "aul_api.h"
-#include "aul_error.h"
-#include "aul_sock.h"
-#include "aul_svc.h"
-#include "aul_svc_priv_key.h"
-#include "aul_util.h"
-#include "cpu_inheritance.hh"
-#include "launch.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_svc_priv_key.h"
+#include "aul/aul_util.h"
+#include "aul/cpu_inheritance.hh"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/include/aul_svc.h"
+#include "aul/launch.h"
 
 using namespace aul::internal;
 
similarity index 100%
rename from src/menu_db_util.h
rename to src/aul/menu_db_util.h
similarity index 100%
rename from src/mime.c
rename to src/aul/mime.c
similarity index 100%
rename from src/miregex.c
rename to src/aul/miregex.c
similarity index 100%
rename from src/miregex.h
rename to src/aul/miregex.h
similarity index 98%
rename from src/pkginfo.cc
rename to src/aul/pkginfo.cc
index 9716bce..6aa7d2f 100644 (file)
@@ -14,8 +14,6 @@
  * limitations under the License.
  */
 
-#include "pkginfo_internal.h"
-
 #include <bundle_cpp.h>
 #include <bundle_internal.h>
 #include <glib-unix.h>
 #include <string>
 #include <thread>
 
-#include "app_request.h"
-#include "aul_api.h"
-#include "aul_error.h"
-#include "aul_util.h"
-#include "menu_db_util.h"
-#include "include/aul.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/menu_db_util.h"
+#include "aul/pkginfo_internal.h"
 
 using namespace aul::internal;
 
similarity index 97%
rename from src/status.cc
rename to src/aul/status.cc
index 6e36738..4d419d0 100644 (file)
  * limitations under the License.
  */
 
-#include "include/aul.h"
-
+#include <bundle_cpp.h>
 #include <sys/types.h>
 #include <unistd.h>
 
-#include <bundle_cpp.h>
-
 #include <list>
 #include <memory>
 #include <mutex>
 
-#include "aul_api.h"
-#include "aul_util.h"
-#include "include/aul_app_com.h"
-#include "include/aul_error.h"
-#include "include/aul_sock.h"
-#include "launch.h"
-
-#include "app_request.h"
+#include "aul/app_request.h"
+#include "aul/aul_api.h"
+#include "aul/aul_util.h"
 #include "aul/common/exception.hh"
-#include "pkginfo_internal.h"
+#include "aul/include/aul.h"
+#include "aul/include/aul_app_com.h"
+#include "aul/include/aul_error.h"
+#include "aul/include/aul_sock.h"
+#include "aul/launch.h"
+#include "aul/pkginfo_internal.h"
 
 using namespace aul::internal;
 
similarity index 100%
rename from src/widget.c
rename to src/aul/widget.c
diff --git a/src/aul_cmd.c b/src/aul_cmd.c
deleted file mode 100644 (file)
index bb279a0..0000000
+++ /dev/null
@@ -1,235 +0,0 @@
-/*
- * Copyright (c) 2018 - 2020 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#define _GNU_SOURCE
-#include <stdio.h>
-
-#include "aul_api.h"
-#include "aul_cmd.h"
-
-API const char *aul_cmd_convert_to_string(int cmd)
-{
-       static const char *cmd_string_table[] = {
-               "APP_START",
-
-               "APP_OPEN",
-               "APP_RESUME",
-               "APP_RESUME_BY_PID",
-               "APP_TERM_BY_PID",
-               "APP_TERM_BY_PID_WITHOUT_RESTART",
-               "APP_RESULT",
-               "APP_START_RES",
-               "APP_CANCEL",
-               "APP_KILL_BY_PID",
-               "APP_UPDATE_RUA_STAT",
-
-               "APP_ADD_HISTORY",
-               "APP_REMOVE_HISTORY",
-               "APP_RUNNING_INFO",
-               "APP_RUNNING_INFO_RESULT",
-               "APP_IS_RUNNING",
-               "APP_GET_APPID_BYPID",
-               "APP_GET_PKGID_BYPID",
-               "APP_GET_INFO_OK",
-               "APP_GET_INFO_ERROR",
-               "APP_KEY_EVENT",
-
-               "APP_KEY_RESERVE",
-               "APP_KEY_RELEASE",
-               "APP_STATUS_UPDATE",
-               "APP_RUNNING_LIST_UPDATE",
-               "APP_TERM_REQ_BY_PID",
-               "APP_TERM_BY_PID_ASYNC",
-               "APP_TERM_BGAPP_BY_PID",
-               "APP_PAUSE",
-               "APP_PAUSE_BY_PID",
-               "APP_GROUP_GET_WINDOW",
-
-               "APP_GROUP_SET_WINDOW",
-               "APP_GROUP_GET_FG",
-               "APP_GROUP_GET_LEADER_PID",
-               "APP_GROUP_GET_LEADER_PIDS",
-               "APP_GROUP_GET_GROUP_PIDS",
-               "APP_GROUP_GET_IDLE_PIDS",
-               "APP_GROUP_LOWER",
-               "APP_GROUP_CLEAR_TOP",
-               "APP_GROUP_ACTIVATE_BELOW",
-               "APP_GET_STATUS",
-
-               "APP_ADD_LOADER",
-               "APP_REMOVE_LOADER",
-               "APP_GET_PID",
-               "APP_GET_DC_SOCKET_PAIR",
-               "APP_GET_MP_SOCKET_PAIR",
-               "APP_COM_CREATE",
-               "APP_COM_JOIN",
-               "APP_COM_SEND",
-               "APP_COM_LEAVE",
-               "APP_COM_MESSAGE",
-
-               "WIDGET_ADD",
-               "WIDGET_DEL",
-               "WIDGET_LIST",
-               "WIDGET_UPDATE",
-               "WIDGET_COUNT",
-               "WIDGET_GET_CONTENT",
-               "APP_REGISTER_PID",
-               "APP_WAKE",
-               "APP_SUSPEND",
-               "AMD_RELOAD_APPINFO",
-
-               "LAUNCHPAD_DEAD_SIGNAL",
-               "APP_ALL_RUNNING_INFO",
-               "APP_SET_APP_CONTROL_DEFAULT_APP",
-               "APP_UNSET_APP_CONTROL_DEFAULT_APP",
-               "APP_START_ASYNC",
-               "APP_SET_PROCESS_GROUP",
-               "APP_PREPARE_CANDIDATE_PROCESS",
-               "APP_TERM_BY_PID_SYNC",
-               "APP_GET_STATUS_BY_APPID",
-               "APP_GET_LAST_CALLER_PID",
-
-               "APP_TERM_BY_PID_SYNC_WITHOUT_RESTART",
-               "APP_RESUME_BY_PID_ASYNC",
-               "APP_SET_ALIAS_APPID",
-               "APP_UNSET_ALIAS_APPID",
-               "APP_ENABLE_ALIAS_INFO",
-               "APP_DISABLE_ALIAS_INFO",
-               "APP_GROUP_ACTIVATE_ABOVE",
-               "ADD_APP_SCREEN",
-               "REMOVE_APP_SCREEN",
-               "APP_UPDATE_REQUESTED",
-
-               "ADD_SCREEN_VIEWER",
-               "REMOVE_SCREEN_VIEWER",
-               "LAUNCHPAD_LAUNCH_SIGNAL",
-               "APP_RUNNING_INSTANCE_INFO",
-               "APP_GET_INSTANCE_ID_BYPID",
-               "APP_SET_CACHE",
-               "APP_GET_APPID_FROM_CACHE",
-               "APP_INVALIDATE_CACHE",
-               "APP_STARTUP_SIGNAL",
-               "APP_WINDOW_ATTACH",
-
-               "APP_WINDOW_DETACH",
-               "APP_START_RES_ASYNC",
-               "APP_NOTIFY_EXIT",
-               "APP_GET_APPID_BY_SURFACE_ID",
-               "APP_GET_INSTANCE_ID_BY_SURFACE_ID",
-               "UPDATE_SCREEN_VIEWER_STATUS",
-               "WIDGET_RUNNING_INFO",
-               "JOB_STATUS_UPDATE",
-               "WIDGET_CHANGE_STATUS",
-               "RPC_PORT_PREPARE_STUB",
-
-               "RPC_PORT_CREATE_SOCKET_PAIR",
-               "RPC_PORT_NOTIFY_RPC_FINISHED",
-               "COMPLICATION_UPDATE_REQUEST",
-               "APP_NOTIFY_START",
-               "WATCHDOG_ENABLE",
-               "WATCHDOG_DISABLE",
-               "WATCHDOG_PING",
-               "WATCHDOG_KICK",
-               "APP_SEND_LAUNCH_REQUEST",
-               "APP_SEND_LAUNCH_REQUEST_SYNC",
-
-               "COMP_NOTIFY_START",
-               "COMP_NOTIFY_EXIT",
-               "COMP_STATUS_UPDATE",
-               "APP_TERM_INSTANCE_ASYNC",
-               "APP_GROUP_SET_WINDOW_V2",
-               "APP_GROUP_LOWER_V2",
-               "APP_GROUP_GET_LEADER_IDS",
-               "APP_GROUP_GET_GROUP_INFO",
-               "APP_GROUP_GET_IDLE_INFO",
-               "COMP_CONTEXT_FOREACH",
-
-               "COMP_CONTEXT_GET",
-               "COMP_CONTEXT_IS_RUNNING",
-               "COMP_CONTEXT_RESUME",
-               "COMP_CONTEXT_PAUSE",
-               "COMP_CONTEXT_TERMINATE_BG_COMP",
-               "COMP_CONTEXT_TERMINATE",
-               "APP_RESUME_INSTANCE",
-               "APP_PAUSE_INSTANCE",
-               "APP_TERM_BG_INSTANCE",
-               "LAUNCHPAD_CHILD_PROCESS", /* unused */
-
-               "COMP_INFO_GET",
-               "COMP_INFO_FOREACH",
-               "APP_TERMINATE",
-               "APP_IS_RUNNING_V2",
-               "ANR_NOTIFY",
-               "APP_GET_RUNNING_CONTEXT",
-               "LAUNCHER_SERVICE_NOTIFY_ANIMATION_STARTED",
-               "LAUNCHER_SERVICE_NOTIFY_ANIMATION_FINISHED",
-               "APP_SEND_RESUME_REQUEST",
-               "APP_PREPARE_APP_DEFINED_LOADER",
-
-               "WIDGET_DISABLE",
-               "TRIGGER_APP_SCREEN_FOCUSED_FORCE",
-               "WIDGET_EVENT",
-               "SET_PRIVATE_SHARING",
-               "UNSET_PRIVATE_SHARING",
-               "APP_CONTEXT_GET",
-               "APP_CONTEXT_GET_BY_INSTANCE_ID",
-               "APP_CONTEXT_GET_BY_PID",
-               "APP_GROUP_ADD",
-               "APP_GROUP_REMOVE",
-
-               "APP_GET_APPID_LIST",
-               "COMP_PORT_EXIST",
-               "COMP_PORT_CREATE",
-               "COMP_PORT_DESTROY",
-               "APP_LIFECYCLE_UPDATE_STATE",
-
-               "APP_STATUS_UPDATE_V2",
-               "APP_GET_APP_CONTROL_DEFAULT_APPS",
-               "APP_GET_APPID_BY_ALIAS_APPID",
-               "APP_GET_APP_CONTROL_DEFAULT_APP",
-               "APP_LIFECYCLE_GET_STATE",
-
-               "PROC_REGISTER",
-               "PROC_DEREGISTER",
-               "PROC_GET_NAME",
-               "PROC_GET_EXTRA",
-               "RPC_PORT_CREATE",
-
-               "RPC_PORT_DESTROY",
-               "RPC_PORT_EXIST",
-               "APP_WINDOW_ATTACH_BELOW",
-               "PROC_GROUP_ADD",
-               "PROC_GROUP_REMOVE",
-
-               "APP_CONNECT",
-               "APP_SET_AUTO_RESTART",
-               "BOOT_SEQUENCE_START_APP",
-               "BOOT_SEQUENCE_GET_APPINFO_LIST",
-               "BOOT_SEQUENCE_RELOAD",
-
-               "PKG_PRE_EVENT_SEND",
-               "PROC_GROUP_FOREACH",
-               "PROC_GROUP_GET",
-
-               "CUSTOM_COMMAND"
-       };
-
-       if (cmd < 0 || cmd >= APP_CMD_MAX)
-               return cmd_string_table[APP_CMD_MAX];
-
-       return cmd_string_table[cmd];
-}
diff --git a/src/aul_error.c b/src/aul_error.c
deleted file mode 100644 (file)
index 162698d..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#define _GNU_SOURCE
-#include <errno.h>
-
-#include "aul_util.h"
-#include "aul_error.h"
-#include "aul_sock.h"
-#include "aul.h"
-
-int aul_error_convert(int res)
-{
-       int ret;
-
-       switch (res) {
-       case -ENOMEM:
-               ret = AUL_R_ENOMEM;
-               break;
-       case -EREJECTED:
-               ret = AUL_R_EREJECTED;
-               break;
-       case -ENOENT:
-               ret = AUL_R_ENOAPP;
-               break;
-       case -ETERMINATING:
-               ret = AUL_R_ETERMINATING;
-               break;
-       case -EILLEGALACCESS:
-               ret = AUL_R_EILLACC;
-               break;
-       case -ELOCALLAUNCH_ID:
-               ret = AUL_R_LOCAL;
-               break;
-       case -EAGAIN:
-               ret = AUL_R_ETIMEOUT;
-               break;
-       case -EINVAL:
-               ret = AUL_R_EINVAL;
-               break;
-       case -ECOMM:
-               ret = AUL_R_ECOMM;
-               break;
-       case -ECANCELED:
-               ret = AUL_R_ECANCELED;
-               break;
-       default:
-               ret = AUL_R_ERROR;
-               break;
-       }
-
-       return ret;
-}
-
similarity index 100%
rename from server/database.cc
rename to src/server/database.cc
similarity index 100%
rename from server/database.hh
rename to src/server/database.hh
similarity index 100%
rename from server/exception.cc
rename to src/server/exception.cc
similarity index 100%
rename from server/exception.hh
rename to src/server/exception.hh
similarity index 100%
rename from tool/CMakeLists.txt
rename to src/tool/CMakeLists.txt
diff --git a/src/tool/app_com_tool/CMakeLists.txt b/src/tool/app_com_tool/CMakeLists.txt
new file mode 100644 (file)
index 0000000..81228fc
--- /dev/null
@@ -0,0 +1,16 @@
+SET(TARGET_APP_COM_TOOL "app_com_tool")
+
+ADD_EXECUTABLE(${TARGET_APP_COM_TOOL} 
+  ${CMAKE_CURRENT_SOURCE_DIR}/app_com_tool.c)
+
+SET_TARGET_PROPERTIES(${TARGET_APP_COM_TOOL} PROPERTIES
+  COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_APP_COM_TOOL} PROPERTIES
+  LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_APP_COM_TOOL} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_COM_TOOL} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_APP_COM_TOOL} DESTINATION bin)
similarity index 53%
rename from tool/app_launcher/CMakeLists.txt
rename to src/tool/app_launcher/CMakeLists.txt
index 659f58a..16050f0 100644 (file)
@@ -7,13 +7,17 @@ IF(_TIZEN_FEATURE_PRELINK)
 MESSAGE(STATUS "[__PRELINK__] Enable")
 ELSE(_TIZEN_FEATURE_PRELINK)
 MESSAGE(STATUS "[__PRELINK__] Disable")
-SET_TARGET_PROPERTIES(${TARGET_APP_LAUNCHER} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_APP_LAUNCHER} PROPERTIES LINK_FLAGS "-pie")
+SET_TARGET_PROPERTIES(${TARGET_APP_LAUNCHER} PROPERTIES
+  COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_APP_LAUNCHER} PROPERTIES
+  LINK_FLAGS "-pie")
 ENDIF(_TIZEN_FEATURE_PRELINK)
 
 TARGET_LINK_LIBRARIES(${TARGET_APP_LAUNCHER} PRIVATE ${TARGET_AUL})
 
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_LAUNCHER} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_LAUNCHER} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_LAUNCHER} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul)
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_LAUNCHER} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
 
 INSTALL(TARGETS ${TARGET_APP_LAUNCHER} DESTINATION bin)
diff --git a/src/tool/appgroup_info/CMakeLists.txt b/src/tool/appgroup_info/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2c2d326
--- /dev/null
@@ -0,0 +1,16 @@
+SET(TARGET_APP_GROUP_INFO "appgroup_info")
+
+ADD_EXECUTABLE(${TARGET_APP_GROUP_INFO}
+  ${CMAKE_CURRENT_SOURCE_DIR}/app_group_info.c)
+
+SET_TARGET_PROPERTIES(${TARGET_APP_GROUP_INFO} PROPERTIES
+  COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_APP_GROUP_INFO} PROPERTIES
+  LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_APP_GROUP_INFO} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_GROUP_INFO} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_APP_GROUP_INFO} DESTINATION bin)
diff --git a/src/tool/appid2pid/CMakeLists.txt b/src/tool/appid2pid/CMakeLists.txt
new file mode 100644 (file)
index 0000000..62b397e
--- /dev/null
@@ -0,0 +1,16 @@
+SET(TARGET_APPID2PID "appid2pid")
+
+ADD_EXECUTABLE(${TARGET_APPID2PID}
+  ${CMAKE_CURRENT_SOURCE_DIR}/appid2pid.c)
+
+SET_TARGET_PROPERTIES(${TARGET_APPID2PID} PROPERTIES
+  COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_APPID2PID} PROPERTIES
+  LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_APPID2PID} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_APPID2PID} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_APPID2PID} DESTINATION bin)
similarity index 78%
rename from tool/aul_test/CMakeLists.txt
rename to src/tool/aul_test/CMakeLists.txt
index a4b7062..cd39f86 100644 (file)
@@ -16,10 +16,10 @@ TARGET_LINK_LIBRARIES(${TARGET_AUL_TEST} PRIVATE ${TARGET_AUL})
 
 TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL_TEST} PUBLIC
   ${CMAKE_CURRENT_SOURCE_DIR}/
-  ${CMAKE_CURRENT_SOURCE_DIR}/../../
-  ${CMAKE_CURRENT_SOURCE_DIR}/../../aul/api
-  ${CMAKE_CURRENT_SOURCE_DIR}/../../include
-  ${CMAKE_CURRENT_SOURCE_DIR}/../../src
+  ${CMAKE_CURRENT_SOURCE_DIR}/../
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/api
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include
 )
 
 INSTALL(TARGETS ${TARGET_AUL_TEST} DESTINATION bin)
similarity index 87%
rename from tool/aul_window/CMakeLists.txt
rename to src/tool/aul_window/CMakeLists.txt
index e8bd4e4..23454e6 100644 (file)
@@ -12,8 +12,8 @@ TARGET_LINK_LIBRARIES(${TARGET_AUL_WINDOW} PRIVATE
 
 TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL_WINDOW} PUBLIC
   ${CMAKE_CURRENT_SOURCE_DIR}/../../
-  ${CMAKE_CURRENT_SOURCE_DIR}/../../src
-  ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
 
 APPLY_PKG_CONFIG(${TARGET_AUL_WINDOW} PUBLIC
   GLIB_DEPS
similarity index 90%
rename from tool/aulctl/CMakeLists.txt
rename to src/tool/aulctl/CMakeLists.txt
index 1ef41b2..f2c71d7 100644 (file)
@@ -21,8 +21,8 @@ TARGET_LINK_LIBRARIES(${TARGET_AULCTL} PRIVATE
 TARGET_INCLUDE_DIRECTORIES(${TARGET_AULCTL} PUBLIC
   ${CMAKE_CURRENT_SOURCE_DIR}
   ${CMAKE_CURRENT_SOURCE_DIR}/../../
-  ${CMAKE_CURRENT_SOURCE_DIR}/../../src
-  ${CMAKE_CURRENT_SOURCE_DIR}/../../include
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include
 )
 
 APPLY_PKG_CONFIG(${TARGET_AULCTL} PUBLIC
similarity index 99%
rename from tool/aulctl/boot_sequence/app_info.cc
rename to src/tool/aulctl/boot_sequence/app_info.cc
index fa188cc..82bb9f4 100644 (file)
@@ -18,8 +18,8 @@
 
 #include <bundle_internal.h>
 
-#include "include/aul_key.h"
-#include "src/aul_util.h"
+#include "aul/aul_util.h"
+#include "aul/include/aul_key.h"
 
 namespace aul::internal {
 namespace boot_sequence {
 
 #include <utility>
 
-#include "common/file_descriptor.hh"
-#include "include/aul_sock.h"
-#include "src/app_request.h"
-#include "src/aul_util.h"
+#include "aul/app_request.h"
+#include "aul/aul_util.h"
+#include "aul/common/file_descriptor.hh"
+#include "aul/include/aul_sock.h"
 
 namespace aul::internal {
 namespace boot_sequence {
diff --git a/src/tool/compmgr_tool/CMakeLists.txt b/src/tool/compmgr_tool/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a25c978
--- /dev/null
@@ -0,0 +1,15 @@
+SET(TARGET_COMPMGR_TOOL "compmgr_tool")
+
+ADD_EXECUTABLE(${TARGET_COMPMGR_TOOL}
+  ${CMAKE_CURRENT_SOURCE_DIR}/compmgr_tool.c)
+
+SET_TARGET_PROPERTIES(${TARGET_COMPMGR_TOOL} PROPERTIES
+  COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_COMPMGR_TOOL} PROPERTIES LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_COMPMGR_TOOL} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_COMPMGR_TOOL} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_COMPMGR_TOOL} DESTINATION bin)
diff --git a/src/tool/launch_app/CMakeLists.txt b/src/tool/launch_app/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a5f3694
--- /dev/null
@@ -0,0 +1,14 @@
+SET(TARGET_LAUNCH_APP "launch_app")
+
+ADD_EXECUTABLE(${TARGET_LAUNCH_APP}
+  ${CMAKE_CURRENT_SOURCE_DIR}/launch_app.c)
+SET_TARGET_PROPERTIES(${TARGET_LAUNCH_APP} PROPERTIES
+  COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_LAUNCH_APP} PROPERTIES LINK_FLAGS "-pie")
+TARGET_LINK_LIBRARIES(${TARGET_LAUNCH_APP} PRIVATE ${TARGET_AUL})
+
+TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_APP} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
+
+INSTALL(TARGETS ${TARGET_LAUNCH_APP} DESTINATION bin)
similarity index 50%
rename from tool/launch_debug/CMakeLists.txt
rename to src/tool/launch_debug/CMakeLists.txt
index 2d476ba..7e80689 100644 (file)
@@ -1,11 +1,14 @@
 SET(TARGET_LAUNCH_DEBUG "launch_debug")
 
-ADD_EXECUTABLE(${TARGET_LAUNCH_DEBUG} ${CMAKE_CURRENT_SOURCE_DIR}/launch_debug.c)
-SET_TARGET_PROPERTIES(${TARGET_LAUNCH_DEBUG} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
+ADD_EXECUTABLE(${TARGET_LAUNCH_DEBUG}
+  ${CMAKE_CURRENT_SOURCE_DIR}/launch_debug.c)
+SET_TARGET_PROPERTIES(${TARGET_LAUNCH_DEBUG} PROPERTIES COMPILE_FLAGS
+  ${CFLAGS} "-fPIE")
 SET_TARGET_PROPERTIES(${TARGET_LAUNCH_DEBUG} PROPERTIES LINK_FLAGS "-pie")
 TARGET_LINK_LIBRARIES(${TARGET_LAUNCH_DEBUG} PRIVATE ${TARGET_AUL})
 
-TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_DEBUG} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_DEBUG} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
+TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_DEBUG} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
 
 INSTALL(TARGETS ${TARGET_LAUNCH_DEBUG} DESTINATION bin)
similarity index 52%
rename from tool/open_app/CMakeLists.txt
rename to src/tool/open_app/CMakeLists.txt
index 4723411..b240fde 100644 (file)
@@ -1,11 +1,13 @@
 SET(TARGET_OPEN_APP "open_app")
 
 ADD_EXECUTABLE(${TARGET_OPEN_APP} ${CMAKE_CURRENT_SOURCE_DIR}/open_app.c)
-SET_TARGET_PROPERTIES(${TARGET_OPEN_APP} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
+SET_TARGET_PROPERTIES(${TARGET_OPEN_APP} PROPERTIES
+  COMPILE_FLAGS ${CFLAGS} "-fPIE")
 SET_TARGET_PROPERTIES(${TARGET_OPEN_APP} PROPERTIES LINK_FLAGS "-pie")
 TARGET_LINK_LIBRARIES(${TARGET_OPEN_APP} PRIVATE ${TARGET_AUL})
 
-TARGET_INCLUDE_DIRECTORIES(${TARGET_OPEN_APP} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_OPEN_APP} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
+TARGET_INCLUDE_DIRECTORIES(${TARGET_OPEN_APP} PUBLIC
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../aul/include)
 
 INSTALL(TARGETS ${TARGET_OPEN_APP} DESTINATION bin)
index e5ac85f..dbedebd 100644 (file)
@@ -5,10 +5,10 @@ ADD_EXECUTABLE(${TARGET_APP_CONTROL_TESTS}
   ${APP_CONTROL_TESTS_SRCS})
 
 TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_CONTROL_TESTS} PUBLIC
-  "${CMAKE_CURRENT_SOURCE_DIR}/mock"
-  "${CMAKE_CURRENT_SOURCE_DIR}/../"
-  "${CMAKE_CURRENT_SOURCE_DIR}/../../include"
-  "${CMAKE_CURRENT_SOURCE_DIR}/../../src"
+  ${CMAKE_CURRENT_SOURCE_DIR}/mock
+  ${CMAKE_CURRENT_SOURCE_DIR}/../
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul/include
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul
 )
 
 APPLY_PKG_CONFIG(${TARGET_APP_CONTROL_TESTS} PUBLIC
index 3bbc0f5..d0e5e55 100644 (file)
@@ -7,12 +7,11 @@ ADD_EXECUTABLE(${TARGET_AUL_UNIT_TESTS}
 )
 
 TARGET_INCLUDE_DIRECTORIES(${TARGET_AUL_UNIT_TESTS} PUBLIC
-  "${CMAKE_CURRENT_SOURCE_DIR}/../"
-  "${CMAKE_CURRENT_SOURCE_DIR}/../../"
-  "${CMAKE_CURRENT_SOURCE_DIR}/../../include"
-  "${CMAKE_CURRENT_SOURCE_DIR}/../../src"
-  "${CMAKE_CURRENT_SOURCE_DIR}/../../aul"
-  "${CMAKE_CURRENT_SOURCE_DIR}/../../aul/api"
+  ${CMAKE_CURRENT_SOURCE_DIR}/../
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul/include
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul
+  ${CMAKE_CURRENT_SOURCE_DIR}/../../src/aul/api
 )
 
 APPLY_PKG_CONFIG(${TARGET_AUL_UNIT_TESTS} PUBLIC
index 7ccbb80..f568beb 100644 (file)
 #include <aul_app_com.h>
 #include <aul_cmd.h>
 #include <aul_sock.h>
-#include <gtest/gtest.h>
-
 #include <bundle_cpp.h>
+#include <gtest/gtest.h>
 
 #include <memory>
 
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index 593c00c..615b185 100644 (file)
 #include <aul_app_group.h>
 #include <aul_cmd.h>
 #include <aul_sock.h>
+#include <bundle_cpp.h>
 #include <gtest/gtest.h>
 #include <stdlib.h>
 
-#include <bundle_cpp.h>
-
 #include <iostream>
 #include <memory>
 
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index 902fb29..8118289 100644 (file)
  * limitations under the License.
  */
 
-#include <aul_comp_context.h>
 #include <aul_cmd.h>
+#include <aul_comp_context.h>
 #include <aul_sock.h>
+#include <bundle_cpp.h>
 #include <gtest/gtest.h>
 #include <stdlib.h>
 
-#include <bundle_cpp.h>
-
 #include <iostream>
 #include <memory>
 
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index 6cfa4cd..bb500c2 100644 (file)
 #include <aul_cmd.h>
 #include <aul_comp_info.h>
 #include <aul_sock.h>
+#include <bundle_cpp.h>
 #include <gtest/gtest.h>
 #include <stdlib.h>
 
-#include <bundle_cpp.h>
-
 #include <iostream>
 #include <memory>
 
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
 #include "mock/vconf_mock.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index e8445fa..c6af750 100644 (file)
 #include <aul_cmd.h>
 #include <aul_comp_status.h>
 #include <aul_sock.h>
+#include <bundle_cpp.h>
 #include <gtest/gtest.h>
 #include <stdlib.h>
 
-#include <bundle_cpp.h>
-
 #include <iostream>
 #include <memory>
 
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index 648dcc6..a95fc77 100644 (file)
 #include <aul_cmd.h>
 #include <aul_complication.h>
 #include <aul_sock.h>
+#include <bundle_cpp.h>
 #include <gtest/gtest.h>
 #include <stdlib.h>
 
-#include <bundle_cpp.h>
-
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index 873f4d3..9614b3c 100644 (file)
 #include <aul_cmd.h>
 #include <aul_job_scheduler.h>
 #include <aul_sock.h>
+#include <bundle_cpp.h>
 #include <gtest/gtest.h>
 #include <stdlib.h>
 
-#include <bundle_cpp.h>
-
 #include <iostream>
 #include <memory>
 
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index 612f77e..68c7f95 100644 (file)
  * limitations under the License.
  */
 
+#include <aul.h>
+#include <aul_cmd.h>
+#include <aul_sock.h>
 #include <bundle_cpp.h>
 #include <gtest/gtest.h>
 #include <stdlib.h>
 
 #include <iostream>
 #include <memory>
-#include <aul.h>
-#include <aul_sock.h>
-#include <aul_cmd.h>
 
-#include "launch.h"
+#include "aul/launch.h"
 #include "mock/dbus_mock.h"
 #include "mock/glib_mock.h"
 #include "mock/mock_hook.h"
index 16decc7..08a625b 100644 (file)
  * limitations under the License.
  */
 
-#include <stdlib.h>
+#include <aul.h>
+#include <aul_cmd.h>
+#include <aul_sock.h>
+#include <bundle_cpp.h>
 #include <gtest/gtest.h>
+#include <stdlib.h>
 
-#include <bundle_cpp.h>
 #include <iostream>
 #include <memory>
-#include <aul.h>
-#include <aul_sock.h>
-#include <aul_cmd.h>
 
-#include "launch.h"
+#include "aul/launch.h"
 #include "mock/dbus_mock.h"
 #include "mock/glib_mock.h"
 #include "mock/mock_hook.h"
index 67c00a3..336bb13 100644 (file)
 #include <aul_cmd.h>
 #include <aul_launcher_service.h>
 #include <aul_sock.h>
+#include <bundle_cpp.h>
 #include <glib.h>
 #include <gtest/gtest.h>
 
-#include <bundle_cpp.h>
-
 #include <string>
 
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index c7beece..7f2c89a 100644 (file)
 #include <aul.h>
 #include <aul_cmd.h>
 #include <aul_sock.h>
+#include <bundle_cpp.h>
 #include <gtest/gtest.h>
 #include <stdlib.h>
 
-#include <bundle_cpp.h>
-
 #include <iostream>
 #include <memory>
 
-#include "mock/mock_hook.h"
+#include "aul/launch.h"
 #include "mock/glib_mock.h"
+#include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index 4e90299..75ba264 100644 (file)
 #include <aul.h>
 #include <aul_cmd.h>
 #include <aul_sock.h>
-#include <gtest/gtest.h>
-
 #include <bundle_cpp.h>
+#include <gtest/gtest.h>
 
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
index 60587b3..afc568d 100644 (file)
  */
 
 #include <aul.h>
-#include <aul_watchdog.h>
 #include <aul_cmd.h>
 #include <aul_sock.h>
+#include <aul_watchdog.h>
+#include <bundle_cpp.h>
 #include <gtest/gtest.h>
 #include <stdlib.h>
 
-#include <bundle_cpp.h>
-
 #include <iostream>
 #include <memory>
 
+#include "aul/launch.h"
 #include "mock/mock_hook.h"
 #include "mock/socket_mock.h"
 #include "mock/test_fixture.h"
-#include "src/launch.h"
 
 using ::testing::_;
 using ::testing::DoAll;
diff --git a/tool/app_com_tool/CMakeLists.txt b/tool/app_com_tool/CMakeLists.txt
deleted file mode 100644 (file)
index e87ac76..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-SET(TARGET_APP_COM_TOOL "app_com_tool")
-
-ADD_EXECUTABLE(${TARGET_APP_COM_TOOL} ${CMAKE_CURRENT_SOURCE_DIR}/app_com_tool.c)
-SET_TARGET_PROPERTIES(${TARGET_APP_COM_TOOL} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_APP_COM_TOOL} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_APP_COM_TOOL} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_COM_TOOL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_COM_TOOL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_APP_COM_TOOL} DESTINATION bin)
diff --git a/tool/appgroup_info/CMakeLists.txt b/tool/appgroup_info/CMakeLists.txt
deleted file mode 100644 (file)
index 8c485eb..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-SET(TARGET_APP_GROUP_INFO "appgroup_info")
-
-ADD_EXECUTABLE(${TARGET_APP_GROUP_INFO} ${CMAKE_CURRENT_SOURCE_DIR}/app_group_info.c)
-SET_TARGET_PROPERTIES(${TARGET_APP_GROUP_INFO} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_APP_GROUP_INFO} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_APP_GROUP_INFO} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_GROUP_INFO} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APP_GROUP_INFO} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_APP_GROUP_INFO} DESTINATION bin)
diff --git a/tool/appid2pid/CMakeLists.txt b/tool/appid2pid/CMakeLists.txt
deleted file mode 100644 (file)
index 613f6bc..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-SET(TARGET_APPID2PID "appid2pid")
-
-ADD_EXECUTABLE(${TARGET_APPID2PID} ${CMAKE_CURRENT_SOURCE_DIR}/appid2pid.c)
-SET_TARGET_PROPERTIES(${TARGET_APPID2PID} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_APPID2PID} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_APPID2PID} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APPID2PID} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_APPID2PID} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_APPID2PID} DESTINATION bin)
diff --git a/tool/compmgr_tool/CMakeLists.txt b/tool/compmgr_tool/CMakeLists.txt
deleted file mode 100644 (file)
index ff48301..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-SET(TARGET_COMPMGR_TOOL "compmgr_tool")
-
-ADD_EXECUTABLE(${TARGET_COMPMGR_TOOL} ${CMAKE_CURRENT_SOURCE_DIR}/compmgr_tool.c)
-SET_TARGET_PROPERTIES(${TARGET_COMPMGR_TOOL} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_COMPMGR_TOOL} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_COMPMGR_TOOL} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_COMPMGR_TOOL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_COMPMGR_TOOL} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_COMPMGR_TOOL} DESTINATION bin)
diff --git a/tool/launch_app/CMakeLists.txt b/tool/launch_app/CMakeLists.txt
deleted file mode 100644 (file)
index e857e2e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-SET(TARGET_LAUNCH_APP "launch_app")
-
-ADD_EXECUTABLE(${TARGET_LAUNCH_APP} ${CMAKE_CURRENT_SOURCE_DIR}/launch_app.c)
-SET_TARGET_PROPERTIES(${TARGET_LAUNCH_APP} PROPERTIES COMPILE_FLAGS ${CFLAGS} "-fPIE")
-SET_TARGET_PROPERTIES(${TARGET_LAUNCH_APP} PROPERTIES LINK_FLAGS "-pie")
-TARGET_LINK_LIBRARIES(${TARGET_LAUNCH_APP} PRIVATE ${TARGET_AUL})
-
-TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_APP} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../src)
-TARGET_INCLUDE_DIRECTORIES(${TARGET_LAUNCH_APP} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../include)
-
-INSTALL(TARGETS ${TARGET_LAUNCH_APP} DESTINATION bin)