/
auto.go
4111 lines (3324 loc) · 115 KB
/
auto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by "./generator ./system/fi.w1.wpa_supplicant1"; DO NOT EDIT.
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
package wpa_supplicant1
import "errors"
import "fmt"
import "github.com/godbus/dbus/v5"
import "github.com/linuxdeepin/go-lib/dbusutil"
import "github.com/linuxdeepin/go-lib/dbusutil/proxy"
import "unsafe"
type WPASupplicant interface {
wpaSupplicant // interface fi.w1.wpa_supplicant1
proxy.Object
}
type objectWPASupplicant struct {
interfaceWpaSupplicant // interface fi.w1.wpa_supplicant1
proxy.ImplObject
}
func NewWPASupplicant(conn *dbus.Conn) WPASupplicant {
obj := new(objectWPASupplicant)
obj.ImplObject.Init_(conn, "fi.w1.wpa_supplicant1", "/fi/w1/wpa_supplicant1")
return obj
}
type wpaSupplicant interface {
GoCreateInterface(flags dbus.Flags, ch chan *dbus.Call, args map[string]dbus.Variant) *dbus.Call
CreateInterface(flags dbus.Flags, args map[string]dbus.Variant) (dbus.ObjectPath, error)
GoRemoveInterface(flags dbus.Flags, ch chan *dbus.Call, path dbus.ObjectPath) *dbus.Call
RemoveInterface(flags dbus.Flags, path dbus.ObjectPath) error
GoGetInterface(flags dbus.Flags, ch chan *dbus.Call, ifname string) *dbus.Call
GetInterface(flags dbus.Flags, ifname string) (dbus.ObjectPath, error)
GoExpectDisconnect(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
ExpectDisconnect(flags dbus.Flags) error
ConnectSignalInterfaceAdded(cb func(path dbus.ObjectPath, properties map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error)
ConnectSignalInterfaceRemoved(cb func(path dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)
ConnectSignalPropertiesChanged(cb func(properties map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error)
DebugLevel() proxy.PropString
DebugTimestamp() proxy.PropBool
DebugShowKeys() proxy.PropBool
Interfaces() proxy.PropObjectPathArray
EapMethods() proxy.PropStringArray
Capabilities() proxy.PropStringArray
WFDIEs() proxy.PropByteArray
}
type interfaceWpaSupplicant struct{}
func (v *interfaceWpaSupplicant) GetObject_() *proxy.ImplObject {
return (*proxy.ImplObject)(unsafe.Pointer(v))
}
func (*interfaceWpaSupplicant) GetInterfaceName_() string {
return "fi.w1.wpa_supplicant1"
}
// method CreateInterface
func (v *interfaceWpaSupplicant) GoCreateInterface(flags dbus.Flags, ch chan *dbus.Call, args map[string]dbus.Variant) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".CreateInterface", flags, ch, args)
}
func (*interfaceWpaSupplicant) StoreCreateInterface(call *dbus.Call) (path dbus.ObjectPath, err error) {
err = call.Store(&path)
return
}
func (v *interfaceWpaSupplicant) CreateInterface(flags dbus.Flags, args map[string]dbus.Variant) (dbus.ObjectPath, error) {
return v.StoreCreateInterface(
<-v.GoCreateInterface(flags, make(chan *dbus.Call, 1), args).Done)
}
// method RemoveInterface
func (v *interfaceWpaSupplicant) GoRemoveInterface(flags dbus.Flags, ch chan *dbus.Call, path dbus.ObjectPath) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".RemoveInterface", flags, ch, path)
}
func (v *interfaceWpaSupplicant) RemoveInterface(flags dbus.Flags, path dbus.ObjectPath) error {
return (<-v.GoRemoveInterface(flags, make(chan *dbus.Call, 1), path).Done).Err
}
// method GetInterface
func (v *interfaceWpaSupplicant) GoGetInterface(flags dbus.Flags, ch chan *dbus.Call, ifname string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".GetInterface", flags, ch, ifname)
}
func (*interfaceWpaSupplicant) StoreGetInterface(call *dbus.Call) (path dbus.ObjectPath, err error) {
err = call.Store(&path)
return
}
func (v *interfaceWpaSupplicant) GetInterface(flags dbus.Flags, ifname string) (dbus.ObjectPath, error) {
return v.StoreGetInterface(
<-v.GoGetInterface(flags, make(chan *dbus.Call, 1), ifname).Done)
}
// method ExpectDisconnect
func (v *interfaceWpaSupplicant) GoExpectDisconnect(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".ExpectDisconnect", flags, ch)
}
func (v *interfaceWpaSupplicant) ExpectDisconnect(flags dbus.Flags) error {
return (<-v.GoExpectDisconnect(flags, make(chan *dbus.Call, 1)).Done).Err
}
// signal InterfaceAdded
func (v *interfaceWpaSupplicant) ConnectSignalInterfaceAdded(cb func(path dbus.ObjectPath, properties map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error) {
if cb == nil {
return 0, errors.New("nil callback")
}
obj := v.GetObject_()
rule := fmt.Sprintf(
"type='signal',interface='%s',member='%s',path='%s',sender='%s'",
v.GetInterfaceName_(), "InterfaceAdded", obj.Path_(), obj.ServiceName_())
sigRule := &dbusutil.SignalRule{
Path: obj.Path_(),
Name: v.GetInterfaceName_() + ".InterfaceAdded",
}
handlerFunc := func(sig *dbus.Signal) {
var path dbus.ObjectPath
var properties map[string]dbus.Variant
err := dbus.Store(sig.Body, &path, &properties)
if err == nil {
cb(path, properties)
}
}
return obj.ConnectSignal_(rule, sigRule, handlerFunc)
}
// signal InterfaceRemoved
func (v *interfaceWpaSupplicant) ConnectSignalInterfaceRemoved(cb func(path dbus.ObjectPath)) (dbusutil.SignalHandlerId, error) {
if cb == nil {
return 0, errors.New("nil callback")
}
obj := v.GetObject_()
rule := fmt.Sprintf(
"type='signal',interface='%s',member='%s',path='%s',sender='%s'",
v.GetInterfaceName_(), "InterfaceRemoved", obj.Path_(), obj.ServiceName_())
sigRule := &dbusutil.SignalRule{
Path: obj.Path_(),
Name: v.GetInterfaceName_() + ".InterfaceRemoved",
}
handlerFunc := func(sig *dbus.Signal) {
var path dbus.ObjectPath
err := dbus.Store(sig.Body, &path)
if err == nil {
cb(path)
}
}
return obj.ConnectSignal_(rule, sigRule, handlerFunc)
}
// signal PropertiesChanged
func (v *interfaceWpaSupplicant) ConnectSignalPropertiesChanged(cb func(properties map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error) {
if cb == nil {
return 0, errors.New("nil callback")
}
obj := v.GetObject_()
rule := fmt.Sprintf(
"type='signal',interface='%s',member='%s',path='%s',sender='%s'",
v.GetInterfaceName_(), "PropertiesChanged", obj.Path_(), obj.ServiceName_())
sigRule := &dbusutil.SignalRule{
Path: obj.Path_(),
Name: v.GetInterfaceName_() + ".PropertiesChanged",
}
handlerFunc := func(sig *dbus.Signal) {
var properties map[string]dbus.Variant
err := dbus.Store(sig.Body, &properties)
if err == nil {
cb(properties)
}
}
return obj.ConnectSignal_(rule, sigRule, handlerFunc)
}
// property DebugLevel s
func (v *interfaceWpaSupplicant) DebugLevel() proxy.PropString {
return &proxy.ImplPropString{
Impl: v,
Name: "DebugLevel",
}
}
// property DebugTimestamp b
func (v *interfaceWpaSupplicant) DebugTimestamp() proxy.PropBool {
return &proxy.ImplPropBool{
Impl: v,
Name: "DebugTimestamp",
}
}
// property DebugShowKeys b
func (v *interfaceWpaSupplicant) DebugShowKeys() proxy.PropBool {
return &proxy.ImplPropBool{
Impl: v,
Name: "DebugShowKeys",
}
}
// property Interfaces ao
func (v *interfaceWpaSupplicant) Interfaces() proxy.PropObjectPathArray {
return &proxy.ImplPropObjectPathArray{
Impl: v,
Name: "Interfaces",
}
}
// property EapMethods as
func (v *interfaceWpaSupplicant) EapMethods() proxy.PropStringArray {
return &proxy.ImplPropStringArray{
Impl: v,
Name: "EapMethods",
}
}
// property Capabilities as
func (v *interfaceWpaSupplicant) Capabilities() proxy.PropStringArray {
return &proxy.ImplPropStringArray{
Impl: v,
Name: "Capabilities",
}
}
// property WFDIEs ay
func (v *interfaceWpaSupplicant) WFDIEs() proxy.PropByteArray {
return &proxy.ImplPropByteArray{
Impl: v,
Name: "WFDIEs",
}
}
type Interface interface {
Interface() interface1 // interface fi.w1.wpa_supplicant1.Interface
WPS() interfaceWPS // interface fi.w1.wpa_supplicant1.Interface.WPS
P2PDevice() interfaceP2PDevice // interface fi.w1.wpa_supplicant1.Interface.P2PDevice
proxy.Object
}
type objectInterface struct {
interfaceInterface1 // interface fi.w1.wpa_supplicant1.Interface
interfaceInterfaceWPS // interface fi.w1.wpa_supplicant1.Interface.WPS
interfaceInterfaceP2PDevice // interface fi.w1.wpa_supplicant1.Interface.P2PDevice
proxy.ImplObject
}
func NewInterface(conn *dbus.Conn, path dbus.ObjectPath) (Interface, error) {
if !path.IsValid() {
return nil, errors.New("path is invalid")
}
obj := new(objectInterface)
obj.ImplObject.Init_(conn, "fi.w1.wpa_supplicant1", path)
return obj, nil
}
func (obj *objectInterface) Interface() interface1 {
return &obj.interfaceInterface1
}
type interface1 interface {
GoScan(flags dbus.Flags, ch chan *dbus.Call, args map[string]dbus.Variant) *dbus.Call
Scan(flags dbus.Flags, args map[string]dbus.Variant) error
GoSignalPoll(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
SignalPoll(flags dbus.Flags) (map[string]dbus.Variant, error)
GoDisconnect(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
Disconnect(flags dbus.Flags) error
GoAddNetwork(flags dbus.Flags, ch chan *dbus.Call, args map[string]dbus.Variant) *dbus.Call
AddNetwork(flags dbus.Flags, args map[string]dbus.Variant) (dbus.ObjectPath, error)
GoReassociate(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
Reassociate(flags dbus.Flags) error
GoReattach(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
Reattach(flags dbus.Flags) error
GoReconnect(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
Reconnect(flags dbus.Flags) error
GoRemoveNetwork(flags dbus.Flags, ch chan *dbus.Call, path dbus.ObjectPath) *dbus.Call
RemoveNetwork(flags dbus.Flags, path dbus.ObjectPath) error
GoRemoveAllNetworks(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
RemoveAllNetworks(flags dbus.Flags) error
GoSelectNetwork(flags dbus.Flags, ch chan *dbus.Call, path dbus.ObjectPath) *dbus.Call
SelectNetwork(flags dbus.Flags, path dbus.ObjectPath) error
GoNetworkReply(flags dbus.Flags, ch chan *dbus.Call, path dbus.ObjectPath, field string, value string) *dbus.Call
NetworkReply(flags dbus.Flags, path dbus.ObjectPath, field string, value string) error
GoAddBlob(flags dbus.Flags, ch chan *dbus.Call, name string, data []uint8) *dbus.Call
AddBlob(flags dbus.Flags, name string, data []uint8) error
GoGetBlob(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call
GetBlob(flags dbus.Flags, name string) ([]uint8, error)
GoRemoveBlob(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call
RemoveBlob(flags dbus.Flags, name string) error
GoSetPKCS11EngineAndModulePath(flags dbus.Flags, ch chan *dbus.Call, pkcs11_engine_path string, pkcs11_module_path string) *dbus.Call
SetPKCS11EngineAndModulePath(flags dbus.Flags, pkcs11_engine_path string, pkcs11_module_path string) error
GoFlushBSS(flags dbus.Flags, ch chan *dbus.Call, age uint32) *dbus.Call
FlushBSS(flags dbus.Flags, age uint32) error
GoSubscribeProbeReq(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
SubscribeProbeReq(flags dbus.Flags) error
GoUnsubscribeProbeReq(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
UnsubscribeProbeReq(flags dbus.Flags) error
GoEAPLogoff(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
EAPLogoff(flags dbus.Flags) error
GoEAPLogon(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
EAPLogon(flags dbus.Flags) error
GoAutoScan(flags dbus.Flags, ch chan *dbus.Call, arg string) *dbus.Call
AutoScan(flags dbus.Flags, arg string) error
GoTDLSDiscover(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call
TDLSDiscover(flags dbus.Flags, peer_address string) error
GoTDLSSetup(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call
TDLSSetup(flags dbus.Flags, peer_address string) error
GoTDLSStatus(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call
TDLSStatus(flags dbus.Flags, peer_address string) (string, error)
GoTDLSTeardown(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call
TDLSTeardown(flags dbus.Flags, peer_address string) error
GoTDLSChannelSwitch(flags dbus.Flags, ch chan *dbus.Call, args map[string]dbus.Variant) *dbus.Call
TDLSChannelSwitch(flags dbus.Flags, args map[string]dbus.Variant) error
GoTDLSCancelChannelSwitch(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call
TDLSCancelChannelSwitch(flags dbus.Flags, peer_address string) error
GoVendorElemAdd(flags dbus.Flags, ch chan *dbus.Call, frame_id int32, ielems []uint8) *dbus.Call
VendorElemAdd(flags dbus.Flags, frame_id int32, ielems []uint8) error
GoVendorElemGet(flags dbus.Flags, ch chan *dbus.Call, frame_id int32) *dbus.Call
VendorElemGet(flags dbus.Flags, frame_id int32) ([]uint8, error)
GoVendorElemRem(flags dbus.Flags, ch chan *dbus.Call, frame_id int32, ielems []uint8) *dbus.Call
VendorElemRem(flags dbus.Flags, frame_id int32, ielems []uint8) error
GoSaveConfig(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
SaveConfig(flags dbus.Flags) error
GoAbortScan(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call
AbortScan(flags dbus.Flags) error
ConnectScanDone(cb func(success bool)) (dbusutil.SignalHandlerId, error)
ConnectBSSAdded(cb func(path dbus.ObjectPath, properties map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error)
ConnectBSSRemoved(cb func(path dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)
ConnectBlobAdded(cb func(name string)) (dbusutil.SignalHandlerId, error)
ConnectBlobRemoved(cb func(name string)) (dbusutil.SignalHandlerId, error)
ConnectNetworkAdded(cb func(path dbus.ObjectPath, properties map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error)
ConnectNetworkRemoved(cb func(path dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)
ConnectNetworkSelected(cb func(path dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)
ConnectSignalPropertiesChanged(cb func(properties map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error)
ConnectProbeRequest(cb func(args map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error)
ConnectCertification(cb func(certification map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error)
ConnectEAP(cb func(status string, parameter string)) (dbusutil.SignalHandlerId, error)
ConnectStaAuthorized(cb func(name string)) (dbusutil.SignalHandlerId, error)
ConnectStaDeauthorized(cb func(name string)) (dbusutil.SignalHandlerId, error)
ConnectStationAdded(cb func(path dbus.ObjectPath, properties map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error)
ConnectStationRemoved(cb func(path dbus.ObjectPath)) (dbusutil.SignalHandlerId, error)
ConnectNetworkRequest(cb func(path dbus.ObjectPath, field string, text string)) (dbusutil.SignalHandlerId, error)
Capabilities() MapStrVariant
State() proxy.PropString
Scanning() proxy.PropBool
ApScan() proxy.PropUint32
BSSExpireAge() proxy.PropUint32
BSSExpireCount() proxy.PropUint32
Country() proxy.PropString
Ifname() proxy.PropString
Driver() proxy.PropString
BridgeIfname() proxy.PropString
ConfigFile() proxy.PropString
CurrentBSS() proxy.PropObjectPath
CurrentNetwork() proxy.PropObjectPath
CurrentAuthMode() proxy.PropString
Blobs() PropInterfaceBlobs
BSSs() proxy.PropObjectPathArray
Networks() proxy.PropObjectPathArray
FastReauth() proxy.PropBool
ScanInterval() proxy.PropInt32
PKCS11EnginePath() proxy.PropString
PKCS11ModulePath() proxy.PropString
DisconnectReason() proxy.PropInt32
AuthStatusCode() proxy.PropInt32
AssocStatusCode() proxy.PropInt32
Stations() proxy.PropObjectPathArray
CtrlInterface() proxy.PropString
CtrlInterfaceGroup() proxy.PropString
EapolVersion() proxy.PropString
Bgscan() proxy.PropString
DisableScanOffload() proxy.PropString
OpenscEnginePath() proxy.PropString
OpensslCiphers() proxy.PropString
PcscReader() proxy.PropString
PcscPin() proxy.PropString
ExternalSim() proxy.PropString
DriverParam() proxy.PropString
Dot11RSNAConfigPMKLifetime() proxy.PropString
Dot11RSNAConfigPMKReauthThreshold() proxy.PropString
Dot11RSNAConfigSATimeout() proxy.PropString
UpdateConfig() proxy.PropString
Uuid() proxy.PropString
AutoUuid() proxy.PropString
DeviceName() proxy.PropString
Manufacturer() proxy.PropString
ModelName() proxy.PropString
ModelNumber() proxy.PropString
SerialNumber() proxy.PropString
DeviceType() proxy.PropString
OsVersion() proxy.PropString
ConfigMethods() proxy.PropString
WpsCredProcessing() proxy.PropString
WpsVendorExtM1() proxy.PropString
SecDeviceType() proxy.PropString
P2pListenRegClass() proxy.PropString
P2pListenChannel() proxy.PropString
P2pOperRegClass() proxy.PropString
P2pOperChannel() proxy.PropString
P2pGoIntent() proxy.PropString
P2pSsidPostfix() proxy.PropString
PersistentReconnect() proxy.PropString
P2pIntraBss() proxy.PropString
P2pGroupIdle() proxy.PropString
P2pGoFreqChangePolicy() proxy.PropString
P2pPassphraseLen() proxy.PropString
P2pPrefChan() proxy.PropString
P2pNoGoFreq() proxy.PropString
P2pAddCliChan() proxy.PropString
P2pOptimizeListenChan() proxy.PropString
P2pGoHt40() proxy.PropString
P2pGoVht() proxy.PropString
P2pGoHe() proxy.PropString
P2pDisabled() proxy.PropString
P2pGoCtwindow() proxy.PropString
P2pNoGroupIface() proxy.PropString
P2pIgnoreSharedFreq() proxy.PropString
IpAddrGo() proxy.PropString
IpAddrMask() proxy.PropString
IpAddrStart() proxy.PropString
IpAddrEnd() proxy.PropString
P2pCliProbe() proxy.PropString
P2pDeviceRandomMacAddr() proxy.PropString
P2pDevicePersistentMacAddr() proxy.PropString
P2pInterfaceRandomMacAddr() proxy.PropString
BssMaxCount() proxy.PropString
FilterSsids() proxy.PropString
FilterRssi() proxy.PropString
MaxNumSta() proxy.PropString
ApIsolate() proxy.PropString
DisassocLowAck() proxy.PropString
Hs20() proxy.PropString
Interworking() proxy.PropString
Hessid() proxy.PropString
AccessNetworkType() proxy.PropString
GoInterworking() proxy.PropString
GoAccessNetworkType() proxy.PropString
GoInternet() proxy.PropString
GoVenueGroup() proxy.PropString
GoVenueType() proxy.PropString
PbcInM1() proxy.PropString
Autoscan() proxy.PropString
WpsNfcDevPwId() proxy.PropString
WpsNfcDhPubkey() proxy.PropString
WpsNfcDhPrivkey() proxy.PropString
WpsNfcDevPw() proxy.PropString
ExtPasswordBackend() proxy.PropString
P2pGoMaxInactivity() proxy.PropString
AutoInterworking() proxy.PropString
Okc() proxy.PropString
Pmf() proxy.PropString
SaeGroups() proxy.PropString
DtimPeriod() proxy.PropString
BeaconInt() proxy.PropString
ApVendorElements() proxy.PropString
IgnoreOldScanRes() proxy.PropString
FreqList() proxy.PropString
ScanCurFreq() proxy.PropString
SchedScanInterval() proxy.PropString
SchedScanStartDelay() proxy.PropString
TdlsExternalControl() proxy.PropString
OsuDir() proxy.PropString
WowlanTriggers() proxy.PropString
P2pSearchDelay() proxy.PropString
MacAddr() proxy.PropString
RandAddrLifetime() proxy.PropString
PreassocMacAddr() proxy.PropString
KeyMgmtOffload() proxy.PropString
PassiveScan() proxy.PropString
ReassocSameBssOptim() proxy.PropString
WpsPriority() proxy.PropString
FstGroupId() proxy.PropString
FstPriority() proxy.PropString
FstLlt() proxy.PropString
CertInCb() proxy.PropString
WpaRscRelaxation() proxy.PropString
SchedScanPlans() proxy.PropString
GasAddress3() proxy.PropString
FtmResponder() proxy.PropString
FtmInitiator() proxy.PropString
GasRandAddrLifetime() proxy.PropString
GasRandMacAddr() proxy.PropString
DppConfigProcessing() proxy.PropString
ColocIntfReporting() proxy.PropString
}
type interfaceInterface1 struct{}
func (v *interfaceInterface1) GetObject_() *proxy.ImplObject {
return (*proxy.ImplObject)(unsafe.Pointer(v))
}
func (*interfaceInterface1) GetInterfaceName_() string {
return "fi.w1.wpa_supplicant1.Interface"
}
// method Scan
func (v *interfaceInterface1) GoScan(flags dbus.Flags, ch chan *dbus.Call, args map[string]dbus.Variant) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".Scan", flags, ch, args)
}
func (v *interfaceInterface1) Scan(flags dbus.Flags, args map[string]dbus.Variant) error {
return (<-v.GoScan(flags, make(chan *dbus.Call, 1), args).Done).Err
}
// method SignalPoll
func (v *interfaceInterface1) GoSignalPoll(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SignalPoll", flags, ch)
}
func (*interfaceInterface1) StoreSignalPoll(call *dbus.Call) (args map[string]dbus.Variant, err error) {
err = call.Store(&args)
return
}
func (v *interfaceInterface1) SignalPoll(flags dbus.Flags) (map[string]dbus.Variant, error) {
return v.StoreSignalPoll(
<-v.GoSignalPoll(flags, make(chan *dbus.Call, 1)).Done)
}
// method Disconnect
func (v *interfaceInterface1) GoDisconnect(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".Disconnect", flags, ch)
}
func (v *interfaceInterface1) Disconnect(flags dbus.Flags) error {
return (<-v.GoDisconnect(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method AddNetwork
func (v *interfaceInterface1) GoAddNetwork(flags dbus.Flags, ch chan *dbus.Call, args map[string]dbus.Variant) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".AddNetwork", flags, ch, args)
}
func (*interfaceInterface1) StoreAddNetwork(call *dbus.Call) (path dbus.ObjectPath, err error) {
err = call.Store(&path)
return
}
func (v *interfaceInterface1) AddNetwork(flags dbus.Flags, args map[string]dbus.Variant) (dbus.ObjectPath, error) {
return v.StoreAddNetwork(
<-v.GoAddNetwork(flags, make(chan *dbus.Call, 1), args).Done)
}
// method Reassociate
func (v *interfaceInterface1) GoReassociate(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".Reassociate", flags, ch)
}
func (v *interfaceInterface1) Reassociate(flags dbus.Flags) error {
return (<-v.GoReassociate(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method Reattach
func (v *interfaceInterface1) GoReattach(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".Reattach", flags, ch)
}
func (v *interfaceInterface1) Reattach(flags dbus.Flags) error {
return (<-v.GoReattach(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method Reconnect
func (v *interfaceInterface1) GoReconnect(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".Reconnect", flags, ch)
}
func (v *interfaceInterface1) Reconnect(flags dbus.Flags) error {
return (<-v.GoReconnect(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method RemoveNetwork
func (v *interfaceInterface1) GoRemoveNetwork(flags dbus.Flags, ch chan *dbus.Call, path dbus.ObjectPath) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".RemoveNetwork", flags, ch, path)
}
func (v *interfaceInterface1) RemoveNetwork(flags dbus.Flags, path dbus.ObjectPath) error {
return (<-v.GoRemoveNetwork(flags, make(chan *dbus.Call, 1), path).Done).Err
}
// method RemoveAllNetworks
func (v *interfaceInterface1) GoRemoveAllNetworks(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".RemoveAllNetworks", flags, ch)
}
func (v *interfaceInterface1) RemoveAllNetworks(flags dbus.Flags) error {
return (<-v.GoRemoveAllNetworks(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method SelectNetwork
func (v *interfaceInterface1) GoSelectNetwork(flags dbus.Flags, ch chan *dbus.Call, path dbus.ObjectPath) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SelectNetwork", flags, ch, path)
}
func (v *interfaceInterface1) SelectNetwork(flags dbus.Flags, path dbus.ObjectPath) error {
return (<-v.GoSelectNetwork(flags, make(chan *dbus.Call, 1), path).Done).Err
}
// method NetworkReply
func (v *interfaceInterface1) GoNetworkReply(flags dbus.Flags, ch chan *dbus.Call, path dbus.ObjectPath, field string, value string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".NetworkReply", flags, ch, path, field, value)
}
func (v *interfaceInterface1) NetworkReply(flags dbus.Flags, path dbus.ObjectPath, field string, value string) error {
return (<-v.GoNetworkReply(flags, make(chan *dbus.Call, 1), path, field, value).Done).Err
}
// method AddBlob
func (v *interfaceInterface1) GoAddBlob(flags dbus.Flags, ch chan *dbus.Call, name string, data []uint8) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".AddBlob", flags, ch, name, data)
}
func (v *interfaceInterface1) AddBlob(flags dbus.Flags, name string, data []uint8) error {
return (<-v.GoAddBlob(flags, make(chan *dbus.Call, 1), name, data).Done).Err
}
// method GetBlob
func (v *interfaceInterface1) GoGetBlob(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".GetBlob", flags, ch, name)
}
func (*interfaceInterface1) StoreGetBlob(call *dbus.Call) (data []uint8, err error) {
err = call.Store(&data)
return
}
func (v *interfaceInterface1) GetBlob(flags dbus.Flags, name string) ([]uint8, error) {
return v.StoreGetBlob(
<-v.GoGetBlob(flags, make(chan *dbus.Call, 1), name).Done)
}
// method RemoveBlob
func (v *interfaceInterface1) GoRemoveBlob(flags dbus.Flags, ch chan *dbus.Call, name string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".RemoveBlob", flags, ch, name)
}
func (v *interfaceInterface1) RemoveBlob(flags dbus.Flags, name string) error {
return (<-v.GoRemoveBlob(flags, make(chan *dbus.Call, 1), name).Done).Err
}
// method SetPKCS11EngineAndModulePath
func (v *interfaceInterface1) GoSetPKCS11EngineAndModulePath(flags dbus.Flags, ch chan *dbus.Call, pkcs11_engine_path string, pkcs11_module_path string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SetPKCS11EngineAndModulePath", flags, ch, pkcs11_engine_path, pkcs11_module_path)
}
func (v *interfaceInterface1) SetPKCS11EngineAndModulePath(flags dbus.Flags, pkcs11_engine_path string, pkcs11_module_path string) error {
return (<-v.GoSetPKCS11EngineAndModulePath(flags, make(chan *dbus.Call, 1), pkcs11_engine_path, pkcs11_module_path).Done).Err
}
// method FlushBSS
func (v *interfaceInterface1) GoFlushBSS(flags dbus.Flags, ch chan *dbus.Call, age uint32) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".FlushBSS", flags, ch, age)
}
func (v *interfaceInterface1) FlushBSS(flags dbus.Flags, age uint32) error {
return (<-v.GoFlushBSS(flags, make(chan *dbus.Call, 1), age).Done).Err
}
// method SubscribeProbeReq
func (v *interfaceInterface1) GoSubscribeProbeReq(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SubscribeProbeReq", flags, ch)
}
func (v *interfaceInterface1) SubscribeProbeReq(flags dbus.Flags) error {
return (<-v.GoSubscribeProbeReq(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method UnsubscribeProbeReq
func (v *interfaceInterface1) GoUnsubscribeProbeReq(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".UnsubscribeProbeReq", flags, ch)
}
func (v *interfaceInterface1) UnsubscribeProbeReq(flags dbus.Flags) error {
return (<-v.GoUnsubscribeProbeReq(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method EAPLogoff
func (v *interfaceInterface1) GoEAPLogoff(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".EAPLogoff", flags, ch)
}
func (v *interfaceInterface1) EAPLogoff(flags dbus.Flags) error {
return (<-v.GoEAPLogoff(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method EAPLogon
func (v *interfaceInterface1) GoEAPLogon(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".EAPLogon", flags, ch)
}
func (v *interfaceInterface1) EAPLogon(flags dbus.Flags) error {
return (<-v.GoEAPLogon(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method AutoScan
func (v *interfaceInterface1) GoAutoScan(flags dbus.Flags, ch chan *dbus.Call, arg string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".AutoScan", flags, ch, arg)
}
func (v *interfaceInterface1) AutoScan(flags dbus.Flags, arg string) error {
return (<-v.GoAutoScan(flags, make(chan *dbus.Call, 1), arg).Done).Err
}
// method TDLSDiscover
func (v *interfaceInterface1) GoTDLSDiscover(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".TDLSDiscover", flags, ch, peer_address)
}
func (v *interfaceInterface1) TDLSDiscover(flags dbus.Flags, peer_address string) error {
return (<-v.GoTDLSDiscover(flags, make(chan *dbus.Call, 1), peer_address).Done).Err
}
// method TDLSSetup
func (v *interfaceInterface1) GoTDLSSetup(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".TDLSSetup", flags, ch, peer_address)
}
func (v *interfaceInterface1) TDLSSetup(flags dbus.Flags, peer_address string) error {
return (<-v.GoTDLSSetup(flags, make(chan *dbus.Call, 1), peer_address).Done).Err
}
// method TDLSStatus
func (v *interfaceInterface1) GoTDLSStatus(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".TDLSStatus", flags, ch, peer_address)
}
func (*interfaceInterface1) StoreTDLSStatus(call *dbus.Call) (status string, err error) {
err = call.Store(&status)
return
}
func (v *interfaceInterface1) TDLSStatus(flags dbus.Flags, peer_address string) (string, error) {
return v.StoreTDLSStatus(
<-v.GoTDLSStatus(flags, make(chan *dbus.Call, 1), peer_address).Done)
}
// method TDLSTeardown
func (v *interfaceInterface1) GoTDLSTeardown(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".TDLSTeardown", flags, ch, peer_address)
}
func (v *interfaceInterface1) TDLSTeardown(flags dbus.Flags, peer_address string) error {
return (<-v.GoTDLSTeardown(flags, make(chan *dbus.Call, 1), peer_address).Done).Err
}
// method TDLSChannelSwitch
func (v *interfaceInterface1) GoTDLSChannelSwitch(flags dbus.Flags, ch chan *dbus.Call, args map[string]dbus.Variant) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".TDLSChannelSwitch", flags, ch, args)
}
func (v *interfaceInterface1) TDLSChannelSwitch(flags dbus.Flags, args map[string]dbus.Variant) error {
return (<-v.GoTDLSChannelSwitch(flags, make(chan *dbus.Call, 1), args).Done).Err
}
// method TDLSCancelChannelSwitch
func (v *interfaceInterface1) GoTDLSCancelChannelSwitch(flags dbus.Flags, ch chan *dbus.Call, peer_address string) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".TDLSCancelChannelSwitch", flags, ch, peer_address)
}
func (v *interfaceInterface1) TDLSCancelChannelSwitch(flags dbus.Flags, peer_address string) error {
return (<-v.GoTDLSCancelChannelSwitch(flags, make(chan *dbus.Call, 1), peer_address).Done).Err
}
// method VendorElemAdd
func (v *interfaceInterface1) GoVendorElemAdd(flags dbus.Flags, ch chan *dbus.Call, frame_id int32, ielems []uint8) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".VendorElemAdd", flags, ch, frame_id, ielems)
}
func (v *interfaceInterface1) VendorElemAdd(flags dbus.Flags, frame_id int32, ielems []uint8) error {
return (<-v.GoVendorElemAdd(flags, make(chan *dbus.Call, 1), frame_id, ielems).Done).Err
}
// method VendorElemGet
func (v *interfaceInterface1) GoVendorElemGet(flags dbus.Flags, ch chan *dbus.Call, frame_id int32) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".VendorElemGet", flags, ch, frame_id)
}
func (*interfaceInterface1) StoreVendorElemGet(call *dbus.Call) (ielems []uint8, err error) {
err = call.Store(&ielems)
return
}
func (v *interfaceInterface1) VendorElemGet(flags dbus.Flags, frame_id int32) ([]uint8, error) {
return v.StoreVendorElemGet(
<-v.GoVendorElemGet(flags, make(chan *dbus.Call, 1), frame_id).Done)
}
// method VendorElemRem
func (v *interfaceInterface1) GoVendorElemRem(flags dbus.Flags, ch chan *dbus.Call, frame_id int32, ielems []uint8) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".VendorElemRem", flags, ch, frame_id, ielems)
}
func (v *interfaceInterface1) VendorElemRem(flags dbus.Flags, frame_id int32, ielems []uint8) error {
return (<-v.GoVendorElemRem(flags, make(chan *dbus.Call, 1), frame_id, ielems).Done).Err
}
// method SaveConfig
func (v *interfaceInterface1) GoSaveConfig(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".SaveConfig", flags, ch)
}
func (v *interfaceInterface1) SaveConfig(flags dbus.Flags) error {
return (<-v.GoSaveConfig(flags, make(chan *dbus.Call, 1)).Done).Err
}
// method AbortScan
func (v *interfaceInterface1) GoAbortScan(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call {
return v.GetObject_().Go_(v.GetInterfaceName_()+".AbortScan", flags, ch)
}
func (v *interfaceInterface1) AbortScan(flags dbus.Flags) error {
return (<-v.GoAbortScan(flags, make(chan *dbus.Call, 1)).Done).Err
}
// signal ScanDone
func (v *interfaceInterface1) ConnectScanDone(cb func(success bool)) (dbusutil.SignalHandlerId, error) {
if cb == nil {
return 0, errors.New("nil callback")
}
obj := v.GetObject_()
rule := fmt.Sprintf(
"type='signal',interface='%s',member='%s',path='%s',sender='%s'",
v.GetInterfaceName_(), "ScanDone", obj.Path_(), obj.ServiceName_())
sigRule := &dbusutil.SignalRule{
Path: obj.Path_(),
Name: v.GetInterfaceName_() + ".ScanDone",
}
handlerFunc := func(sig *dbus.Signal) {
var success bool
err := dbus.Store(sig.Body, &success)
if err == nil {
cb(success)
}
}
return obj.ConnectSignal_(rule, sigRule, handlerFunc)
}
// signal BSSAdded
func (v *interfaceInterface1) ConnectBSSAdded(cb func(path dbus.ObjectPath, properties map[string]dbus.Variant)) (dbusutil.SignalHandlerId, error) {
if cb == nil {
return 0, errors.New("nil callback")
}
obj := v.GetObject_()
rule := fmt.Sprintf(
"type='signal',interface='%s',member='%s',path='%s',sender='%s'",
v.GetInterfaceName_(), "BSSAdded", obj.Path_(), obj.ServiceName_())
sigRule := &dbusutil.SignalRule{
Path: obj.Path_(),
Name: v.GetInterfaceName_() + ".BSSAdded",
}
handlerFunc := func(sig *dbus.Signal) {
var path dbus.ObjectPath
var properties map[string]dbus.Variant
err := dbus.Store(sig.Body, &path, &properties)
if err == nil {
cb(path, properties)
}
}
return obj.ConnectSignal_(rule, sigRule, handlerFunc)
}
// signal BSSRemoved
func (v *interfaceInterface1) ConnectBSSRemoved(cb func(path dbus.ObjectPath)) (dbusutil.SignalHandlerId, error) {
if cb == nil {
return 0, errors.New("nil callback")
}
obj := v.GetObject_()
rule := fmt.Sprintf(
"type='signal',interface='%s',member='%s',path='%s',sender='%s'",
v.GetInterfaceName_(), "BSSRemoved", obj.Path_(), obj.ServiceName_())
sigRule := &dbusutil.SignalRule{
Path: obj.Path_(),
Name: v.GetInterfaceName_() + ".BSSRemoved",
}
handlerFunc := func(sig *dbus.Signal) {
var path dbus.ObjectPath
err := dbus.Store(sig.Body, &path)
if err == nil {
cb(path)
}
}
return obj.ConnectSignal_(rule, sigRule, handlerFunc)
}
// signal BlobAdded
func (v *interfaceInterface1) ConnectBlobAdded(cb func(name string)) (dbusutil.SignalHandlerId, error) {
if cb == nil {
return 0, errors.New("nil callback")
}
obj := v.GetObject_()
rule := fmt.Sprintf(
"type='signal',interface='%s',member='%s',path='%s',sender='%s'",
v.GetInterfaceName_(), "BlobAdded", obj.Path_(), obj.ServiceName_())
sigRule := &dbusutil.SignalRule{
Path: obj.Path_(),
Name: v.GetInterfaceName_() + ".BlobAdded",
}
handlerFunc := func(sig *dbus.Signal) {
var name string
err := dbus.Store(sig.Body, &name)
if err == nil {
cb(name)
}
}
return obj.ConnectSignal_(rule, sigRule, handlerFunc)
}
// signal BlobRemoved
func (v *interfaceInterface1) ConnectBlobRemoved(cb func(name string)) (dbusutil.SignalHandlerId, error) {
if cb == nil {
return 0, errors.New("nil callback")
}
obj := v.GetObject_()
rule := fmt.Sprintf(
"type='signal',interface='%s',member='%s',path='%s',sender='%s'",
v.GetInterfaceName_(), "BlobRemoved", obj.Path_(), obj.ServiceName_())
sigRule := &dbusutil.SignalRule{
Path: obj.Path_(),
Name: v.GetInterfaceName_() + ".BlobRemoved",
}
handlerFunc := func(sig *dbus.Signal) {
var name string
err := dbus.Store(sig.Body, &name)
if err == nil {
cb(name)
}
}
return obj.ConnectSignal_(rule, sigRule, handlerFunc)
}