Skip to content

Commit

Permalink
fix: to_op
Browse files Browse the repository at this point in the history
  • Loading branch information
oiweiwei committed Feb 14, 2025
1 parent 63f7a12 commit b014636
Show file tree
Hide file tree
Showing 293 changed files with 15,367 additions and 15,367 deletions.
2 changes: 1 addition & 1 deletion codegen/gen/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (p *Generator) GenOperationToOp(ctx context.Context, op *midl.Operation, di
if n == "_" {
continue
}
p.P(p.O(n), "=", "op."+n)
p.P("op."+n, "=", p.O(n))

}
p.P("return", "op")
Expand Down
14 changes: 7 additions & 7 deletions msrpc/bkrp/backupkey/v1/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,10 @@ func (o *BackupKeyRequest) xxx_ToOp(ctx context.Context, op *xxx_BackupKeyOperat
if o == nil {
return op
}
o.ActionAgent = op.ActionAgent
o.DataIn = op.DataIn
o.DataInLength = op.DataInLength
o.Param = op.Param
op.ActionAgent = o.ActionAgent
op.DataIn = o.DataIn
op.DataInLength = o.DataInLength
op.Param = o.Param
return op
}

Expand Down Expand Up @@ -440,9 +440,9 @@ func (o *BackupKeyResponse) xxx_ToOp(ctx context.Context, op *xxx_BackupKeyOpera
if o == nil {
return op
}
o.DataOut = op.DataOut
o.DataOutLength = op.DataOutLength
o.Return = op.Return
op.DataOut = o.DataOut
op.DataOutLength = o.DataOutLength
op.Return = o.Return
return op
}

Expand Down
10 changes: 5 additions & 5 deletions msrpc/bpau/bitspeerauth/v1/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ func (o *ExchangePublicKeysRequest) xxx_ToOp(ctx context.Context, op *xxx_Exchan
if o == nil {
return op
}
o.ClientKeyLength = op.ClientKeyLength
o.ClientKey = op.ClientKey
op.ClientKeyLength = o.ClientKeyLength
op.ClientKey = o.ClientKey
return op
}

Expand Down Expand Up @@ -386,9 +386,9 @@ func (o *ExchangePublicKeysResponse) xxx_ToOp(ctx context.Context, op *xxx_Excha
if o == nil {
return op
}
o.ServerKeyLength = op.ServerKeyLength
o.ServerKey = op.ServerKey
o.Return = op.Return
op.ServerKeyLength = o.ServerKeyLength
op.ServerKey = o.ServerKey
op.Return = o.Return
return op
}

Expand Down
10 changes: 5 additions & 5 deletions msrpc/brwsa/browser/v0/v0.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,8 @@ func (o *QueryOtherDomainsRequest) xxx_ToOp(ctx context.Context, op *xxx_QueryOt
if o == nil {
return op
}
o.ServerName = op.ServerName
o.Info = op.Info
op.ServerName = o.ServerName
op.Info = o.Info
return op
}

Expand Down Expand Up @@ -713,9 +713,9 @@ func (o *QueryOtherDomainsResponse) xxx_ToOp(ctx context.Context, op *xxx_QueryO
if o == nil {
return op
}
o.Info = op.Info
o.TotalEntries = op.TotalEntries
o.Return = op.Return
op.Info = o.Info
op.TotalEntries = o.TotalEntries
op.Return = o.Return
return op
}

Expand Down
4 changes: 2 additions & 2 deletions msrpc/capr/lsacap/v1/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ func (o *GetAvailableCapIDsResponse) xxx_ToOp(ctx context.Context, op *xxx_GetAv
if o == nil {
return op
}
o.WrappedCapIDs = op.WrappedCapIDs
o.Return = op.Return
op.WrappedCapIDs = o.WrappedCapIDs
op.Return = o.Return
return op
}

