Merge "libsnapshot: Don't export snapuserd server includes."
This commit is contained in:
commit
81e163fc55
6 changed files with 27 additions and 23 deletions
|
|
@ -14,12 +14,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "snapuserd.h"
|
||||||
|
|
||||||
#include <csignal>
|
#include <csignal>
|
||||||
|
|
||||||
#include <libsnapshot/snapuserd.h>
|
|
||||||
#include <libsnapshot/snapuserd_client.h>
|
#include <libsnapshot/snapuserd_client.h>
|
||||||
#include <libsnapshot/snapuserd_daemon.h>
|
|
||||||
#include <libsnapshot/snapuserd_server.h>
|
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
namespace snapshot {
|
namespace snapshot {
|
||||||
|
|
@ -824,18 +823,3 @@ bool Snapuserd::Run() {
|
||||||
|
|
||||||
} // namespace snapshot
|
} // namespace snapshot
|
||||||
} // namespace android
|
} // namespace android
|
||||||
|
|
||||||
int main([[maybe_unused]] int argc, char** argv) {
|
|
||||||
android::base::InitLogging(argv, &android::base::KernelLogger);
|
|
||||||
|
|
||||||
android::snapshot::Daemon& daemon = android::snapshot::Daemon::Instance();
|
|
||||||
|
|
||||||
std::string socket = android::snapshot::kSnapuserdSocket;
|
|
||||||
if (argc >= 2) {
|
|
||||||
socket = argv[1];
|
|
||||||
}
|
|
||||||
daemon.StartServer(socket);
|
|
||||||
daemon.Run();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,12 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "snapuserd_daemon.h"
|
||||||
|
|
||||||
#include <android-base/logging.h>
|
#include <android-base/logging.h>
|
||||||
#include <libsnapshot/snapuserd_daemon.h>
|
#include <libsnapshot/snapuserd_client.h>
|
||||||
|
|
||||||
|
#include "snapuserd_server.h"
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
namespace snapshot {
|
namespace snapshot {
|
||||||
|
|
@ -89,3 +93,18 @@ void Daemon::SignalHandler(int signal) {
|
||||||
|
|
||||||
} // namespace snapshot
|
} // namespace snapshot
|
||||||
} // namespace android
|
} // namespace android
|
||||||
|
|
||||||
|
int main([[maybe_unused]] int argc, char** argv) {
|
||||||
|
android::base::InitLogging(argv, &android::base::KernelLogger);
|
||||||
|
|
||||||
|
android::snapshot::Daemon& daemon = android::snapshot::Daemon::Instance();
|
||||||
|
|
||||||
|
std::string socket = android::snapshot::kSnapuserdSocket;
|
||||||
|
if (argc >= 2) {
|
||||||
|
socket = argv[1];
|
||||||
|
}
|
||||||
|
daemon.StartServer(socket);
|
||||||
|
daemon.Run();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
|
||||||
#include <libsnapshot/snapuserd_server.h>
|
#include "snapuserd_server.h"
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
namespace snapshot {
|
namespace snapshot {
|
||||||
|
|
@ -26,8 +26,9 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <android-base/logging.h>
|
#include <android-base/logging.h>
|
||||||
#include <libsnapshot/snapuserd.h>
|
|
||||||
#include <libsnapshot/snapuserd_server.h>
|
#include "snapuserd.h"
|
||||||
|
#include "snapuserd_server.h"
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
namespace snapshot {
|
namespace snapshot {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <android-base/unique_fd.h>
|
#include <android-base/unique_fd.h>
|
||||||
#include <libsnapshot/snapuserd.h>
|
#include "snapuserd.h"
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
namespace snapshot {
|
namespace snapshot {
|
||||||
Loading…
Add table
Reference in a new issue