aboutsummaryrefslogtreecommitdiffstats
path: root/example/fileproto.options
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-07-06 13:01:21 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-07-06 13:01:21 +0300
commit68dd0171bc51e871a522d21a40c35c08de0fb573 (patch)
treef1ec0a56f0f1160a7f0f8ca0d011f5d3c0277604 /example/fileproto.options
parenta1cec46b3e824292b4ae22fa1f5c4faf9846196c (diff)
Switch the example project to use the new .options file
Diffstat (limited to 'example/fileproto.options')
-rw-r--r--example/fileproto.options13
1 files changed, 13 insertions, 0 deletions
diff --git a/example/fileproto.options b/example/fileproto.options
new file mode 100644
index 00000000..29a2ab0e
--- /dev/null
+++ b/example/fileproto.options
@@ -0,0 +1,13 @@
+# This file defines the nanopb-specific options for the messages defined
+# in fileproto.proto.
+#
+# If you come from high-level programming background, the hardcoded
+# maximum lengths may disgust you. However, if your microcontroller only
+# has a few kB of ram to begin with, setting reasonable limits for
+# filenames is ok.
+#
+# On the other hand, using the callback interface, it is not necessary
+# to set a limit on the number of files in the response.
+
+ListFilesRequest.path max_size:128
+FileInfo.name max_size:128