Expand Down
122 changes: 61 additions & 61 deletions msrpc/cmpo/ixnremote/v1/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -1144,12 +1144,12 @@ func (o *PokeRequest) xxx_ToOp(ctx context.Context, op *xxx_PokeOperation) *xxx_
if o == nil {
return op
}
o.Rank = op.Rank
o.CalleeUUID = op.CalleeUUID
o.HostName = op.HostName
o.UUIDString = op.UUIDString
o.SizeOfBlob = op.SizeOfBlob
o.Blob = op.Blob
op.Rank = o.Rank
op.CalleeUUID = o.CalleeUUID
op.HostName = o.HostName
op.UUIDString = o.UUIDString
op.SizeOfBlob = o.SizeOfBlob
op.Blob = o.Blob
return op
}

Expand Down Expand Up @@ -1189,7 +1189,7 @@ func (o *PokeResponse) xxx_ToOp(ctx context.Context, op *xxx_PokeOperation) *xxx
if o == nil {
return op
}
o.Return = op.Return
op.Return = o.Return
return op
}

Expand Down Expand Up @@ -1599,16 +1599,16 @@ func (o *BuildContextRequest) xxx_ToOp(ctx context.Context, op *xxx_BuildContext
if o == nil {
return op
}
o.Rank = op.Rank
o.BindVersionSet = op.BindVersionSet
o.CalleeUUID = op.CalleeUUID
o.HostName = op.HostName
o.UUIDString = op.UUIDString
o.GUIDIn = op.GUIDIn
o.GUIDOut = op.GUIDOut
o.BoundVersionSet = op.BoundVersionSet
o.SizeOfBlob = op.SizeOfBlob
o.Blob = op.Blob
op.Rank = o.Rank
op.BindVersionSet = o.BindVersionSet
op.CalleeUUID = o.CalleeUUID
op.HostName = o.HostName
op.UUIDString = o.UUIDString
op.GUIDIn = o.GUIDIn
op.GUIDOut = o.GUIDOut
op.BoundVersionSet = o.BoundVersionSet
op.SizeOfBlob = o.SizeOfBlob
op.Blob = o.Blob
return op
}

Expand Down Expand Up @@ -1667,10 +1667,10 @@ func (o *BuildContextResponse) xxx_ToOp(ctx context.Context, op *xxx_BuildContex
if o == nil {
return op
}
o.GUIDOut = op.GUIDOut
o.BoundVersionSet = op.BoundVersionSet
o.Handle = op.Handle
o.Return = op.Return
op.GUIDOut = o.GUIDOut
op.BoundVersionSet = o.BoundVersionSet
op.Handle = o.Handle
op.Return = o.Return
return op
}

Expand Down Expand Up @@ -1863,10 +1863,10 @@ func (o *NegotiateResourcesRequest) xxx_ToOp(ctx context.Context, op *xxx_Negoti
if o == nil {
return op
}
o.Context = op.Context
o.ResourceType = op.ResourceType
o.RequestedCount = op.RequestedCount
o.AcceptedCount = op.AcceptedCount
op.Context = o.Context
op.ResourceType = o.ResourceType
op.RequestedCount = o.RequestedCount
op.AcceptedCount = o.AcceptedCount
return op
}

Expand Down Expand Up @@ -1909,8 +1909,8 @@ func (o *NegotiateResourcesResponse) xxx_ToOp(ctx context.Context, op *xxx_Negot
if o == nil {
return op
}
o.AcceptedCount = op.AcceptedCount
o.Return = op.Return
op.AcceptedCount = o.AcceptedCount
op.Return = o.Return
return op
}

Expand Down Expand Up @@ -2117,10 +2117,10 @@ func (o *SendReceiveRequest) xxx_ToOp(ctx context.Context, op *xxx_SendReceiveOp
if o == nil {
return op
}
o.Context = op.Context
o.MessagesCount = op.MessagesCount
o.SizeOfBoxCar = op.SizeOfBoxCar
o.BoxCar = op.BoxCar
op.Context = o.Context
op.MessagesCount = o.MessagesCount
op.SizeOfBoxCar = o.SizeOfBoxCar
op.BoxCar = o.BoxCar
return op
}

Expand Down Expand Up @@ -2158,7 +2158,7 @@ func (o *SendReceiveResponse) xxx_ToOp(ctx context.Context, op *xxx_SendReceiveO
if o == nil {
return op
}
o.Return = op.Return
op.Return = o.Return
return op
}

