/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015-2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* @brief Definition of proper privilege dropping check utilities
*/
-#ifndef SECURITY_MANAGER_CHECK_PROPER_DROP_
-#define SECURITY_MANAGER_CHECK_PROPER_DROP_
+#pragma once
#include <dpl/exception.h>
};
} // namespace SecurityManager
-#endif /* SECURITY_MANAGER_CHECK_PROPER_DROP_H_ */
* used in security manager.
*/
-#ifndef _SECURITY_MANAGER_CLIENT_
-#define _SECURITY_MANAGER_CLIENT_
+#pragma once
#include <functional>
int try_catch(const std::function<int()>& func);
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_CLIENT_
/*
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* limitations under the License
*/
/*
- * @file client-common.h
+ * @file client-offline.h
* @author Rafal Krypa <r.krypa@samsung.com>
* @version 1.0
* @brief Helper class for client "off-line" mode detection
*/
-#ifndef _SECURITY_MANAGER_OFFLINE_
-#define _SECURITY_MANAGER_OFFLINE_
+#pragma once
#include <credentials.h>
#include <file-lock.h>
};
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_OFFLINE_
* @brief Definition of Configuration options
*/
-#ifndef SECURITY_MANAGER_CONFIG_
-#define SECURITY_MANAGER_CONFIG_
+#pragma once
#include <string>
};
} /* namespace SecurityManager */
-
-#endif /* SECURITY_MANAGER_CONFIG_ */
/*
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* @brief Definition of ConnectionInfo structure and ConnectionInfoMap type.
*/
-#ifndef _CONNECTION_INFO_H_
-#define _CONNECTION_INFO_H_
+#pragma once
#include <map>
#include <generic-socket-manager.h>
typedef std::map<int, ConnectionInfo> ConnectionInfoMap;
} //namespace SecurityManager
-
-#endif //_CONNECTION_INFO_H_
/*
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* limitations under the License
*/
/*
- * @file sock-raii.h
+ * @file connection.h
* @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
* @author Lukasz Kostyra (l.kostyra@samsung.com)
* @version 1.0
* used in security manager.
*/
-#ifndef _SECURITY_MANAGER_CONNECTION_
-#define _SECURITY_MANAGER_CONNECTION_
+#pragma once
#include <vector>
#include <functional>
int sendToManagerAncData(char const * const interface, const RawBuffer &send, struct msghdr &hdr);
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_CONNECTION_
* @version 1.0
*/
-#ifndef SECURITY_MANAGER_CREDENTIALS_
-#define SECURITY_MANAGER_CREDENTIALS_
+#pragma once
#include <string>
#include <sys/types.h>
};
} // namespace SecurityManager
-
-#endif /* SECURITY_MANAGER_CREDENTIALS_ */
* @brief Wrapper class for Cynara interface
*/
-#ifndef _SECURITY_MANAGER_CYNARA_
-#define _SECURITY_MANAGER_CYNARA_
+#pragma once
#include <cynara-client-async.h>
#include <cynara-admin.h>
};
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_CYNARA_
};
} // namespace SecurityManager
-
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* limitations under the License
*/
/**
- * @file fs-exceptions.h
+ * @file filesystem-exception.h
* @author Rafal Krypa <r.krypa@samsung.com>
* @version 1.0
* @brief Declaration of Smack-specific exceptions
*
*/
-#ifndef _FILESYSTEM_EXCEPTIONS_H_
-#define _FILESYSTEM_EXCEPTIONS_H_
+#pragma once
#include <dpl/exception.h>
} // namespace FS
} // namespace SecurityManager
-
-#endif /* _FILESYSTEM_EXCEPTIONS_H_ */
* @brief Very simple wrapper for opendir/readdir.
*
*/
-#ifndef _FILESYSTEM_H_
-#define _FILESYSTEM_H_
+#pragma once
#include <vector>
#include <string>
} // namespace FS
} // nanespace SecurityManager
-
-#endif // _FILESYSTEM_H_
-
/*
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* limitations under the License
*/
/*
- * @file secket-buffer.h
+ * @file message-buffer.h
* @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
* @version 1.0
* @brief Implementatin of MessageBuffer.
*/
-#ifndef _SECURITY_MANAGER_SOCKET_BUFFER_
-#define _SECURITY_MANAGER_SOCKET_BUFFER_
+#pragma once
#include <vector>
};
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_SOCKET_BUFFER_
* @brief Header with API for adding, deleting and reading permissible names
* @brief (names of installed applications)
*/
-#ifndef _PERMISSIBLE_SET_H_
-#define _PERMISSIBLE_SET_H_
+#pragma once
#include <cstdlib>
#include <string>
} // PermissibleSet
} // SecurityManager
-#endif /* _PERMISSIBLE_SET_H_ */
* @author Krzysztof Jackiewicz (k.jackiewicz@samsung.com)
* @version 1.0
*/
-#ifndef _PKG_INFO_H_
-#define _PKG_INFO_H_
+#pragma once
#include <string>
};
} // SecurityManager
-
-#endif /* _PKG_INFO_H_ */
* @brief This file contains declaration of the API to privilges database.
*/
+#pragma once
+
#include <cstdio>
#include <list>
#include <utility>
#include "pkg-info.h"
-#ifndef PRIVILEGE_DB_H_
-#define PRIVILEGE_DB_H_
-
namespace SecurityManager {
const std::string PRIVILEGE_DB_PATH = TizenPlatformConfig::makePath(TZ_SYS_DB, ".security-manager.db");
};
} //namespace SecurityManager
-
-#endif // PRIVILEGE_DB_H_
* @brief This file contains list of all protocols suported by security-manager.
*/
-#ifndef _SECURITY_MANAGER_PROTOCOLS_
-#define _SECURITY_MANAGER_PROTOCOLS_
+#pragma once
#include <sys/types.h>
#include <unistd.h>
struct policy_update_req {
std::vector<const policy_entry *> units;
};
-
-
-#endif // _SECURITY_MANAGER_PROTOCOLS_
* @brief Implementation of the service methods
*/
-#ifndef _SECURITY_MANAGER_SERVICE_IMPL_
-#define _SECURITY_MANAGER_SERVICE_IMPL_
+#pragma once
#include <unistd.h>
#include <sys/types.h>
};
} /* namespace SecurityManager */
-
-#endif /* _SECURITY_MANAGER_SERVICE_IMPL_ */
* @brief Definitions of sharing info wrapping types.
*/
-#ifndef SECURITY_MANAGER_SHARING_INFO
-#define SECURITY_MANAGER_SHARING_INFO
+#pragma once
namespace SecurityManager {
class AppInfo {
typedef std::map<AppInfo, PathLabelVector> OwnerSharingInfo;
} //namespace SecurityManager
-
-#endif // SECURITY_MANAGER_SHARING_INFO
/*
- * security-manager
- *
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* limitations under the License
*/
-#ifndef _SMACK_CHECK_H_
-#define _SMACK_CHECK_H_
+#pragma once
namespace SecurityManager {
int smack_check(void);
} // namespace SecurityManager
-
-#endif // _SMACK_CHECK_H_
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* @brief Declaration of Smack-specific exceptions
*
*/
-#ifndef _SMACK_EXCEPTIONS_H_
-#define _SMACK_EXCEPTIONS_H_
+#pragma once
#include <dpl/exception.h>
};
} // namespace SecurityManager
-
-#endif /* _SMACK_EXCEPTIONS_H_ */
* @brief Header file of functions managing smack labels
*
*/
-#ifndef _SMACK_LABELS_H_
-#define _SMACK_LABELS_H_
+#pragma once
#include <string>
#include <utility>
} // namespace SmackLabels
} // namespace SecurityManager
-
-#endif /* _SMACK_LABELS_H_ */
* @brief Header file of a class managing smack rules
*
*/
-#ifndef _SMACK_RULES_H_
-#define _SMACK_RULES_H_
+#pragma once
#include <vector>
#include <string>
};
} // namespace SecurityManager
-
-#endif /* _SMACK_RULES_H_ */
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* @brief Definition of Statement Wrapper class.
*/
-#ifndef SECURITY_MANAGER_STMT_WRAPPER_
-#define SECURITY_MANAGER_STMT_WRAPPER_
+#pragma once
#include <string>
#include <dpl/db/sql_connection.h>
};
} /* namespace SecurityManager */
-
-#endif /* SECURITY_MANAGER_STMT_WRAPPER_ */
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the implementation file of assert
*/
-#ifndef SECURITY_MANAGER_ASSERT_H
-#define SECURITY_MANAGER_ASSERT_H
+#pragma once
#include <dpl/noreturn.h>
__FILE__, __LINE__, __FUNCTION__); \
} \
} while (0)
-
-#endif // SECURITY_MANAGER_ASSERT_H
/*
- * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2013 - 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.
* @author Jihoon Chung (jihoon.chung@samsung.com)
* @version 1.0
*/
-#ifndef SECURITY_MANAGER_AVAILABILITY_H
-#define SECURITY_MANAGER_AVAILABILITY_H
+#pragma once
#define SECURITY_MANAGER_DEPRECATED __attribute__((deprecated))
#define SECURITY_MANAGER_DEPRECATED_WITH_MESSAGE(msg) __attribute__((deprecated(msg)))
#define SECURITY_MANAGER_UNUSED __attribute__((unused))
#define SECURITY_MANAGER_UNUSED_PARAM(variable) (void)variable
-
-#endif // SECURITY_MANAGER_AVAILABILITY_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the header file of binary queue
*/
-#ifndef SECURITY_MANAGER_BINARY_QUEUE_H
-#define SECURITY_MANAGER_BINARY_QUEUE_H
+#pragma once
//#include <dpl/abstract_input_output.h>
#include <dpl/exception.h>
};
} // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_BINARY_QUEUE_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* Current char traits could be extended in feature to boost
* performance
*/
-#ifndef SECURITY_MANAGER_CHAR_TRAITS
-#define SECURITY_MANAGER_CHAR_TRAITS
+#pragma once
#include <cstring>
#include <string>
namespace SecurityManager {
typedef std::char_traits<wchar_t> CharTraits;
} // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_CHAR_TRAITS
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* and html output
*/
-#ifndef SECURITY_MANAGER_COLORS_H
-#define SECURITY_MANAGER_COLORS_H
+#pragma once
namespace SecurityManager {
namespace Colors {
} //namespace Html
} //namespace Colors
} //namespace SecurityManager
-
-#endif /* SECURITY_MANAGER_COLORS_H */
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the implementation file of errno string
*/
-#ifndef SECURITY_MANAGER_ERRNO_STRING_H
-#define SECURITY_MANAGER_ERRNO_STRING_H
+#pragma once
#include <dpl/exception.h>
#include <string>
std::string GetErrnoString(int error = errno);
} // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_ERRNO_STRING_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief Header file for base exception
*/
-#ifndef SECURITY_MANAGER_EXCEPTION_H
-#define SECURITY_MANAGER_EXCEPTION_H
+#pragma once
#include <string>
#include <cstring>
// kernel
}
}
-
-#endif // SECURITY_MANAGER_EXCEPTION_H
/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 - 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.
* @version 1.0
* @brief This file is the implementation file deleter with use std::free()
*/
-#ifndef FREE_DELETER_H
-#define FREE_DELETER_H
+#pragma once
#include <cstdlib>
namespace SecurityManager
void operator()(void *p) { std::free(p); }
};
}// SecurityManager
-#endif // FREE_DELETER_H
*
*/
-#ifndef _FSTREAM_ACCESSORS_H
-#define _FSTREAM_ACCESSORS_H
+#pragma once
namespace DPL {
};
} // namespace DPL
-
-#endif // _FSTREAM_ACCESSORS_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* limitations under the License.
*/
/*
- * @file noncopyable
+ * @file noncopyable.h
* @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
* @version 1.0
* @brief This file is the implementation file of noncopyable
*/
-#ifndef SECURITYMANAGER_NONCOPYABLE_H
-#define SECURITYMANAGER_NONCOPYABLE_H
+
+#pragma once
namespace SecurityManager {
class Noncopyable
virtual ~Noncopyable();
};
} // namespace SecurityManager
-
-#endif // SECURITYMANAGER_NONCOPYABLE_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the implementation file of noreturn
*/
-#ifndef SECURITYMANAGER_NORETURN_H
-#define SECURITYMANAGER_NORETURN_H
+#pragma once
#define SECURITYMANAGER_NORETURN __attribute__((__noreturn__))
-
-#endif // SECURITYMANAGER_NORETURN_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief Interfaces and templates used for data serialization.
*/
-#ifndef SERIALIZATION_H
-#define SERIALIZATION_H
+#pragma once
#include <string>
#include <vector>
}
}; // struct Deserialization
} // namespace SecurityManager
-
-#endif // SERIALIZATION_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the implementation file of singleton
*/
-#ifndef SECURITYMANAGER_SINGLETON_H
-#define SECURITYMANAGER_SINGLETON_H
+#pragma once
namespace SecurityManager {
template<typename Class>
}
} // namespace SecurityManager
-
-#endif // SECURITYMANAGER_SINGLETON_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @brief This file is the implementation file of SQL naive
* synchronization object
*/
-#ifndef SECURITY_MANAGER_NAIVE_SYNCHRONIZATION_OBJECT_H
-#define SECURITY_MANAGER_NAIVE_SYNCHRONIZATION_OBJECT_H
+#pragma once
#include <dpl/db/sql_connection.h>
};
} // namespace DB
} // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_NAIVE_SYNCHRONIZATION_OBJECT_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the implementation file of SQL connection
*/
-#ifndef SECURITY_MANAGER_SQL_CONNECTION_H
-#define SECURITY_MANAGER_SQL_CONNECTION_H
+#pragma once
#include <dpl/noncopyable.h>
#include <dpl/exception.h>
};
} // namespace DB
} // namespace SecurityManager
-
-#endif // SECURITY_MANAGER_SQL_CONNECTION_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the implementation file of abstract log provider
*/
-#ifndef SECURITYMANAGER_ABSTRACT_LOG_PROVIDER_H
-#define SECURITYMANAGER_ABSTRACT_LOG_PROVIDER_H
+#pragma once
namespace SecurityManager {
namespace Log {
};
}
} // namespace SecurityManager
-
-#endif // SECURITYMANAGER_ABSTRACT_LOG_PROVIDER_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the implementation file of DLOG log provider
*/
-#ifndef SECURITYMANAGER_DLOG_LOG_PROVIDER_H
-#define SECURITYMANAGER_DLOG_LOG_PROVIDER_H
+#pragma once
#include <dpl/log/abstract_log_provider.h>
#include <memory>
} // namespace Log
} // namespace SecurityManager
-
-#endif // SECURITYMANAGER_DLOG_LOG_PROVIDER_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the implementation file of log system
*/
-#ifndef SECURITYMANAGER_LOG_H
-#define SECURITYMANAGER_LOG_H
+#pragma once
#include <dpl/singleton.h>
#include <dpl/noncopyable.h>
#define LogInfo(message) DPL_MACRO_DUMMY_LOGGING(message, Info)
#define LogPedantic(message) DPL_MACRO_DUMMY_LOGGING(message, Pedantic)
#endif // BUILD_TYPE_DEBUG
-
-#endif // SECURITYMANAGER_LOG_H
/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 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.
* @version 1.0
* @brief This file is the implementation file of old style log provider
*/
-#ifndef SECURITYMANAGER_OLD_STYLE_LOG_PROVIDER_H
-#define SECURITYMANAGER_OLD_STYLE_LOG_PROVIDER_H
+#pragma once
#include <dpl/log/abstract_log_provider.h>
#include <string>
};
}
} // namespace SecurityManager
-
-#endif // SECURITYMANAGER_OLD_STYLE_LOG_PROVIDER_H
/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2014 - 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.
* @brief This file contains the implementation of systemd journal log provider
*/
-#ifndef SECURITYMANAGER_SD_JOURNAL_PROVIDER_H
-#define SECURITYMANAGER_SD_JOURNAL_PROVIDER_H
+#pragma once
#include <dpl/log/abstract_log_provider.h>
#include <memory>
} // namespace Log
} // namespace SecurityManager
-
-#endif // SECURITYMANAGER_SD_JOURNAL_PROVIDER_H
*
*/
-#ifndef SECURITY_MANAGER_APP_MANAGER_H_
-#define SECURITY_MANAGER_APP_MANAGER_H_
+#pragma once
#include "security-manager-types.h"
#ifdef __cplusplus
}
#endif
-
-#endif /* SECURITY_MANAGER_APP_MANAGER_H_ */
*
*/
-#ifndef SECURITY_MANAGER_APP_RUNTIME_H_
-#define SECURITY_MANAGER_APP_RUNTIME_H_
+#pragma once
#include "security-manager-types.h"
#ifdef __cplusplus
}
#endif
-
-#endif /* SECURITY_MANAGER_APP_RUNTIME_H_ */
*
*/
-#ifndef SECURITY_MANAGER_APP_SHARING_H_
-#define SECURITY_MANAGER_APP_SHARING_H_
+#pragma once
#include "security-manager-types.h"
#ifdef __cplusplus
}
#endif
-
-#endif /* SECURITY_MANAGER_APP_SHARING_H_ */
* @version 1.0
* @brief Header with API targeted for launcher to monitor labels of installed applications
*/
-#ifndef _LABEL_MONITOR_H_
-#define _LABEL_MONITOR_H_
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-
-#endif /* _LABEL_MONITOR_H_ */
*
*/
-#ifndef SECURITY_MANAGER_POLICY_MANAGER_H_
-#define SECURITY_MANAGER_POLICY_MANAGER_H_
+#pragma once
#include "security-manager-types.h"
#ifdef __cplusplus
}
#endif
-
-#endif /* SECURITY_MANAGER_POLICY_MANAGER_H_ */
* @version 1.0
* @brief This file contains header of security-manager API
*/
-#ifndef SECURITY_MANAGER_TYPES_H_
-#define SECURITY_MANAGER_TYPES_H_
+#pragma once
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-
-#endif /* SECURITY_MANAGER_TYPES_H_ */
-
* @brief This file contains header of security-manager API
*/
-#ifndef SECURITY_MANAGER_H_
-#define SECURITY_MANAGER_H_
+#pragma once
#include <sys/types.h>
#ifdef __cplusplus
}
#endif
-
-#endif /* SECURITY_MANAGER_H_ */
*
*/
-#ifndef SECURITY_MANAGER_USER_MANAGER_H_
-#define SECURITY_MANAGER_USER_MANAGER_H_
+#pragma once
#include "security-manager-types.h"
#ifdef __cplusplus
}
#endif
-
-#endif /* SECURITY_MANAGER_USER_MANAGER_H_ */
/*
- * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Rafal Krypa <r.krypa@samsung.com>
*
* limitations under the License
*/
/*
- * @file protocols.h
+ * @file generic-event.h
* @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
* @version 1.0
* @brief Implementation of GenericEvent.
*/
-#ifndef _SECURITY_MANAGER_GENERIC_EVENT_
-#define _SECURITY_MANAGER_GENERIC_EVENT_
+#pragma once
namespace SecurityManager {
};
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_GENERIC_EVENT_
* @brief Implementation of GenericSocketService and GenericSocketManager.
*/
-#ifndef _SECURITY_MANAGER_GENERIC_SERVICE_MANAGER_
-#define _SECURITY_MANAGER_GENERIC_SERVICE_MANAGER_
+#pragma once
#include <vector>
#include <string>
};
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_GENERIC_SERVICE_MANAGER_
* @brief Implementation of threads.
*/
-#ifndef _SECURITY_MANAGER_SERVICE_THREAD_
-#define _SECURITY_MANAGER_SERVICE_THREAD_
+#pragma once
#include <cassert>
#include <queue>
};
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_SERVICE_THREAD_
* @brief SocketManager implementation.
*/
-#ifndef _SECURITY_MANAGER_SOCKET_MANAGER_
-#define _SECURITY_MANAGER_SOCKET_MANAGER_
+#pragma once
#include <vector>
#include <queue>
};
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_SOCKET_MANAGER_
* @brief Implementation of security-manager base service
*/
-#ifndef _SECURITY_MANAGER_BASE_SERVICE_
-#define _SECURITY_MANAGER_BASE_SERVICE_
+#pragma once
#include <service-thread.h>
#include <generic-socket-manager.h>
};
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_BASE_SERVICE_
* @brief Implementation of security-manager service
*/
-#ifndef _SECURITY_MANAGER_SERVICE_
-#define _SECURITY_MANAGER_SERVICE_
+#pragma once
#include "base-service.h"
#include "credentials.h"
};
} // namespace SecurityManager
-
-#endif // _SECURITY_MANAGER_SERVICE_