apps/agl-service-can-low-level.git
10 years agoDocs update, remove malloc from limitations list
Petteri Aimonen [Sat, 26 Apr 2014 17:11:54 +0000 (20:11 +0300)]
Docs update, remove malloc from limitations list

10 years agoAdd option to not add timestamps to .pb.h and .pb.c preambles.
Petteri Aimonen [Fri, 18 Apr 2014 12:40:40 +0000 (15:40 +0300)]
Add option to not add timestamps to .pb.h and .pb.c preambles.

Patch by rusnakp.

Update issue 115
Status: FixedInGit

10 years agoFix typos in scons command line options
Petteri Aimonen [Tue, 15 Apr 2014 17:30:50 +0000 (20:30 +0300)]
Fix typos in scons command line options

10 years agoRemove -O0 from tests CFLAGS so that optimized builds can be tested also
Petteri Aimonen [Tue, 15 Apr 2014 17:27:38 +0000 (20:27 +0300)]
Remove -O0 from tests CFLAGS so that optimized builds can be tested also

10 years agoFix bug in missing_fields test case
Petteri Aimonen [Wed, 9 Apr 2014 16:39:12 +0000 (19:39 +0300)]
Fix bug in missing_fields test case

10 years agoUse -fsanitize=undefined when running tests with clang
Petteri Aimonen [Wed, 9 Apr 2014 16:28:57 +0000 (19:28 +0300)]
Use -fsanitize=undefined when running tests with clang

10 years agoSetting version to 0.2.8-dev
Petteri Aimonen [Mon, 7 Apr 2014 17:45:04 +0000 (20:45 +0300)]
Setting version to 0.2.8-dev

10 years agoPublishing nanopb-0.2.7
Petteri Aimonen [Mon, 7 Apr 2014 17:30:42 +0000 (20:30 +0300)]
Publishing nanopb-0.2.7

10 years agoUpdate changelog
Petteri Aimonen [Mon, 7 Apr 2014 17:30:12 +0000 (20:30 +0300)]
Update changelog

10 years agoAdd rule for building coverage summary using lcov.
Petteri Aimonen [Sat, 5 Apr 2014 10:26:37 +0000 (13:26 +0300)]
Add rule for building coverage summary using lcov.

Also modified a few tests to be more compatible with coverage information,
so that they use the same pb_encode/decode.c instead of making a copy.

10 years agoFix unused parameter warning when building without errmsg.
Petteri Aimonen [Sat, 5 Apr 2014 10:25:44 +0000 (13:25 +0300)]
Fix unused parameter warning when building without errmsg.

10 years agoAdd a convenience function pb_get_encoded_size()
Petteri Aimonen [Sat, 5 Apr 2014 08:26:39 +0000 (11:26 +0300)]
Add a convenience function pb_get_encoded_size()

There is minimal size penalty from this, and it is probably much more
intuitive to use than PB_OSTREAM_SIZING itself.

This has been suggested before also, but I ended up refusing it back
them. Reconsidering it now, I see that an intuitive API is much better
than any amount of documentation explaining a non-intuitive API.

Update issue 16
Status: FixedInGit

10 years agoAdd a 'found' field to pb_extension_t.
Petteri Aimonen [Sat, 5 Apr 2014 08:11:05 +0000 (11:11 +0300)]
Add a 'found' field to pb_extension_t.

Update issue 112
Status: FixedInGit

10 years agoAdd some missing 'static' specifiers
Petteri Aimonen [Wed, 2 Apr 2014 18:08:15 +0000 (21:08 +0300)]
Add some missing 'static' specifiers

Update issue 91
Status: FixedInGit

10 years agoFix splint warnings, add splint test case
Petteri Aimonen [Wed, 2 Apr 2014 17:59:01 +0000 (20:59 +0300)]
Fix splint warnings, add splint test case

10 years agoFix compile error when default value given for extension field.
Petteri Aimonen [Tue, 1 Apr 2014 13:47:53 +0000 (16:47 +0300)]
Fix compile error when default value given for extension field.

