From 6923b3e625d8b1a61c989ed9e2e944bb03f5c452 Mon Sep 17 00:00:00 2001 From: David Howells Date: Mon, 30 Sep 2019 10:01:01 +0100 Subject: [PATCH] xg: Conditionalise out unused bits Conditionalise out unused structures so as not to emit codecs for them. Signed-off-by: David Howells --- rpc-api/common.h | 2 ++ rpc-api/pts.xg | 2 ++ rpc-api/vldb.xg | 5 ++++- rpc-api/volumeserver.xg | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/rpc-api/common.h b/rpc-api/common.h index e44faa5..cbafe36 100644 --- a/rpc-api/common.h +++ b/rpc-api/common.h @@ -53,10 +53,12 @@ struct AFSFid { uint32_t Unique; }; +#if 0 struct VenusFid { int32_t Cell; AFSFid fid; }; +#endif struct AFSCallBack { uint32_t CallBackVersion; diff --git a/rpc-api/pts.xg b/rpc-api/pts.xg index 8e3fe30..becdc2c 100644 --- a/rpc-api/pts.xg +++ b/rpc-api/pts.xg @@ -111,6 +111,7 @@ const PRP_STATUS_ANY = 0x800000; const PRSUCCESS = 0; const PR_REMEMBER_TIMES = 1; +#if 0 struct prentry { uint32_t flags; int32_t id; @@ -133,6 +134,7 @@ struct prentry { uint32_t child; char name[PR_MAXNAMELEN]; }; +#endif struct prdebugentry { uint32_t flags; diff --git a/rpc-api/vldb.xg b/rpc-api/vldb.xg index f79bdd2..bc1c9d4 100644 --- a/rpc-api/vldb.xg +++ b/rpc-api/vldb.xg @@ -264,6 +264,7 @@ struct VldbListByAttributes { uint32_t flag; }; +#if 0 struct uvldbentry { char name[VLDB_MAXNAMELEN]; uint32_t nServers; @@ -284,7 +285,7 @@ struct uvldbentry { uint32_t spares8; uint32_t spares9; }; - +#endif #if 0 struct single_vldbentry { @@ -308,7 +309,9 @@ const VL_MAX_BULK_ADDRS = 1024; typedef vldbentry bulkentries<>; typedef nvldbentry nbulkentries<>; +#if 0 typedef uvldbentry ubulkentries<>; +#endif typedef uint32_t bulkaddrs; diff --git a/rpc-api/volumeserver.xg b/rpc-api/volumeserver.xg index 2a96c4a..e9235a3 100644 --- a/rpc-api/volumeserver.xg +++ b/rpc-api/volumeserver.xg @@ -118,6 +118,7 @@ const VTDeleteOnSalvage = 1; const VTOutOfService = 2; const VTDeleted = 4; +#if 0 struct volDescription { char volName[VOLSER_MAXVOLNAME]; uint32_t volId; @@ -130,6 +131,7 @@ struct partList { int32_t partId[26]; uint32_t partFlags[26]; }; +#endif struct volser_status { uint32_t volID; -- 2.50.1