#include <security-manager.h>
+#include "utils/clist_helpers.h"
#include "utils/logging.h"
-/* NOTE: For *_x list types in pkgmgr-info, like privileges_x or privilege_x,
- * this macro moves the current node to the head of the list.
- * This LISTHEAD() macro is defined in pkgmgr_parser.h in pkgmgr-info package.
- */
-#define PKGMGR_LIST_MOVE_NODE_TO_HEAD(list, node) do { \
- if (list) { LISTHEAD(list, node); } \
- } while (0)
-
namespace bf = boost::filesystem;
namespace {
#include <cstring>
#include <string>
+#include "utils/clist_helpers.h"
#include "utils/file_util.h"
-#define PKGMGR_LIST_MOVE_NODE_TO_HEAD(list, node) do { \
- if (list) { LISTHEAD(list, node); } \
- } while (0)
-
namespace fs = boost::filesystem;
namespace common_installer {
--- /dev/null
+// Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+// Use of this source code is governed by an apache 2.0 license that can be
+// found in the LICENSE file.
+
+#ifndef UTILS_CLIST_HELPERS_H_
+#define UTILS_CLIST_HELPERS_H_
+
+#include "pkgmgr/pkgmgr_parser.h"
+
+/* NOTE: For *_x list types in pkgmgr-info, like privileges_x or privilege_x,
+ * this macro moves the current node to the head of the list.
+ * This LISTHEAD() macro is defined in pkgmgr_parser.h in pkgmgr-info package.
+ */
+#define PKGMGR_LIST_MOVE_NODE_TO_HEAD(list, node) \
+ do { \
+ if (list) { \
+ LISTHEAD(list, node); \
+ } \
+ } while (0) \
+
+#endif // UTILS_CLIST_HELPERS_H_