@@ -13,8 +13,26 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#ifndef E_TRACE_H
+#define E_TRACE_H
+
+#include <stdbool.h>
+#include <types.h>
+#include <trace.h>
+#include <trace_types.h>
+
+struct trace_reader {
+ /* This is where the reader is up to. */
+ be64 rpos;
+ /* If the last one we read was a repeat, this shows how many. */
+ be32 last_repeat;
+ struct tracebuf *tb;
+};
+
/* Is this tracebuf empty? */
bool trace_empty(const struct tracebuf *tracebuf);
/* Get the next trace from this buffer (false if empty). */
bool trace_get(union trace *t, struct tracebuf *tb);
+
+#endif