From 29271eabae35d0a6072042f7af0d1f61e6a13064 Mon Sep 17 00:00:00 2001 From: Shashank Kambhampati Date: Sat, 16 Sep 2023 08:00:16 -0700 Subject: [PATCH] Add Hack namespace for Eden thrift files Summary: I want to import these into our Hack server side code so I can write Hack functions to prefetch files. Adding a Hack namespace allows me to do that without hitting classname conflicts. Reviewed By: kmancini Differential Revision: D49322120 fbshipit-source-id: 333e27d245c88b17bd3645cb2103ec3e6ba1f63e --- eden/fs/config/eden_config.thrift | 1 + eden/fs/service/eden.thrift | 1 + 2 files changed, 2 insertions(+) diff --git a/eden/fs/config/eden_config.thrift b/eden/fs/config/eden_config.thrift index 89ff5648a197..c1b2c71ab0c3 100644 --- a/eden/fs/config/eden_config.thrift +++ b/eden/fs/config/eden_config.thrift @@ -9,6 +9,7 @@ namespace cpp2 facebook.eden namespace java com.facebook.eden.thrift namespace py facebook.eden.eden_config namespace py3 eden.fs.config +namespace hack edenfs.config /** * Identifies the point of origin of a config setting. Precedence is defined by ConfigSetting::getIdx() diff --git a/eden/fs/service/eden.thrift b/eden/fs/service/eden.thrift index af64c1ea55e3..cf10851eac37 100644 --- a/eden/fs/service/eden.thrift +++ b/eden/fs/service/eden.thrift @@ -12,6 +12,7 @@ namespace cpp2 facebook.eden namespace java com.facebook.eden.thrift namespace py facebook.eden namespace py3 eden.fs.service +namespace hack edenfs.service /** * API style guide.