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. Documentation Guidelines
- 4. Python Coding Guidelines
- 5. C Coding Guidelines
- 5.1. Code Organization
- 5.2. Pacemaker Libraries
- 5.3. C Boilerplate
- 5.4. Line Formatting
- 5.5. Comments
- 5.6. Operators
- 5.7. Control Statements (if, else, while, for, switch)
- 5.8. Macros
- 5.9. Memory Management
- 5.10. Structures
- 5.11. Variables
- 5.12. String Handling
- 5.13. Enumerations
- 5.14. Functions
- 5.15. Logging and Output
- 5.16. Makefiles
- 5.17. vim Settings
- 6. Coding Particular Pacemaker Components
- 7. C Development Helpers
- 8. Evolution of the project
- 9. Glossary