smengcl commented on code in PR #4315:
URL: https://github.com/apache/ozone/pull/4315#discussion_r1125257742


##########
hadoop-hdds/rocks-native/src/main/native/Pipe.h:
##########
@@ -0,0 +1,37 @@
+//
+// Created by Swaminathan Balachandran on 3/2/23.
+//
+
+#ifndef UNTITLED_PIPE_H
+#define UNTITLED_PIPE_H

Review Comment:
   ```suggestion
   #ifndef ROCKS_NATIVE_PIPE_H
   #define ROCKS_NATIVE_PIPE_H
   ```



##########
hadoop-hdds/rocks-native/src/main/native/Pipe.h:
##########
@@ -0,0 +1,37 @@
+//
+// Created by Swaminathan Balachandran on 3/2/23.
+//
+
+#ifndef UNTITLED_PIPE_H
+#define UNTITLED_PIPE_H
+
+
+#include <stdio.h>
+
+class Pipe {
+    public:
+        Pipe();
+        ~Pipe();
+        void close();
+        int getReadFd() {
+            return p[0];
+        }
+
+        int getWriteFd() {
+            return p[1];
+        }
+
+        bool isOpen() {
+            return open;
+        }
+
+
+    private:
+        int p[2];
+        FILE* wr;
+        bool open;
+
+};
+
+
+#endif //UNTITLED_PIPE_H

Review Comment:
   ```suggestion
   #endif //ROCKS_NATIVE_PIPE_H
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to