Version 1 (modified by bennylp, 11 years ago) (diff) |
---|
Development Guidelines
Preparation
Development
- Interactive debugging capability is essential during development
- Start with default settings in <pj/config_site_sample.h>.
Coding Style
First and foremost: set your editor to use 8 characters tab size in order to see PJSIP source correctly.
These below are PJSIP coding style. You don't need to follow it unless you are submitting patches to PJSIP:
- indentation uses tabs and spaces. Tab size is 8 characters, indentation 4.
- all public API in header file must be documented in Doxygen format.
- other than that, we mostly just use `K & R style<http://en.wikipedia.org/wiki/1_true_brace_style#K.26R_style>`_, which is the only correct style anyway.
Deployment
- Logging is essential when troubleshooting any problems. The application MUST be equipped with logging capability. Enable PJSIP log at level 5.