Android-cuttlefish cvd tool
|
#include <android-base/logging.h>
#include <gflags/gflags.h>
#include <json/json.h>
#include <unistd.h>
#include <iostream>
#include "cuttlefish/common/libs/fs/shared_fd.h"
#include "cuttlefish/host/libs/allocd/request.h"
#include "cuttlefish/host/libs/allocd/utils.h"
#include "cuttlefish/host/libs/config/logging.h"
Functions | |
DEFINE_string (socket_path, kDefaultLocation, "Socket path") | |
DEFINE_bool (id, false, "Request new UUID") | |
DEFINE_bool (ifcreate, false, "Request a new Interface") | |
DEFINE_bool (shutdown, false, "Shutdown Resource Allocation Server") | |
DEFINE_bool (stop_session, false, "Remove all resources from session") | |
DEFINE_string (ifdestroy, "", "Request an interface be destroyed") | |
DEFINE_int32 (ifid, -1, "Global Resource ID") | |
DEFINE_int32 (session, -1, "Session ID") | |
int | main (int argc, char *argv[]) |
DEFINE_bool | ( | id | , |
false | , | ||
"Request new UUID" | |||
) |
DEFINE_bool | ( | ifcreate | , |
false | , | ||
"Request a new Interface" | |||
) |
DEFINE_bool | ( | shutdown | , |
false | , | ||
"Shutdown Resource Allocation Server" | |||
) |
DEFINE_bool | ( | stop_session | , |
false | , | ||
"Remove all resources from session" | |||
) |
DEFINE_int32 | ( | ifid | , |
- | 1, | ||
"Global Resource ID" | |||
) |
DEFINE_int32 | ( | session | , |
- | 1, | ||
"Session ID" | |||
) |
DEFINE_string | ( | ifdestroy | , |
"" | , | ||
"Request an interface be destroyed" | |||
) |
DEFINE_string | ( | socket_path | , |
kDefaultLocation | , | ||
"Socket path" | |||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |