提交 2dd02475 编写于 作者: J John Ferlan

util: Move virSecretUsageType to virsecret.h

Move the virSecretUsageType into the util.
上级 a74a1632
......@@ -53,6 +53,7 @@
#include "device_conf.h"
#include "network_conf.h"
#include "virtpm.h"
#include "virsecret.h"
#include "virstring.h"
#include "virnetdev.h"
#include "virnetdevmacvlan.h"
......
......@@ -30,6 +30,7 @@
#include "secret_conf.h"
#include "virsecretobj.h"
#include "virerror.h"
#include "virsecret.h"
#include "virstring.h"
#include "virxml.h"
#include "viruuid.h"
......@@ -38,9 +39,6 @@
VIR_LOG_INIT("conf.secret_conf");
VIR_ENUM_IMPL(virSecretUsage, VIR_SECRET_USAGE_TYPE_LAST,
"none", "volume", "ceph", "iscsi", "tls")
void
virSecretDefFree(virSecretDefPtr def)
{
......
......@@ -26,8 +26,6 @@
# include "internal.h"
# include "virutil.h"
VIR_ENUM_DECL(virSecretUsage)
typedef struct _virSecretDef virSecretDef;
typedef virSecretDef *virSecretDefPtr;
struct _virSecretDef {
......
......@@ -28,9 +28,9 @@
#include "dirname.h"
#include "viralloc.h"
#include "virlog.h"
#include "virsecret.h"
#include "virstring.h"
#include "c-ctype.h"
#include "secret_conf.h"
#define VIR_FROM_THIS VIR_FROM_QEMU
......
......@@ -48,6 +48,7 @@
#include "virfile.h"
#include "virfdstream.h"
#include "configmake.h"
#include "virsecret.h"
#include "virstring.h"
#include "viraccessapicheck.h"
//#include "dirname.h"
......
......@@ -32,6 +32,8 @@
VIR_LOG_INIT("util.secret");
VIR_ENUM_IMPL(virSecretUsage, VIR_SECRET_USAGE_TYPE_LAST,
"none", "volume", "ceph", "iscsi", "tls")
void
virSecretLookupDefClear(virSecretLookupTypeDefPtr def)
......
......@@ -24,8 +24,11 @@
# include "internal.h"
# include "virutil.h"
# include "virxml.h"
VIR_ENUM_DECL(virSecretUsage)
typedef enum {
VIR_SECRET_LOOKUP_TYPE_NONE,
VIR_SECRET_LOOKUP_TYPE_UUID,
......
......@@ -32,9 +32,9 @@
#include "viralloc.h"
#include "virfile.h"
#include "virutil.h"
#include "virsecret.h"
#include "virstring.h"
#include "virtime.h"
#include "conf/secret_conf.h"
static virSecretPtr
virshCommandOptSecret(vshControl *ctl, const vshCmd *cmd, const char **name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册