Update issue 111
Status: FixedInGit

10 years agoAdd stdlib.h to pb_syshdr.h for dynamic allocation
Petteri Aimonen [Tue, 18 Mar 2014 14:13:54 +0000 (16:13 +0200)]
Add stdlib.h to pb_syshdr.h for dynamic allocation

10 years agoMore configuration options for dynamic alloc
Petteri Aimonen [Mon, 17 Mar 2014 15:25:58 +0000 (17:25 +0200)]
More configuration options for dynamic alloc

10 years agoDocumentation updates
Petteri Aimonen [Sun, 16 Mar 2014 13:52:19 +0000 (15:52 +0200)]
Documentation updates

10 years agoFinish the alltypes_pointer testcase, use valgrind if available.
Petteri Aimonen [Sat, 15 Mar 2014 07:39:27 +0000 (09:39 +0200)]
Finish the alltypes_pointer testcase, use valgrind if available.

10 years agoGet rid of pb_bytes_ptr_t, just allocate pb_bytes_array_t dynamically.
Petteri Aimonen [Sat, 15 Mar 2014 06:45:58 +0000 (08:45 +0200)]
Get rid of pb_bytes_ptr_t, just allocate pb_bytes_array_t dynamically.

This makes the internal logic much simpler, and also keeps the datatypes
more similar between STATIC/POINTER cases. It will still be a bit cumbersome
to use because of variable length array member. Macros PB_BYTES_ARRAY_T(n) and
PB_BYTES_ARRAY_T_ALLOCSIZE(n) have been added to make life a bit easier.

This has the drawback that it is no longer as easy to use externally allocated
byte array as input for bytes field in pointer mode. However, this is still
easy to do using callbacks, so it shouldn't be a large issue.

10 years agoAdd pb_release() function
Petteri Aimonen [Wed, 12 Mar 2014 19:08:35 +0000 (21:08 +0200)]
Add pb_release() function

10 years agoMore fixes for dynamic allocation
Petteri Aimonen [Mon, 10 Mar 2014 16:19:38 +0000 (18:19 +0200)]
More fixes for dynamic allocation

10 years agoBugfixes for dynamic allocation
Petteri Aimonen [Tue, 25 Feb 2014 17:58:11 +0000 (19:58 +0200)]
Bugfixes for dynamic allocation

10 years agoBeginnings of malloc support in pb_decode
Petteri Aimonen [Mon, 24 Feb 2014 19:09:25 +0000 (21:09 +0200)]
Beginnings of malloc support in pb_decode

10 years agoSetting version to 0.2.7-dev
Petteri Aimonen [Sat, 15 Feb 2014 15:15:54 +0000 (17:15 +0200)]
Setting version to 0.2.7-dev

10 years agoPublishing nanopb-0.2.6
Petteri Aimonen [Sat, 15 Feb 2014 14:40:38 +0000 (16:40 +0200)]
Publishing nanopb-0.2.6

10 years agoUpdate changelog
Petteri Aimonen [Wed, 12 Feb 2014 17:50:52 +0000 (19:50 +0200)]
Update changelog

10 years agoMove descriptor.proto to google/protobuf directory where it belongs.
Petteri Aimonen [Wed, 12 Feb 2014 17:43:04 +0000 (19:43 +0200)]
Move descriptor.proto to google/protobuf directory where it belongs.

This fixes some interoperability problems when trying to compile
nanopb.proto for e.g. the Google's C++ library.

Update issue 104
Status: FixedInGit

10 years agoAdd test case for package names defined in .proto file.
Petteri Aimonen [Wed, 12 Feb 2014 17:22:01 +0000 (19:22 +0200)]
Add test case for package names defined in .proto file.

10 years agoImprove status/error reporting in generator.
Petteri Aimonen [Wed, 12 Feb 2014 16:51:48 +0000 (18:51 +0200)]
Improve status/error reporting in generator.

