Chapter 3. Programming for LCDproc

Table of Contents

Get the source
Download GIT Version of LCDproc as a Tarball
Download The Latest Version of LCDproc from GitHub
Code style guideline
File format and indention
Naming conventions
Comments
Statement style
Example indent profile
Submitting code

Get the source

If you want to start programming for LCDproc you will need the have the most current source code available. You can get it several ways:

  1. Download GIT version of as a tarball (preferred).

  2. Download the latest version from GIT.

  3. Download the last stable release from Github. (This is not recommended as stable release may be months behind the current version.)

Download GIT Version of LCDproc as a Tarball

The source is available as tarball. You can download them from https://github.com/lcdproc/lcdproc/archive/master.tar.gz. For development we recommended to use the 'master' branch.

To extract the files run

$ tar xvfz lcdproc-master.tar.gz

Download The Latest Version of LCDproc from GitHub

Of course you can download the latest stuff from GitHub. For more information on how to use GitHub see https://guides.github.com/.

$ git clone https://github.com/lcdproc/lcdproc.git

Once you've done that and want to update the downloaded files to the latest stuff you can use the "pull" command of git (make sure to be in the lcdproc directory!):

$ git pull

Now that once you have downloaded the files you can prepare them for compiling, but first you should (you don't have to) copy them to another place on your machine.