-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8059e2c
commit 1667256
Showing
5 changed files
with
273 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,9 +44,19 @@ endif | |
configure_file(output: 'config.h', | ||
configuration : cfg) | ||
|
||
protoc = find_program('protoc') | ||
|
||
proto_gen = generator(protoc, \ | ||
output : ['@[email protected]', '@[email protected]'], | ||
arguments : ['--proto_path=@CURRENT_SOURCE_DIR@/protos', '--c_out=@BUILD_DIR@', '@INPUT@']) | ||
|
||
dcache_proto = proto_gen.process('protos/dcache.proto') | ||
sshfs_sources += [ dcache_proto ] | ||
|
||
sshfs_deps = [ dependency('fuse3', version: '>= 3.1.0'), | ||
dependency('glib-2.0'), | ||
dependency('gthread-2.0') ] | ||
dependency('gthread-2.0'), | ||
dependency('libprotobuf-c', version: '>= 1.0.0') ] | ||
|
||
executable('sshfs', sshfs_sources, | ||
include_directories: include_dirs, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
syntax = "proto3"; | ||
|
||
message Dcache { | ||
DcacheMeta metadata = 1; | ||
map<string, DcacheEntry> entries = 2; | ||
} | ||
|
||
message ListString { | ||
repeated string values = 1; | ||
} | ||
|
||
message DcacheMeta { | ||
uint32 version = 1; | ||
uint32 stat_size = 2; | ||
uint64 creation_time = 3; | ||
string note = 4; | ||
} | ||
|
||
message DcacheEntry { | ||
oneof opt_stat { | ||
bytes stat = 1; | ||
} | ||
oneof opt_link { | ||
string link = 2; | ||
} | ||
oneof opt_dir { | ||
ListString dir = 3; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters