X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=trace_parser.hpp;h=f340da0e72613573aa5ea6d61e0e029779672e29;hb=7c7677500d560a22d18666e3e0786efa43136478;hp=a9f11f78949213e00d0dca9b8623c6330f63d489;hpb=e0df952b67f3ae38aeb0fd7e32942f8fa53ac49f;p=apitrace diff --git a/trace_parser.hpp b/trace_parser.hpp index a9f11f7..f340da0 100644 --- a/trace_parser.hpp +++ b/trace_parser.hpp @@ -84,7 +84,7 @@ public: bool supportsOffsets() const { - return file-supportsOffsets(); + return file->supportsOffsets(); } File::Offset currentOffset() @@ -101,8 +101,16 @@ public: bool structWithSignature(const File::Offset &offset) const; bool enumWithSignature(const File::Offset &offset) const; bool bitmaskWithSignature(const File::Offset &offset) const; - bool hasCallBeenParsed(const File::Offset &offset) const; - unsigned callNumForOffset(const File::Offset &offset) const; + + unsigned currentCallNumber() const + { + return next_call_no; + } + + void setCurrentCallNumber(unsigned num) + { + next_call_no = num; + } protected: void parse_enter(void);