| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: iwlwifi_pci_rescan.proto |
| |
| package wifi |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| empty "github.com/golang/protobuf/ptypes/empty" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| func init() { proto.RegisterFile("iwlwifi_pci_rescan.proto", fileDescriptor_0aafaa10ead59a4f) } |
| |
| var fileDescriptor_0aafaa10ead59a4f = []byte{ |
| // 186 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0xce, 0xb1, 0x8a, 0xc2, 0x40, |
| 0x10, 0xc6, 0xf1, 0xab, 0xae, 0x48, 0x71, 0x1c, 0x29, 0x8e, 0x23, 0x62, 0x13, 0xac, 0x77, 0x41, |
| 0x9f, 0x40, 0x45, 0x21, 0x9d, 0xa6, 0x11, 0x6c, 0xc2, 0x66, 0x9c, 0xc4, 0x81, 0x6c, 0x26, 0xcc, |
| 0x6e, 0x12, 0xf2, 0xf6, 0xb2, 0x09, 0x96, 0xb6, 0xbb, 0xdf, 0xfc, 0xf8, 0x47, 0xff, 0x34, 0x36, |
| 0x23, 0x55, 0x54, 0x74, 0x40, 0x85, 0xa0, 0x03, 0xd3, 0xaa, 0x4e, 0xd8, 0x73, 0xfc, 0xe3, 0x8d, |
| 0xf3, 0x0a, 0x84, 0x9d, 0x0a, 0x83, 0x64, 0x55, 0x33, 0xd7, 0x0d, 0xea, 0xf9, 0xb7, 0xec, 0x2b, |
| 0x8d, 0xb6, 0xf3, 0xd3, 0x32, 0xde, 0x62, 0xf4, 0x9b, 0x2d, 0xd0, 0xe5, 0x98, 0xe5, 0x33, 0x13, |
| 0x5f, 0xa3, 0x75, 0x8e, 0x96, 0x07, 0xcc, 0x2a, 0x03, 0xb8, 0x6f, 0x1f, 0x37, 0x43, 0xfe, 0xcc, |
| 0x92, 0x23, 0xf0, 0x80, 0x32, 0xc5, 0x7f, 0x6a, 0x21, 0xd5, 0x9b, 0x54, 0xa7, 0x40, 0x26, 0x1f, |
| 0xde, 0xd3, 0xaf, 0xc3, 0xe6, 0x9e, 0xc2, 0x53, 0xd8, 0x52, 0x6f, 0xd9, 0xe9, 0x10, 0xa8, 0x1d, |
| 0xca, 0x40, 0x80, 0x4e, 0x87, 0x52, 0x1d, 0x0a, 0xca, 0xef, 0xf9, 0x6e, 0xf7, 0x0a, 0x00, 0x00, |
| 0xff, 0xff, 0x6e, 0x13, 0x7b, 0xcb, 0xdc, 0x00, 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConn |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion4 |
| |
| // IwlwifiPCIRescanClient is the client API for IwlwifiPCIRescan service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type IwlwifiPCIRescanClient interface { |
| // RemoveIfaceAndWaitForRecovery triggers iwlwifi_rescan by removing the WiFi |
| // device. iwlwifi_rescan rule should rescan PCI and add back the WiFi device. |
| RemoveIfaceAndWaitForRecovery(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) |
| } |
| |
| type iwlwifiPCIRescanClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewIwlwifiPCIRescanClient(cc *grpc.ClientConn) IwlwifiPCIRescanClient { |
| return &iwlwifiPCIRescanClient{cc} |
| } |
| |
| func (c *iwlwifiPCIRescanClient) RemoveIfaceAndWaitForRecovery(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { |
| out := new(empty.Empty) |
| err := c.cc.Invoke(ctx, "/tast.cros.wifi.IwlwifiPCIRescan/RemoveIfaceAndWaitForRecovery", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // IwlwifiPCIRescanServer is the server API for IwlwifiPCIRescan service. |
| type IwlwifiPCIRescanServer interface { |
| // RemoveIfaceAndWaitForRecovery triggers iwlwifi_rescan by removing the WiFi |
| // device. iwlwifi_rescan rule should rescan PCI and add back the WiFi device. |
| RemoveIfaceAndWaitForRecovery(context.Context, *empty.Empty) (*empty.Empty, error) |
| } |
| |
| // UnimplementedIwlwifiPCIRescanServer can be embedded to have forward compatible implementations. |
| type UnimplementedIwlwifiPCIRescanServer struct { |
| } |
| |
| func (*UnimplementedIwlwifiPCIRescanServer) RemoveIfaceAndWaitForRecovery(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method RemoveIfaceAndWaitForRecovery not implemented") |
| } |
| |
| func RegisterIwlwifiPCIRescanServer(s *grpc.Server, srv IwlwifiPCIRescanServer) { |
| s.RegisterService(&_IwlwifiPCIRescan_serviceDesc, srv) |
| } |
| |
| func _IwlwifiPCIRescan_RemoveIfaceAndWaitForRecovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(empty.Empty) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(IwlwifiPCIRescanServer).RemoveIfaceAndWaitForRecovery(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/tast.cros.wifi.IwlwifiPCIRescan/RemoveIfaceAndWaitForRecovery", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(IwlwifiPCIRescanServer).RemoveIfaceAndWaitForRecovery(ctx, req.(*empty.Empty)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _IwlwifiPCIRescan_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "tast.cros.wifi.IwlwifiPCIRescan", |
| HandlerType: (*IwlwifiPCIRescanServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "RemoveIfaceAndWaitForRecovery", |
| Handler: _IwlwifiPCIRescan_RemoveIfaceAndWaitForRecovery_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "iwlwifi_pci_rescan.proto", |
| } |