fileproto.options 632 B

12345678910111213141516
  1. # This file defines the nanopb-specific options for the messages defined
  2. # in fileproto.proto.
  3. #
  4. # If you come from high-level programming background, the hardcoded
  5. # maximum lengths may disgust you. However, if your microcontroller only
  6. # has a few kB of ram to begin with, setting reasonable limits for
  7. # filenames is ok.
  8. #
  9. # On the other hand, using the callback interface, it is not necessary
  10. # to set a limit on the number of files in the response.
  11. * include:"sys/types.h"
  12. * include:"dirent.h"
  13. ListFilesResponse.file type:FT_CALLBACK, callback_datatype:"DIR*"
  14. ListFilesRequest.path max_size:128
  15. FileInfo.name max_size:128