libotr-ng icon indicating copy to clipboard operation
libotr-ng copied to clipboard

Correctly document the functions

Open claucece opened this issue 7 years ago • 6 comments

A style format for how to manually document functionality is needed.

For the actual documentation of all the functionality, we need the whole 'Full OTRv4 flow #2' done and issue #72 done.

claucece avatar Mar 18 '18 23:03 claucece

Let's document with this structure:

For functions:

/**
  * @brief Define what the function does in summary
  *  
  *  @params 
  *  [out] the out parameter
  *  [in] the in parameter
  *
  * @return (if present)
  *
  * @details Details around this function if any
  *
  * @warning
  * Any warning
 **/

For structures:

** 
  * @brief A summary of what is this structure
  * 
  *  [type] 
**/

@giovaneliberato

claucece avatar Apr 10 '18 22:04 claucece

One open question. This proposal uses [out] and [in] parameters. I used a different style, using [bla] where bla is the name, and not specifying whether it's an out or in parameter (I expected that to be clear from the description of the parameter). We should decide what form to use.

olabini avatar Apr 12 '18 08:04 olabini

I guess things are already documented that way, so:

/**
  * @brief Define what the function does in summary
  *  
  *  @params 
  *  [bla1] the bla1 parameter
  *  [bla2] the bla2 parameter
  *
  * @return (if present)
  *
  * @details Details around this function if any
  *
  * @warning
  * Any warning
 **/

should be fine. :)

claucece avatar Apr 12 '18 09:04 claucece

Great, thanks! =)

olabini avatar Apr 12 '18 09:04 olabini

Agreed!

giovaneliberato avatar Apr 12 '18 17:04 giovaneliberato

This depends on #6

olabini avatar Mar 09 '19 17:03 olabini