From 0ee4bb96b1e53d16a29869864eff87c8934894ae Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Mon, 29 Oct 2012 18:34:24 +0200 Subject: Allow defining field type in .proto. Update issue 30 Status: FixedInGit --- tests/options.proto | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/options.proto') diff --git a/tests/options.proto b/tests/options.proto index 73edf2ba..6ba7c070 100644 --- a/tests/options.proto +++ b/tests/options.proto @@ -25,4 +25,9 @@ message Message3 required string fieldsize = 1 [(nanopb).max_size = 40]; } +// Forced callback field +message Message4 +{ + required int32 int32_callback = 1 [(nanopb).type = FT_CALLBACK]; +} -- cgit 1.2.3-korg