@@ -33,7 +33,7 @@ func (b *ExtantBool) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
3333 return nil
3434}
3535
36- type OKResp struct {
36+ type OKReply struct {
3737 OK ExtantBool `xml:"ok"`
3838}
3939
@@ -95,8 +95,7 @@ type GetConfigReq struct {
9595}
9696
9797type GetConfigReply struct {
98- XMLName xml.Name `xml:"data"`
99- Config []byte `xml:",innerxml"`
98+ Data []byte `xml:"data"`
10099}
101100
102101// GetConfig implements the <get-config> rpc operation defined in [RFC6241 7.1].
@@ -113,7 +112,7 @@ func (s *Session) GetConfig(ctx context.Context, source Datastore) ([]byte, erro
113112 return nil , err
114113 }
115114
116- return resp .Config , nil
115+ return resp .Data , nil
117116}
118117
119118// MergeStrategy defines the strategies for merging configuration in a
@@ -272,7 +271,7 @@ func (s *Session) EditConfig(ctx context.Context, target Datastore, config any,
272271 opt .apply (& req )
273272 }
274273
275- var resp OKResp
274+ var resp OKReply
276275 return s .Call (ctx , & req , & resp )
277276}
278277
@@ -297,7 +296,7 @@ func (s *Session) CopyConfig(ctx context.Context, source, target any) error {
297296 Target : target ,
298297 }
299298
300- var resp OKResp
299+ var resp OKReply
301300 return s .Call (ctx , & req , & resp )
302301}
303302
@@ -311,7 +310,7 @@ func (s *Session) DeleteConfig(ctx context.Context, target Datastore) error {
311310 Target : target ,
312311 }
313312
314- var resp OKResp
313+ var resp OKReply
315314 return s .Call (ctx , & req , & resp )
316315}
317316
@@ -326,7 +325,7 @@ func (s *Session) Lock(ctx context.Context, target Datastore) error {
326325 Target : target ,
327326 }
328327
329- var resp OKResp
328+ var resp OKReply
330329 return s .Call (ctx , & req , & resp )
331330}
332331
@@ -336,7 +335,7 @@ func (s *Session) Unlock(ctx context.Context, target Datastore) error {
336335 Target : target ,
337336 }
338337
339- var resp OKResp
338+ var resp OKReply
340339 return s .Call (ctx , & req , & resp )
341340}
342341
@@ -356,7 +355,7 @@ func (s *Session) KillSession(ctx context.Context, sessionID uint32) error {
356355 SessionID : sessionID ,
357356 }
358357
359- var resp OKResp
358+ var resp OKReply
360359 return s .Call (ctx , & req , & resp )
361360}
362361
@@ -370,7 +369,7 @@ func (s *Session) Validate(ctx context.Context, source any) error {
370369 Source : source ,
371370 }
372371
373- var resp OKResp
372+ var resp OKReply
374373 return s .Call (ctx , & req , & resp )
375374}
376375
@@ -444,7 +443,7 @@ func (s *Session) Commit(ctx context.Context, opts ...CommitOption) error {
444443 return fmt .Errorf ("PersistID cannot be used with Confirmed/ConfirmedTimeout or Persist options" )
445444 }
446445
447- var resp OKResp
446+ var resp OKReply
448447 return s .Call (ctx , & req , & resp )
449448}
450449
@@ -466,7 +465,7 @@ func (s *Session) CancelCommit(ctx context.Context, opts ...CancelCommitOption)
466465 opt .applyCancelCommit (& req )
467466 }
468467
469- var resp OKResp
468+ var resp OKReply
470469 return s .Call (ctx , & req , & resp )
471470}
472471
@@ -509,6 +508,6 @@ func (s *Session) CreateSubscription(ctx context.Context, opts ...CreateSubscrip
509508 }
510509 // TODO: eventual custom notifications rpc logic, e.g. create subscription only if notification capability is present
511510
512- var resp OKResp
511+ var resp OKReply
513512 return s .Call (ctx , & req , & resp )
514513}
0 commit comments