diff options
| author | Jeff Carr <[email protected]> | 2025-10-08 10:59:18 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-08 10:59:18 -0500 |
| commit | 32b5d932adaade19e6fbbafc5b32ab0f79c13918 (patch) | |
| tree | 48fcc9b8ea3d30828dc9f542fb52a2dd5892a656 /filetype.proto | |
| parent | 9e2da246d52558670685ffe86c25787b55c6b4a6 (diff) | |
| parent | c0ca88c692d7bc415980728b301921110c085256 (diff) | |
Merge branch 'devel'
Diffstat (limited to 'filetype.proto')
| -rw-r--r-- | filetype.proto | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/filetype.proto b/filetype.proto new file mode 100644 index 0000000..7ec6006 --- /dev/null +++ b/filetype.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package filepb; + +message Filetype { // `autogenpb:var:w io.Writer` + bool nothing = 1; // generate autosave functions (in marshal.go ?) +} + +// I know, I know, the whole point of using protobuf +// is so you don't need a uuid or versions because it's +// inherently forward compatable. nonetheless, a simple stubbed out +// trivial and empty protobuf message can marshal and identify all the files +// also, this could be used to modify /usr/bin/file /usr/share/magic to identify the files +// maybe this is already been done and is pointless, but it seems like a good idea +message Filetypes { // `autogenpb:marshal` + string uuid = 1; // `autogenpb:uuid:c1239110-ad4f-41f3-b0f5-189034f0a3a7` + string version = 2; // `autogenpb:version:v0.0.1` + repeated Filetype Filetypes = 3; // an array of each .proto file in the working directory +} +// this generic message is used by autogen to identify and +// then dump the uuid and version from any arbitrary .pb file +message Identify { // `autogenpb:marshal` + string uuid = 1; // + string version = 2; // +} |
