summaryrefslogtreecommitdiff
path: root/internal/generated
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-22 10:42:55 +0200
committerPaul Buetow <paul@buetow.org>2024-02-22 10:42:55 +0200
commitef655c99fb57eb85da08e6306c5e23109288d364 (patch)
treec35df5f512a0de6648ab199632e6a9584054eacd /internal/generated
parentc071bb3d0a971b67fe54dc0c7903a019421f53a2 (diff)
OpId is of type OpId in the event structs
Diffstat (limited to 'internal/generated')
-rw-r--r--internal/generated/nqc.raku3
-rw-r--r--internal/generated/types/types.go6
2 files changed, 5 insertions, 4 deletions
diff --git a/internal/generated/nqc.raku b/internal/generated/nqc.raku
index 35227f0..eaf9c45 100644
--- a/internal/generated/nqc.raku
+++ b/internal/generated/nqc.raku
@@ -88,7 +88,8 @@ class NQCToGoActions {
}
method member($/) {
- make $<identifier>.made ~ ' ' ~ ($<arraysize> // '') ~ $<type>.made;
+ my Str $type = $<identifier>.made eq 'OpId' ?? 'OpId' !! $<type>.made;
+ make $<identifier>.made ~ ' ' ~ ($<arraysize> // '') ~ $type;
}
method type($/) {
diff --git a/internal/generated/types/types.go b/internal/generated/types/types.go
index 848ef6e..a313030 100644
--- a/internal/generated/types/types.go
+++ b/internal/generated/types/types.go
@@ -44,7 +44,7 @@ const WRITEV_ENTER_OP_ID OpId = 9
const WRITEV_EXIT_OP_ID OpId = 10
type NullEvent struct {
- OpId uint32
+ OpId OpId
PidTgid uint32
Time uint64
}
@@ -54,7 +54,7 @@ func (n NullEvent) String() string {
}
type FdEvent struct {
- OpId uint32
+ OpId OpId
PidTgid uint32
Time uint64
Fd int32
@@ -65,7 +65,7 @@ func (f FdEvent) String() string {
}
type OpenatEnterEvent struct {
- OpId uint32
+ OpId OpId
PidTgid uint32
Time uint64
Filename [MAX_FILENAME_LENGTH]byte