Skip to content

Commit

Permalink
Merge pull request #90 from snprajwal/proto-rename
Browse files Browse the repository at this point in the history
Add package name to crit protobuf files
  • Loading branch information
rst0git authored Sep 5, 2022
2 parents baacf56 + 2b00a6d commit 53fb11a
Show file tree
Hide file tree
Showing 147 changed files with 3,020 additions and 2,872 deletions.
7 changes: 6 additions & 1 deletion crit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ update-proto:
rm ./images/*.proto || true
git clone --depth 1 --branch master https://github.com/checkpoint-restore/criu criu-temp
cp criu-temp/images/*.proto ./images/
rm -R criu-temp
rm -rf criu-temp
# To prevent namespace conflicts against protobuf files
# from other projects, the files of this repository are
# now registered under the package name `criu`.
ls ./images/*.proto | xargs sed -i '/syntax/a package criu;'

gen-proto:
rm ./images/*.pb.go || true
@protoc \
--proto_path=$(proto_path) \
--go_out=$(proto_path) \
Expand Down
47 changes: 24 additions & 23 deletions crit/images/apparmor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crit/images/apparmor.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
syntax = "proto2";
package criu;

message aa_policy {
required string name = 1;
Expand Down
36 changes: 18 additions & 18 deletions crit/images/autofs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crit/images/autofs.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: MIT

syntax = "proto2";
package criu;

message autofs_entry {
required int32 fd = 1;
Expand Down
35 changes: 18 additions & 17 deletions crit/images/binfmt-misc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crit/images/binfmt-misc.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: MIT

syntax = "proto2";
package criu;

message binfmt_misc_entry {
required string name = 1;
Expand Down
24 changes: 12 additions & 12 deletions crit/images/bpfmap-data.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crit/images/bpfmap-data.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: MIT

syntax = "proto2";
package criu;

message bpfmap_data_entry {
required uint32 map_id = 1;
Expand Down
Loading

0 comments on commit 53fb11a

Please sign in to comment.