The simplest example program to show CEC in action on the Raspberry Pi.
According to sloccount there are only 75 lines of code to get your head around which is a lot simpler than the 1145 contained in the all singing, all dancing, libcec test client.