Pacemaker Development¶
Working with the Pacemaker Code Base
Abstract¶
This document has guidelines and tips for developers interested in editing Pacemaker source code and submitting changes for inclusion in the project. Start with the FAQ; the rest is optional detail.
Table of Contents¶
- 1. Frequently Asked Questions
- 2. General Guidelines for All Languages
- 3. Python Coding Guidelines
- 4. C Coding Guidelines
- 4.1. Code Organization
- 4.2. Pacemaker Libraries
- 4.3. C Boilerplate
- 4.4. Line Formatting
- 4.5. Comments
- 4.6. Operators
- 4.7. Control Statements (if, else, while, for, switch)
- 4.8. Macros
- 4.9. Memory Management
- 4.10. Structures
- 4.11. Variables
- 4.12. String Handling
- 4.13. Enumerations
- 4.14. Functions
- 4.15. Logging and Output
- 4.16. Makefiles
- 4.17. vim Settings
- 5. Coding Particular Pacemaker Components
- 6. C Development Helpers
- 7. Evolution of the project