/*
 * Copyright (C) 2026 The Android Open Source Project
 *
 * 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.
 */

#pragma once

#include "cuttlefish/host/commands/assemble_cvd/flags/cpus.h"
#include "cuttlefish/host/commands/assemble_cvd/flags/daemon.h"
#include "cuttlefish/host/commands/assemble_cvd/flags/data_policy.h"
#include "cuttlefish/host/commands/assemble_cvd/flags/extra_kernel_cmdline.h"
#include "cuttlefish/host/commands/assemble_cvd/flags/gpu_mode.h"
#include "cuttlefish/host/commands/assemble_cvd/flags/guest_enforce_security.h"
#include "cuttlefish/host/commands/assemble_cvd/flags/memory_mb.h"
#include "cuttlefish/host/commands/assemble_cvd/flags/restart_subprocesses.h"
#include "cuttlefish/host/commands/assemble_cvd/flags/system_image_dir.h"

namespace cuttlefish {

struct ParsedFlags {
  CpusFlag cpus;
  DaemonFlag daemon;
  DataPolicyFlag data_policy;
  ExtraKernelCmdlineFlag extra_kernel_cmdline;
  GpuModeFlag gpu_mode;
  GuestEnforceSecurityFlag guest_enforce_security;
  MemoryMbFlag memory_mb;
  RestartSubprocessesFlag restart_subprocesses;
  SystemImageDirFlag system_image_dir;
};

// depends on gflags::ParseCommandLineFlags being called previously
Result<ParsedFlags> GetParsedFlags();

}  // namespace cuttlefish
