Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

mozilla-b2g/platform_system_tvd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# tvd

Tvd wraps Android's TV driver behind a network protocol. The program
is licensed under the Apache License 2.0. See the file LICENSE
for more information.

Tvd acts as a proxy between Android's TV driver and an external program.
It opens the TV driver and waits on a socket connection for external commands
(i.e., from Gecko). When a command arrives it executes a corresponding driver
operation and reports back the result. If the TV driver signals an event
(i.e., a channel scanned), tvd forwards a corresponding notification to the
connected program.


## Supported Versions

Tvd supports Android with API version 14 or later.


## Building

Tvd should come as part of your B2G checkout. Otherwise, you can
clone the repository into your local B2G checkout and add the target

  tvd

to the list of packages. See the file NOTICE for a pointer to the latest
code release. Tvd requires

  libfdio
  libpdu

Both libraries are available from the same location as tvd.


## Protocol

For IPC, tvd uses a protocol as defined in doc/ipc.txt. The protocol
is supposed to be stable across releases.


## Coding style

Tvd is implemented in C. The dialect is C89 with GNU extensions. The
coding style follows the guidelines for C++ as defined at

  https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style

with the following exceptions:

  * use lower case with underscores (foo_bar) instead of camel case (FooBar)

  * no 'moz_' prefixes are required (or similar namespace separation)

  * except for 'g_' for global variables

  * in the general case return 0 for success and -1 for errors

  * print an error message *exactly* where the error occurs

  * use '#pragma once' instead of include guards


## Submitting bug reports and patches

Bug reports for tvd can be filed in Mozilla's bug tracker at

  https://bugzilla.mozilla.org

Patches are reviewed there as well. Please cc <tzimmermann@mozilla.com> in
the bug report if you need help.