hidl-gen: accept oneway methods

b/30843534: oneway methods seem broken

Change-Id: I122fc26b4054eb0952d209e6b8c18d3a2ea446df
Signed-off-by: Iliyan Malchev <malchev@google.com>
diff --git a/Method.h b/Method.h
index c0bfc6c..11caf3e 100644
--- a/Method.h
+++ b/Method.h
@@ -21,11 +21,13 @@
     Method(const char *name,
            std::vector<TypedVar *> *args,
            std::vector<TypedVar *> *results,
+           bool oneway,
            AnnotationVector *annotations);
 
     std::string name() const;
     const std::vector<TypedVar *> &args() const;
     const std::vector<TypedVar *> &results() const;
+    bool isOneway() const { return mOneway; }
     const AnnotationVector &annotations() const;
 
     static std::string GetSignature(const std::vector<TypedVar *> &args);
@@ -37,6 +39,7 @@
     std::string mName;
     std::vector<TypedVar *> *mArgs;
     std::vector<TypedVar *> *mResults;
+    bool mOneway;
     AnnotationVector *mAnnotationsByName;
 
     DISALLOW_COPY_AND_ASSIGN(Method);