Android-cuttlefish cvd tool
Namespaces | Functions | Variables
xdg.cpp File Reference
#include "cuttlefish/host/libs/directories/xdg.h"
#include <dirent.h>
#include <stdlib.h>
#include <unistd.h>
#include <string>
#include <android-base/file.h>
#include <android-base/strings.h>
#include "cuttlefish/common/libs/fs/shared_buf.h"
#include "cuttlefish/common/libs/fs/shared_fd.h"
#include "cuttlefish/common/libs/utils/environment.h"
#include "cuttlefish/common/libs/utils/files.h"
#include "cuttlefish/common/libs/utils/result.h"
#include "cuttlefish/common/libs/utils/users.h"
Include dependency graph for xdg.cpp:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{xdg.cpp}
 

Functions

std::optional< std::string > cuttlefish::anonymous_namespace{xdg.cpp}::NonEmptyEnv (const std::string &var_name)
 
Result< std::string > cuttlefish::anonymous_namespace{xdg.cpp}::XdgDataHome ()
 
Result< std::string > cuttlefish::anonymous_namespace{xdg.cpp}::XdgConfigHome ()
 
Result< std::string > cuttlefish::anonymous_namespace{xdg.cpp}::XdgStateHome ()
 
Result< std::string > cuttlefish::anonymous_namespace{xdg.cpp}::XdgCacheHome ()
 
std::string cuttlefish::anonymous_namespace{xdg.cpp}::XdgRuntimeDir ()
 
Result< std::vector< std::string > > cuttlefish::anonymous_namespace{xdg.cpp}::XdgDataDirs ()
 
Result< std::vector< std::string > > cuttlefish::anonymous_namespace{xdg.cpp}::XdgConfigDirs ()
 
Result< std::string > cuttlefish::CvdDataHome ()
 
Result< std::string > cuttlefish::CvdConfigHome ()
 
Result< std::string > cuttlefish::CvdStateHome ()
 
Result< std::string > cuttlefish::CvdCacheHome ()
 
std::string cuttlefish::CvdRuntimeDir ()
 
Result< std::vector< std::string > > cuttlefish::CvdDataDirs ()
 
Result< std::vector< std::string > > cuttlefish::CvdConfigDirs ()
 
Result< std::string > cuttlefish::ReadCvdDataFile (std::string_view path)
 
Result< std::vector< std::string > > cuttlefish::FindCvdDataFiles (std::string_view path)
 
Result< void > cuttlefish::WriteCvdDataFile (std::string_view path, std::string contents)
 

Variables

constexpr char cuttlefish::anonymous_namespace{xdg.cpp}::kCvdSuffix [] = "/cvd"