| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package ipc_sem |
| 10 |
|
| 11 |
import ( |
| 12 |
ipc_desc "github.com/checkpoint-restore/go-criu/v7/crit/images/ipc-desc" |
| 13 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 14 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 15 |
reflect "reflect" |
| 16 |
sync "sync" |
| 17 |
) |
| 18 |
|
| 19 |
const ( |
| 20 |
|
| 21 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 22 |
|
| 23 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 24 |
) |
| 25 |
|
| 26 |
type IpcSemEntry struct { |
| 27 |
state protoimpl.MessageState |
| 28 |
sizeCache protoimpl.SizeCache |
| 29 |
unknownFields protoimpl.UnknownFields |
| 30 |
|
| 31 |
Desc *ipc_desc.IpcDescEntry `protobuf:"bytes,1,req,name=desc" json:"desc,omitempty"` |
| 32 |
Nsems *uint32 `protobuf:"varint,2,req,name=nsems" json:"nsems,omitempty"` |
| 33 |
} |
| 34 |
|
| 35 |
func (x *IpcSemEntry) Reset() { |
| 36 |
*x = IpcSemEntry{} |
| 37 |
if protoimpl.UnsafeEnabled { |
| 38 |
mi := &file_ipc_sem_proto_msgTypes[0] |
| 39 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 40 |
ms.StoreMessageInfo(mi) |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
func (x *IpcSemEntry) String() string { |
| 45 |
return protoimpl.X.MessageStringOf(x) |
| 46 |
} |
| 47 |
|
| 48 |
func (*IpcSemEntry) ProtoMessage() {} |
| 49 |
|
| 50 |
func (x *IpcSemEntry) ProtoReflect() protoreflect.Message { |
| 51 |
mi := &file_ipc_sem_proto_msgTypes[0] |
| 52 |
if protoimpl.UnsafeEnabled && x != nil { |
| 53 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 54 |
if ms.LoadMessageInfo() == nil { |
| 55 |
ms.StoreMessageInfo(mi) |
| 56 |
} |
| 57 |
return ms |
| 58 |
} |
| 59 |
return mi.MessageOf(x) |
| 60 |
} |
| 61 |
|
| 62 |
|
| 63 |
func (*IpcSemEntry) Descriptor() ([]byte, []int) { |
| 64 |
return file_ipc_sem_proto_rawDescGZIP(), []int{0} |
| 65 |
} |
| 66 |
|
| 67 |
func (x *IpcSemEntry) GetDesc() *ipc_desc.IpcDescEntry { |
| 68 |
if x != nil { |
| 69 |
return x.Desc |
| 70 |
} |
| 71 |
return nil |
| 72 |
} |
| 73 |
|
| 74 |
func (x *IpcSemEntry) GetNsems() uint32 { |
| 75 |
if x != nil && x.Nsems != nil { |
| 76 |
return *x.Nsems |
| 77 |
} |
| 78 |
return 0 |
| 79 |
} |
| 80 |
|
| 81 |
var File_ipc_sem_proto protoreflect.FileDescriptor |
| 82 |
|
| 83 |
var file_ipc_sem_proto_rawDesc = []byte{ |
| 84 |
0x0a, 0x0d, 0x69, 0x70, 0x63, 0x2d, 0x73, 0x65, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, |
| 85 |
0x0e, 0x69, 0x70, 0x63, 0x2d, 0x64, 0x65, 0x73, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, |
| 86 |
0x4a, 0x0a, 0x0d, 0x69, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x6d, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, |
| 87 |
0x12, 0x23, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x0f, |
| 88 |
0x2e, 0x69, 0x70, 0x63, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, |
| 89 |
0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x73, 0x65, 0x6d, 0x73, 0x18, 0x02, |
| 90 |
0x20, 0x02, 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x73, 0x65, 0x6d, 0x73, |
| 91 |
} |
| 92 |
|
| 93 |
var ( |
| 94 |
file_ipc_sem_proto_rawDescOnce sync.Once |
| 95 |
file_ipc_sem_proto_rawDescData = file_ipc_sem_proto_rawDesc |
| 96 |
) |
| 97 |
|
| 98 |
func file_ipc_sem_proto_rawDescGZIP() []byte { |
| 99 |
file_ipc_sem_proto_rawDescOnce.Do(func() { |
| 100 |
file_ipc_sem_proto_rawDescData = protoimpl.X.CompressGZIP(file_ipc_sem_proto_rawDescData) |
| 101 |
}) |
| 102 |
return file_ipc_sem_proto_rawDescData |
| 103 |
} |
| 104 |
|
| 105 |
var file_ipc_sem_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 106 |
var file_ipc_sem_proto_goTypes = []interface{}{ |
| 107 |
(*IpcSemEntry)(nil), |
| 108 |
(*ipc_desc.IpcDescEntry)(nil), |
| 109 |
} |
| 110 |
var file_ipc_sem_proto_depIdxs = []int32{ |
| 111 |
1, |
| 112 |
1, |
| 113 |
1, |
| 114 |
1, |
| 115 |
1, |
| 116 |
0, |
| 117 |
} |
| 118 |
|
| 119 |
func init() { file_ipc_sem_proto_init() } |
| 120 |
func file_ipc_sem_proto_init() { |
| 121 |
if File_ipc_sem_proto != nil { |
| 122 |
return |
| 123 |
} |
| 124 |
if !protoimpl.UnsafeEnabled { |
| 125 |
file_ipc_sem_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 126 |
switch v := v.(*IpcSemEntry); i { |
| 127 |
case 0: |
| 128 |
return &v.state |
| 129 |
case 1: |
| 130 |
return &v.sizeCache |
| 131 |
case 2: |
| 132 |
return &v.unknownFields |
| 133 |
default: |
| 134 |
return nil |
| 135 |
} |
| 136 |
} |
| 137 |
} |
| 138 |
type x struct{} |
| 139 |
out := protoimpl.TypeBuilder{ |
| 140 |
File: protoimpl.DescBuilder{ |
| 141 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 142 |
RawDescriptor: file_ipc_sem_proto_rawDesc, |
| 143 |
NumEnums: 0, |
| 144 |
NumMessages: 1, |
| 145 |
NumExtensions: 0, |
| 146 |
NumServices: 0, |
| 147 |
}, |
| 148 |
GoTypes: file_ipc_sem_proto_goTypes, |
| 149 |
DependencyIndexes: file_ipc_sem_proto_depIdxs, |
| 150 |
MessageInfos: file_ipc_sem_proto_msgTypes, |
| 151 |
}.Build() |
| 152 |
File_ipc_sem_proto = out.File |
| 153 |
file_ipc_sem_proto_rawDesc = nil |
| 154 |
file_ipc_sem_proto_goTypes = nil |
| 155 |
file_ipc_sem_proto_depIdxs = nil |
| 156 |
} |