]> git.cworth.org Git - apitrace/blobdiff - gui/retracer.h
Reduce the size of ApiTraceCall, ApiTraceEvent and ApiTraceFrame
[apitrace] / gui / retracer.h
index 617861e6cdc4e314c752410238f040f178aced08..70170f5ce4605949789083d555ab76307976df7e 100644 (file)
@@ -9,6 +9,12 @@ namespace QJson {
     class Parser;
 }
 
+struct RetraceError {
+    int callIndex;
+    QString type;
+    QString message;
+};
+
 /* internal class used by the retracer to run
  * in the thread */
 class RetraceProcess : public QObject
@@ -42,7 +48,8 @@ public slots:
 signals:
     void finished(const QString &output);
     void error(const QString &msg);
-    void foundState(const ApiTraceState &state);
+    void foundState(ApiTraceState *state);
+    void retraceErrors(const QList<RetraceError> &errors);
 
 private slots:
     void replayFinished();
@@ -82,8 +89,9 @@ public:
 
 signals:
     void finished(const QString &output);
-    void foundState(const ApiTraceState &state);
+    void foundState(ApiTraceState *state);
     void error(const QString &msg);
+    void retraceErrors(const QList<RetraceError> &errors);
 
 protected:
     virtual void run();