Index: courgette/encoded_program.h |
diff --git a/courgette/encoded_program.h b/courgette/encoded_program.h |
index e89676d64024de33116007b313adb34c367c04bd..5dddf7a98f0a35672bd3c2ab95ea320288bdfc12 100644 |
--- a/courgette/encoded_program.h |
+++ b/courgette/encoded_program.h |
@@ -11,6 +11,7 @@ |
#include <vector> |
#include "base/macros.h" |
+#include "base/memory/scoped_ptr.h" |
#include "courgette/disassembler.h" |
#include "courgette/label_manager.h" |
#include "courgette/memory_allocator.h" |
@@ -140,5 +141,10 @@ class EncodedProgram { |
DISALLOW_COPY_AND_ASSIGN(EncodedProgram); |
}; |
+// Deserializes program from a stream set to |*output|. Returns C_OK if |
+// successful, otherwise assigns |*output| to null and returns an error status. |
+Status ReadEncodedProgram(SourceStreamSet* source, |
+ scoped_ptr<EncodedProgram>* output); |
+ |
} // namespace courgette |
#endif // COURGETTE_ENCODED_PROGRAM_H_ |