Update issue 105
Status: FixedInGit

10 years agoAdd AllTypes decoding test with callbacks.
Petteri Aimonen [Mon, 10 Feb 2014 19:00:26 +0000 (21:00 +0200)]
Add AllTypes decoding test with callbacks.

Update issue 99
Status: FixedInGit

10 years agoAdd AllTypes encoding test for callbacks (issue #99)
Petteri Aimonen [Sun, 9 Feb 2014 17:28:50 +0000 (19:28 +0200)]
Add AllTypes encoding test for callbacks (issue #99)

Still need to do the decoding side.

10 years agoExtreme negative integer constants are a bit nasty to define in C, just avoid the...
Petteri Aimonen [Wed, 5 Feb 2014 15:56:37 +0000 (17:56 +0200)]
Extreme negative integer constants are a bit nasty to define in C, just avoid the trouble in tests for now.

10 years agoAdd coments to places where STATIC_ASSERT is used.
Petteri Aimonen [Tue, 4 Feb 2014 18:34:57 +0000 (20:34 +0200)]
Add coments to places where STATIC_ASSERT is used.

Update issue 96
Status: FixedInGit

10 years agoAdd proper suffixes for integer default values.
Petteri Aimonen [Tue, 4 Feb 2014 18:24:44 +0000 (20:24 +0200)]
Add proper suffixes for integer default values.

Update issue 102
Status: FixedInGit

10 years agoAdd strict-aliasing GCC warnings for core
Petteri Aimonen [Tue, 4 Feb 2014 18:11:52 +0000 (20:11 +0200)]
Add strict-aliasing GCC warnings for core

10 years agoFix problem with callback-type fields (issue #99).
Petteri Aimonen [Fri, 3 Jan 2014 09:17:39 +0000 (11:17 +0200)]
Fix problem with callback-type fields (issue #99).

10 years agoSetting version to 0.2.6-dev
Petteri Aimonen [Wed, 1 Jan 2014 09:44:47 +0000 (11:44 +0200)]
Setting version to 0.2.6-dev

10 years agoPublishing nanopb-0.2.5
Petteri Aimonen [Wed, 1 Jan 2014 09:11:19 +0000 (11:11 +0200)]
Publishing nanopb-0.2.5

10 years agoFix Makefiles for the examples
Petteri Aimonen [Wed, 1 Jan 2014 09:20:07 +0000 (11:20 +0200)]
Fix Makefiles for the examples

The default rules for make were being selected before our own rules
and the .pb.c was not being built.

10 years agoFix bundled protoc detection in scons script
Petteri Aimonen [Sun, 29 Dec 2013 20:08:13 +0000 (22:08 +0200)]
Fix bundled protoc detection in scons script

10 years agoAnd same fixes on Mac also..
Petteri Aimonen [Sun, 29 Dec 2013 19:47:38 +0000 (21:47 +0200)]
And same fixes on Mac also..

10 years agoMake the Mac OS X package a .zip instead
Petteri Aimonen [Sun, 29 Dec 2013 19:43:22 +0000 (21:43 +0200)]
Make the Mac OS X package a .zip instead

10 years agoFix spaces in paths on Windows also
Petteri Aimonen [Sun, 29 Dec 2013 19:36:06 +0000 (21:36 +0200)]
Fix spaces in paths on Windows also

10 years agoFix handling spaces in directory name
Petteri Aimonen [Sun, 29 Dec 2013 19:11:57 +0000 (21:11 +0200)]
Fix handling spaces in directory name

10 years agoFix build on Windows
Petteri Aimonen [Sun, 29 Dec 2013 18:53:39 +0000 (20:53 +0200)]
Fix build on Windows

10 years agoFix protoc-gen-nanopb when the path contains spaces
Petteri Aimonen [Sun, 29 Dec 2013 18:48:30 +0000 (20:48 +0200)]
Fix protoc-gen-nanopb when the path contains spaces

10 years agoFix path change: compat/ -> extra/
Petteri Aimonen [Sun, 29 Dec 2013 18:41:36 +0000 (20:41 +0200)]
Fix path change: compat/ -> extra/

10 years agoREADME updates
Petteri Aimonen [Sun, 29 Dec 2013 18:31:02 +0000 (20:31 +0200)]
README updates

10 years agoInclude platform name in also the directory name in binary pkgs
Petteri Aimonen [Sun, 29 Dec 2013 18:25:36 +0000 (20:25 +0200)]
Include platform name in also the directory name in binary pkgs

10 years agoAdd packaging script for Mac, add platform name to packages.
Petteri Aimonen [Tue, 3 Dec 2013 18:35:29 +0000 (20:35 +0200)]
Add packaging script for Mac, add platform name to packages.

10 years agoFixes for pyinstaller
Petteri Aimonen [Tue, 3 Dec 2013 18:10:48 +0000 (20:10 +0200)]
Fixes for pyinstaller

10 years agoSmall fix for previous
Petteri Aimonen [Tue, 3 Dec 2013 17:30:39 +0000 (19:30 +0200)]
Small fix for previous

10 years agoCheck for supported GCC CCFLAGS when building tests.
Petteri Aimonen [Tue, 3 Dec 2013 17:27:08 +0000 (19:27 +0200)]
Check for supported GCC CCFLAGS when building tests.

10 years agoMake generator print errors to stderr.
Petteri Aimonen [Tue, 3 Dec 2013 16:44:25 +0000 (18:44 +0200)]
Make generator print errors to stderr.

Otherwise they won't be visible when run as a protoc plugin.

10 years agoAdd a SCons tool for nanopb protos.
Petteri Aimonen [Sat, 23 Nov 2013 09:04:12 +0000 (11:04 +0200)]
Add a SCons tool for nanopb protos.

This tool script is useful both for building the tests and also for use in other applications.

10 years agoFix protoc-gen-nanopb in linux package
Petteri Aimonen [Sun, 17 Nov 2013 20:37:48 +0000 (22:37 +0200)]
Fix protoc-gen-nanopb in linux package

10 years agoInclude libprotoc
Petteri Aimonen [Sun, 17 Nov 2013 20:33:26 +0000 (22:33 +0200)]
Include libprotoc

10 years agoLinux archive
Petteri Aimonen [Sun, 17 Nov 2013 20:25:52 +0000 (22:25 +0200)]
Linux archive

10 years agoAlso include the manifest for MSVCR90.DLL
Petteri Aimonen [Sun, 17 Nov 2013 20:19:54 +0000 (22:19 +0200)]
Also include the manifest for MSVCR90.DLL

10 years agoInclude MSVCR90.DLL also.
Petteri Aimonen [Sun, 17 Nov 2013 19:43:50 +0000 (21:43 +0200)]
Include MSVCR90.DLL also.

10 years agoInclude Visual C++ runtime in the Windows package.
Petteri Aimonen [Sun, 17 Nov 2013 19:20:12 +0000 (21:20 +0200)]
Include Visual C++ runtime in the Windows package.

10 years agoREADME updates
Petteri Aimonen [Sun, 17 Nov 2013 18:57:50 +0000 (20:57 +0200)]
README updates

10 years agoWindows build fixes
Petteri Aimonen [Sun, 17 Nov 2013 18:37:18 +0000 (20:37 +0200)]
Windows build fixes

10 years agoFix protoc plugin path
Petteri Aimonen [Sun, 17 Nov 2013 18:25:18 +0000 (20:25 +0200)]
Fix protoc plugin path

10 years agoActually no, it was a portability hassle
Petteri Aimonen [Sun, 17 Nov 2013 18:24:32 +0000 (20:24 +0200)]
Actually no, it was a portability hassle

10 years agoMakefile tuning
Petteri Aimonen [Sun, 17 Nov 2013 18:09:30 +0000 (20:09 +0200)]
Makefile tuning

10 years agoRework the Makefiles to be compatible with binary packages.
Petteri Aimonen [Sun, 17 Nov 2013 18:04:29 +0000 (20:04 +0200)]
Rework the Makefiles to be compatible with binary packages.

10 years agoMoving files around
Petteri Aimonen [Sun, 17 Nov 2013 17:20:04 +0000 (19:20 +0200)]
Moving files around

Renamed READMEs to README.txt to be more friendly for Windows users.

10 years agoPackage as .zip, convert linebreaks
Petteri Aimonen [Sun, 17 Nov 2013 17:09:13 +0000 (19:09 +0200)]
Package as .zip, convert linebreaks

10 years agoAdd build script for windows package
Petteri Aimonen [Sun, 17 Nov 2013 15:37:29 +0000 (17:37 +0200)]
Add build script for windows package

10 years agoAdd descriptor.proto to repository to avoid messing with protoc include path.
Petteri Aimonen [Sun, 17 Nov 2013 14:42:52 +0000 (16:42 +0200)]
Add descriptor.proto to repository to avoid messing with protoc include path.

10 years agoAdd script for making linux binary package
Petteri Aimonen [Sun, 17 Nov 2013 13:46:41 +0000 (15:46 +0200)]
Add script for making linux binary package

10 years agoMove the generator .proto files to a subdir, and get rid of precompiled versions.
Petteri Aimonen [Sun, 17 Nov 2013 13:07:12 +0000 (15:07 +0200)]
Move the generator .proto files to a subdir, and get rid of precompiled versions.

10 years agoBring alltypes_pointer testcase up to date
Petteri Aimonen [Sun, 29 Dec 2013 16:44:58 +0000 (18:44 +0200)]
Bring alltypes_pointer testcase up to date

10 years agoImprove alltypes_pointer test case
Petteri Aimonen [Sun, 29 Dec 2013 16:35:14 +0000 (18:35 +0200)]
Improve alltypes_pointer test case

10 years agoFix missing error messages in pb_encode.c
Petteri Aimonen [Sun, 29 Dec 2013 16:34:57 +0000 (18:34 +0200)]
Fix missing error messages in pb_encode.c

10 years agoRename encode_static_field -> encode_basic_field.
Petteri Aimonen [Mon, 9 Dec 2013 17:25:19 +0000 (19:25 +0200)]
Rename encode_static_field -> encode_basic_field.

10 years agoOrganize allocation logic in generator, add pb_bytes_ptr_t.
Petteri Aimonen [Mon, 9 Dec 2013 17:19:12 +0000 (19:19 +0200)]
Organize allocation logic in generator, add pb_bytes_ptr_t.

Allocation decision is now made before the field data type is decided.
This way the data type decisions can more cleanly account for the allocation
type, i.e. FT_DEFAULT logic etc.

Added pb_bytes_ptr_t for pointer-allocated bytes-fields. There is no point
generating separate structs for these, as they would all be of the same type.

10 years agoConst-correctness and small cleanup.
Petteri Aimonen [Mon, 9 Dec 2013 17:15:26 +0000 (19:15 +0200)]
Const-correctness and small cleanup.

10 years agoGenerating and encoding messages with dynamic allocaiton
Martin Donath [Sun, 8 Dec 2013 22:25:32 +0000 (23:25 +0100)]
Generating and encoding messages with dynamic allocaiton

10 years agoNegative int32 values take 10 bytes now.
Petteri Aimonen [Sun, 22 Dec 2013 21:24:02 +0000 (23:24 +0200)]
Negative int32 values take 10 bytes now.

10 years agoFix problem with decode_legacy test case on Windows.
Petteri Aimonen [Sat, 21 Dec 2013 16:08:04 +0000 (18:08 +0200)]
Fix problem with decode_legacy test case on Windows.

10 years agoAdd test for extreme integer values (INT32_MAX etc.) in AllTypes.
Petteri Aimonen [Sat, 21 Dec 2013 10:41:20 +0000 (12:41 +0200)]
Add test for extreme integer values (INT32_MAX etc.) in AllTypes.

10 years agoAdd PB_LTYPE_UVARINT to fix encoding of negative int32 values.
Petteri Aimonen [Sat, 21 Dec 2013 10:16:03 +0000 (12:16 +0200)]
Add PB_LTYPE_UVARINT to fix encoding of negative int32 values.

Apparently int32 values that are negative must be cast into int64 first
before being encoded. Because uint32 still needs to be cast to uint64,
the cases for int32 and uint32 had to be separated.

Update issue 97
Status: FixedInGit

10 years agoModify the alltypes test to check re-encoding through protoc.
Petteri Aimonen [Sat, 21 Dec 2013 10:14:20 +0000 (12:14 +0200)]
Modify the alltypes test to check re-encoding through protoc.

This way we can verify that the message is encoded exactly the same way
as the official protobuf implementation would do it.

10 years agoOptimize the common case of 1-byte reads for varints.
Petteri Aimonen [Thu, 14 Nov 2013 15:56:42 +0000 (17:56 +0200)]
Optimize the common case of 1-byte reads for varints.

For PB_BUFFER_ONLY configuration, this gives 20% speedup without
increasing code size.

10 years agoMake tests build in a separate folder, add to gitignore
Petteri Aimonen [Wed, 13 Nov 2013 20:10:42 +0000 (22:10 +0200)]
Make tests build in a separate folder, add to gitignore

10 years agoFix path in FindNanopb.cmake.
Petteri Aimonen [Mon, 11 Nov 2013 07:22:32 +0000 (09:22 +0200)]
Fix path in FindNanopb.cmake.

Update issue 94
Status: FixedInGit

10 years agoSetting version to 0.2.5-dev
Petteri Aimonen [Thu, 7 Nov 2013 14:47:14 +0000 (16:47 +0200)]
Setting version to 0.2.5-dev

10 years agoPublishing nanopb-0.2.4
Petteri Aimonen [Thu, 7 Nov 2013 14:44:41 +0000 (16:44 +0200)]
Publishing nanopb-0.2.4

10 years agoAdd dates to changelog
Petteri Aimonen [Sat, 2 Nov 2013 20:19:26 +0000 (22:19 +0200)]
Add dates to changelog

10 years agoUpdate changelog
Petteri Aimonen [Sat, 2 Nov 2013 20:11:27 +0000 (22:11 +0200)]
Update changelog

10 years agoGenerate #define tags for extension fields also.
Petteri Aimonen [Sat, 2 Nov 2013 20:05:49 +0000 (22:05 +0200)]
Generate #define tags for extension fields also.

Update issue 93
Status: FixedInGit

10 years agoRemove the NANOPB_INTERNALS functions from public API.
Petteri Aimonen [Tue, 29 Oct 2013 14:32:47 +0000 (16:32 +0200)]
Remove the NANOPB_INTERNALS functions from public API.

These have been deprecated since nanopb-0.1.6 (some since 0.1.3).
Equivalent functions with better interface are available in the API.

Update issue 91
Status: FixedInGit

10 years agoDeclare static functions before use.
Petteri Aimonen [Tue, 29 Oct 2013 14:24:50 +0000 (16:24 +0200)]
Declare static functions before use.

For compliance with MISRA C rules (issue 91).

10 years agoCleanup of comments.
Petteri Aimonen [Tue, 29 Oct 2013 14:19:07 +0000 (16:19 +0200)]
Cleanup of comments.

10 years agoAdd a definition of the security model to the documentation.
Petteri Aimonen [Tue, 29 Oct 2013 13:44:35 +0000 (15:44 +0200)]
Add a definition of the security model to the documentation.

10 years agoRename some internal functions to have unique names
Petteri Aimonen [Tue, 29 Oct 2013 13:32:51 +0000 (15:32 +0200)]
Rename some internal functions to have unique names