step/step_security.cc
step/step_signal.cc
step/step_unregister.cc
- utils.cc
)
# Target - definition
ADD_LIBRARY(${TARGET_LIBNAME_COMMON} SHARED ${SRCS})
#include <cstring>
#include <string>
-#include "common/utils.h"
+#include "utils/file_util.h"
namespace common_installer {
namespace copy {
#include <cstring>
#include <string>
-#include "common/utils.h"
+#include "utils/file_util.h"
#define PKGMGR_LIST_MOVE_NODE_TO_HEAD(list, node) do { \
if (list) { LISTHEAD(list, node); } \
#include <cstdio>
#include <string>
-#include "common/utils.h"
+#include "utils/file_util.h"
namespace common_installer {
namespace parse {
#include <cstdio>
#include <string>
-#include "common/utils.h"
+#include "utils/file_util.h"
namespace {
#include <cstring>
-#include "common/utils.h"
+#include "utils/file_util.h"
namespace common_installer {
namespace remove {
#include <pkgmgr-info.h>
#include <unistd.h>
-#include "common/utils.h"
+#include "utils/file_util.h"
namespace common_installer {
namespace signal {
#include <cstring>
#include "common/step/step_unregister.h"
-#include "common/utils.h"
+#include "utils/file_util.h"
namespace common_installer {
namespace unregister {
#include <cstring>
#include <string>
-#include "common/utils.h"
+#include "utils/file_util.h"
#define ZIPBUFSIZE 8192
#define ZIPMAXPATH 256
# Target - sources
SET(SRCS
+ file_util.cc
system_locale.cc
string_util.cc
values.cc
/* 2014, Copyright © Intel Coporation, license APACHE-2.0, see LICENSE file */
-#include "common/utils.h"
+#include "utils/file_util.h"
#include <boost/filesystem/path.hpp>
#include <string>
#include "utils/logging.h"
+namespace common_installer {
namespace utils {
namespace fs = boost::filesystem;
}
} // namespace utils
+} // namespace common_installer
/* 2014, Copyright © Intel Coporation, license APACHE-2.0, see LICENSE file */
-#ifndef COMMON_UTILS_H_
-#define COMMON_UTILS_H_
+#ifndef UTILS_FILE_UTIL_H_
+#define UTILS_FILE_UTIL_H_
#include <boost/filesystem.hpp>
+namespace common_installer {
namespace utils {
bool CreateDir(const boost::filesystem::path& path);
const boost::filesystem::path& dst);
} // namespace utils
+} // namespace common_installer
-#endif // COMMON_UTILS_H_
+#endif // UTILS_FILE_UTIL_H_
#include <cstdio>
#include <string>
-#include "common/utils.h"
+#include "utils/file_util.h"
namespace wgt {
namespace symbolic_link {
// binary is a symbolic link named <appid> and is located in <pkgid>/<appid>
fs::path exec_path = fs::path(context_->pkg_path()) / fs::path(ui->appid)
/ fs::path("bin");
- utils::CreateDir(exec_path);
+ common_installer::utils::CreateDir(exec_path);
exec_path /= fs::path(ui->appid);
// binary is a symbolic link named <appid> and is located in <pkgid>/<appid>
fs::path exec_path = fs::path(context_->pkg_path()) / fs::path(svc->appid)
/ fs::path("bin");
- utils::CreateDir(exec_path);
+ common_installer::utils::CreateDir(exec_path);
exec_path /= fs::path(svc->appid);