Expand Down Expand Up @@ -2359,9 +2359,9 @@ func (o *TearDownContextRequest) xxx_ToOp(ctx context.Context, op *xxx_TearDownC
if o == nil {
return op
}
o.ContextHandle = op.ContextHandle
o.Rank = op.Rank
o.TearDownType = op.TearDownType
op.ContextHandle = o.ContextHandle
op.Rank = o.Rank
op.TearDownType = o.TearDownType
return op
}

Expand Down Expand Up @@ -2403,8 +2403,8 @@ func (o *TearDownContextResponse) xxx_ToOp(ctx context.Context, op *xxx_TearDown
if o == nil {
return op
}
o.ContextHandle = op.ContextHandle
o.Return = op.Return
op.ContextHandle = o.ContextHandle
op.Return = o.Return
return op
}

Expand Down Expand Up @@ -2548,8 +2548,8 @@ func (o *BeginTearDownRequest) xxx_ToOp(ctx context.Context, op *xxx_BeginTearDo
if o == nil {
return op
}
o.ContextHandle = op.ContextHandle
o.TearDownType = op.TearDownType
op.ContextHandle = o.ContextHandle
op.TearDownType = o.TearDownType
return op
}

Expand Down Expand Up @@ -2585,7 +2585,7 @@ func (o *BeginTearDownResponse) xxx_ToOp(ctx context.Context, op *xxx_BeginTearD
if o == nil {
return op
}
o.Return = op.Return
op.Return = o.Return
return op
}

Expand Down Expand Up @@ -2836,12 +2836,12 @@ func (o *PokeWRequest) xxx_ToOp(ctx context.Context, op *xxx_PokeWOperation) *xx
if o == nil {
return op
}
o.Rank = op.Rank
o.CalleeUUID = op.CalleeUUID
o.HostName = op.HostName
o.UUIDString = op.UUIDString
o.SizeOfBlob = op.SizeOfBlob
o.Blob = op.Blob
op.Rank = o.Rank
op.CalleeUUID = o.CalleeUUID
op.HostName = o.HostName
op.UUIDString = o.UUIDString
op.SizeOfBlob = o.SizeOfBlob
op.Blob = o.Blob
return op
}

Expand Down Expand Up @@ -2881,7 +2881,7 @@ func (o *PokeWResponse) xxx_ToOp(ctx context.Context, op *xxx_PokeWOperation) *x
if o == nil {
return op
}
o.Return = op.Return
op.Return = o.Return
return op
}

Expand Down Expand Up @@ -3285,16 +3285,16 @@ func (o *BuildContextWRequest) xxx_ToOp(ctx context.Context, op *xxx_BuildContex
if o == nil {
return op
}
o.Rank = op.Rank
o.BindVersionSet = op.BindVersionSet
o.CalleeUUID = op.CalleeUUID
o.HostName = op.HostName
o.UUIDString = op.UUIDString
o.GUIDIn = op.GUIDIn
o.GUIDOut = op.GUIDOut
o.BoundVersionSet = op.BoundVersionSet
o.SizeOfBlob = op.SizeOfBlob
o.Blob = op.Blob
op.Rank = o.Rank
op.BindVersionSet = o.BindVersionSet
op.CalleeUUID = o.CalleeUUID
op.HostName = o.HostName
op.UUIDString = o.UUIDString
op.GUIDIn = o.GUIDIn
op.GUIDOut = o.GUIDOut
op.BoundVersionSet = o.BoundVersionSet
op.SizeOfBlob = o.SizeOfBlob
op.Blob = o.Blob
return op
}

Expand Down Expand Up @@ -3353,10 +3353,10 @@ func (o *BuildContextWResponse) xxx_ToOp(ctx context.Context, op *xxx_BuildConte
if o == nil {
return op
}
o.GUIDOut = op.GUIDOut
o.BoundVersionSet = op.BoundVersionSet
o.Handle = op.Handle
o.Return = op.Return
op.GUIDOut = o.GUIDOut
op.BoundVersionSet = o.BoundVersionSet
op.Handle = o.Handle
op.Return = o.Return
return op
}

Expand Down
Loading

0 comments on commit b014636

Please sign in to comment.