xref: /aosp_15_r20/external/nanopb-c/examples/network_server/fileproto.options (revision c8d645cafcee3f91213d30caa0fe303887010b9b)
1*c8d645caSAndroid Build Coastguard Worker# This file defines the nanopb-specific options for the messages defined
2*c8d645caSAndroid Build Coastguard Worker# in fileproto.proto.
3*c8d645caSAndroid Build Coastguard Worker#
4*c8d645caSAndroid Build Coastguard Worker# If you come from high-level programming background, the hardcoded
5*c8d645caSAndroid Build Coastguard Worker# maximum lengths may disgust you. However, if your microcontroller only
6*c8d645caSAndroid Build Coastguard Worker# has a few kB of ram to begin with, setting reasonable limits for
7*c8d645caSAndroid Build Coastguard Worker# filenames is ok.
8*c8d645caSAndroid Build Coastguard Worker#
9*c8d645caSAndroid Build Coastguard Worker# On the other hand, using the callback interface, it is not necessary
10*c8d645caSAndroid Build Coastguard Worker# to set a limit on the number of files in the response.
11*c8d645caSAndroid Build Coastguard Worker
12*c8d645caSAndroid Build Coastguard WorkerListFilesRequest.path 	max_size:128
13*c8d645caSAndroid Build Coastguard WorkerFileInfo.name 		max_size:128
14