Skip to content
Snippets Groups Projects
  1. Jul 22, 2013
  2. Jul 17, 2013
  3. Jul 16, 2013
  4. Jul 06, 2013
  5. Jun 03, 2013
  6. Apr 14, 2013
  7. Apr 08, 2013
  8. Apr 02, 2013
    • Petteri Aimonen's avatar
      Do not generate has_ fields for callback fields. · 384e686f
      Petteri Aimonen authored
      The arg field can be used to store the field presence from inside
      the callback. Furthermore, having the has_ field for encoding callbacks
      would be more annoying than useful.
      
      Update issue 70
      Status: FixedInGit
      384e686f
    • Petteri Aimonen's avatar
      Change the callback function to use void**. · 214b0eae
      Petteri Aimonen authored
      NOTE: This change breaks backwards-compatibility by default.
      If you have old callback functions, you can define PB_OLD_CALLBACK_STYLE
      to retain the old behaviour.
      
      If you want to convert your old callbacks to new signature, you need
      to do the following:
      
      1) Change decode callback argument to   void **arg
            and encode callback argument to   void * const *arg.
      
      2) Change any reference to arg into *arg.
      
      The rationale for making the new behaviour the default is that it
      simplifies the common case of "allocate some memory in decode callback".
      
      Update issue 69
      Status: FixedInGit
      214b0eae
  9. Mar 13, 2013
  10. Mar 09, 2013
  11. Mar 06, 2013
Loading