ctf: Make events immutable
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / event / IEventDeclaration.java
index 4956e0db84e556f36d468fb604f22f44af12b5ab..e10470d685f8e0f49d3e6b995be88a045dfcef75 100644 (file)
@@ -13,7 +13,10 @@ package org.eclipse.linuxtools.ctf.core.event;
 
 import java.util.Set;
 
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.linuxtools.ctf.core.event.io.BitBuffer;
 import org.eclipse.linuxtools.ctf.core.event.types.StructDeclaration;
+import org.eclipse.linuxtools.ctf.core.trace.CTFReaderException;
 import org.eclipse.linuxtools.ctf.core.trace.Stream;
 import org.eclipse.linuxtools.ctf.core.trace.StreamInputReader;
 
@@ -31,9 +34,17 @@ public interface IEventDeclaration {
      *
      * @param streamInputReader
      *            The StreamInputReader for which this definition is created.
+     * @param input
+     *            the bitbuffer input source
+     * @param timestamp
+     *            The timestamp when the event was taken
      * @return A new EventDefinition.
+     * @throws CTFReaderException
+     *             As a bitbuffer is used to read, it could have wrapped
+     *             IOExceptions.
+     * @since 3.0
      */
-    EventDefinition createDefinition(StreamInputReader streamInputReader);
+    EventDefinition createDefinition(StreamInputReader streamInputReader, @NonNull BitBuffer input, long timestamp) throws CTFReaderException;
 
     /**
      * Gets the name of an event declaration
This page took 0.023854 seconds and 5 git commands to generate.