1
0
Fork 0
forked from len0rd/rockbox

Add Rockbox layout to plugin API documentation

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18754 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Maurus Cuelenaere 2008-10-09 12:24:57 +00:00
parent e7ea23b180
commit c626f47cb5
4 changed files with 212 additions and 78 deletions

View file

@ -2221,8 +2221,8 @@ int snprintf(char *buf, size_t size, const char *fmt, ...) ATTRIBUTE_PRINTF(3, 4
\param buf \param buf
\param size \param size
\param fmt \param fmt
\return the number of characters printed or that would have been printed if the output was truncated (not including the trailing '\0') upon success \return the number of characters printed or that would have been printed if the output was truncated (not including the trailing NULL character) upon success
\description Write a formatted string =fmt= in buffer =buf= of size =size= (including the trailing '\0'). These support %c, %s, %d and %x only with the width and zero padding flag only. \description Write a formatted string =fmt= in buffer =buf= of size =size= (including the trailing NULL character). These support %c, %s, %d and %x only with the width and zero padding flag only.
int sound_default(int setting) int sound_default(int setting)
\group sound \group sound

View file

@ -2,22 +2,89 @@
<html> <html>
<head> <head>
<link href="layout.css" rel="stylesheet" type="text/css" /> <link href="layout.css" rel="stylesheet" type="text/css" />
<title>Plugin API - INDEX</title> <link rel="STYLESHEET" type="text/css" href="http://www.rockbox.org/style.css">
<link rel="shortcut icon" href="http://www.rockbox.org/favicon.ico">
<title>Rockbox Plugin API - INDEX</title>
<meta name="author" content="Rockbox Contributors">
</head> </head>
<body> <body>
<h1>Plugin API reference</h1> <table border=0 cellpadding=7 cellspacing=0>
<ul> <tr valign="top">
%GROUP_START% <td bgcolor="#6887bb" valign="top">
<li>%GROUP_NAME% <br>
<ul> <div align="center"><a href="http://www.rockbox.org/">
%FUNCTION_START% <img src="http://www.rockbox.org/rockbox100.png" width=99 height=30 border=0 alt="Rockbox.org home"></a>
<li><a href="%GROUP%.html#%FUNCTION%">%FUNCTION_NAME%</a></li> </div>
%FUNCTION_END% <div style="margin-top:20px">
</ul> <div class="submenu">
</li> Downloads
%GROUP_END% </div>
</ul> <img width=16 height=16 src='http://www.rockbox.org/silk_icons/package.png' align='top'> <a class="menulink" href="http://www.rockbox.org/download/">releases</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/bomb.png' align='top'> <a class="menulink" href="http://build.rockbox.org">current build</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/style.png' align='top'> <a class="menulink" href="http://www.rockbox.org/twiki/bin/view/Main/RockboxExtras">extras</a>
<div class="submenu">
Documentation
</div>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/page_white_acrobat.png' align='top'> <a class="menulink" href="http://www.rockbox.org/manual.shtml">manual</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/application_edit.png' align='top'> <a class="menulink" href="http://www.rockbox.org/twiki/">wiki</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/book_open.png' align='top'> <a class="menulink" href="http://www.rockbox.org/twiki/bin/view/Main/DocsIndex">docs index</a>
<div class="submenu">
Support
</div>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/email.png' align='top'> <a class="menulink" href="http://www.rockbox.org/mail/">mailing lists</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/group.png' align='top'> <a class="menulink" href="http://www.rockbox.org/irc/">IRC</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/comment_edit.png' align='top'> <a class="menulink" href="http://forums.rockbox.org/">forums</a>
<div class="submenu">
Tracker
</div>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/bug.png' align='top'> <a class="menulink" href="http://www.rockbox.org/tracker/index.php?type=2">bugs</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/brick.png' align='top'> <a class="menulink" href="http://www.rockbox.org/tracker/index.php?type=4">patches</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/lightbulb.png' align='top'>&nbsp;<a class="menulink" href="http://www.rockbox.org/tracker/index.php?type=1">requests</a><br>
<div class="submenu">
Search
</div>
<form id="fsform" action="http://www.rockbox.org/tracker/index.php" method="get" onSubmit="return fsstrip();">
<input id="taskid" name="show_task" type="text" size="10" maxlength="10" accesskey="t"><br>
<input class="mainbutton" type="submit" value="Flyspray #">
</form>
<br>
<form action="http://www.google.com/search">
<input name=as_q size=10><br>
<input value="Search" type=submit>
<input type=hidden name=as_sitesearch value="www.rockbox.org">
</form>
<p><form action="https://www.paypal.com/cgi-bin/webscr" method="get">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="bjorn@haxx.se">
<input type="hidden" name="item_name" value="Donation to the Rockbox project">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="cn" value="Note to the Rockbox team">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="image" src="http://www.rockbox.org/paypal-donate.gif" name="submit">
</form>
</div>
</td>
<td class="plugincontent">
<h1>Plugin API reference</h1>
<ul>
%GROUP_START%
<li>%GROUP_NAME%
<ul>
%FUNCTION_START%
<li><a href="%GROUP%.html#%FUNCTION%">%FUNCTION_NAME%</a></li>
%FUNCTION_END%
</ul>
</li>
%GROUP_END%
</ul>
</td>
</tr>
</table>
</body> </body>
</html> </html>

View file

@ -1,77 +1,77 @@
body .plugincontent
{ {
font-family: Verdana; font-family: Verdana;
} }
li .plugincontent li
{ {
font-size: 10px; font-size: 10px;
} }
code .plugincontent code
{ {
color: #00A; color: #00A;
} }
.see, .see a .plugincontent .see, .plugincontent .see a
{ {
color: #559; color: #559;
} }
.group .plugincontent .group
{ {
font-size: 12px; font-size: 12px;
} }
.group h3 .plugincontent .group h3
{ {
font-size: 14px; font-size: 14px;
} }
h2 .plugincontent h2
{ {
color: #D11; color: #D11;
} }
a .plugincontent a
{ {
color: blue; color: blue;
} }
a:hover .plugincontent a:hover
{ {
color: red; color: red;
} }
.top .plugincontent .top
{ {
font-size: 10px; font-size: 10px;
color: green; color: green;
} }
.extra .plugincontent .extra
{ {
font-weight: bold; font-weight: bold;
color: #992; color: #992;
} }
dl .plugincontent dl
{ {
border-left: 1px solid #CCC; border-left: 1px solid #CCC;
padding-left: 10px; padding-left: 10px;
} }
dt, dd .plugincontent dt, .plugincontent dd
{ {
font-style: normal; font-style: normal;
} }
dd .plugincontent dd
{ {
margin-left: 12em; margin-left: 12em;
} }
dt .plugincontent dt
{ {
clear: left; clear: left;
display: block; display: block;
@ -80,29 +80,28 @@ dt
width: 12em; width: 12em;
} }
hr .plugincontent hr
{ {
border: 1px solid #CCCCCC; border: 1px solid #CCCCCC;
margin: 1em 0; margin: 1em 0;
} }
#content .plugincontent #content
{ {
margin-left: 14em; margin-left: 14em;
margin-right: 1em; margin-right: 1em;
padding: 0; padding: 0;
} }
#menu .plugincontent #menu
{ {
position: fixed; position: absolute;
top: 0px; left: 120px; /* I hate IE */
left: 0px;
width: 14em; width: 14em;
padding: 0; padding: 0;
} }
#menu ul .plugincontent #menu ul
{ {
padding-left: 1em; padding-left: 1em;
} }

View file

@ -1,50 +1,118 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html> <html>
<head> <head>
<link href="layout.css" rel="stylesheet" type="text/css" /> <link href="layout.css" rel="stylesheet" type="text/css" />
<title>Plugin API - %GROUP_NAME%</title> <link rel="STYLESHEET" type="text/css" href="http://www.rockbox.org/style.css">
<link rel="shortcut icon" href="http://www.rockbox.org/favicon.ico">
<title>Rockbox Plugin API - %GROUP_NAME%</title>
<meta name="author" content="Rockbox Contributors">
</head> </head>
<body> <body>
<div id="menu">%MENU%</div> <table border=0 cellpadding=7 cellspacing=0>
<div id="content"> <tr valign="top">
<a link="top"></a> <td bgcolor="#6887bb" valign="top">
<h2>%GROUP_NAME%</h2> <br>
<span class="group"> <div align="center">
%FUNCTION_START% <a href="http://www.rockbox.org/">
<a id="%FUNCTION_NAME%"></a> <img src="http://www.rockbox.org/rockbox100.png" width=99 height=30 border=0 alt="Rockbox.org home"></a>
<h3>%FUNCTION%</h3>
%DESCRIPTION_START%
%FUNCTION_DESCRIPTION%
<br /><br />
%DESCRIPTION_END%
%PARAMETER_START%
<span class="extra">Parameters:</span>
<dl>
%PARAMETERS_START%
<dt>%PARAM1%</dt><dd>%PARAM2%</dd>
%PARAMETERS_END%
</dl>
%PARAMETER_END%
%RETURN_START%
<span class="extra">Returns:</span> %RETURN%<br /><br />
%RETURN_END%
%CONDITIONS_START%
<span class="extra">Conditions:</span> %CONDITIONS%<br /><br />
%CONDITIONS_END%
%SEE_START%
<span class="see">Also see %SEE%</span><br /><br />
%SEE_END%
<a href="#top" class="top">To top</a><hr />
%FUNCTION_END%
</span>
</div> </div>
<div style="margin-top:20px">
<div class="submenu">
Downloads
</div>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/package.png' align='top'> <a class="menulink" href="http://www.rockbox.org/download/">releases</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/bomb.png' align='top'> <a class="menulink" href="http://build.rockbox.org">current build</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/style.png' align='top'> <a class="menulink" href="http://www.rockbox.org/twiki/bin/view/Main/RockboxExtras">extras</a>
<div class="submenu">
Documentation
</div>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/page_white_acrobat.png' align='top'> <a class="menulink" href="http://www.rockbox.org/manual.shtml">manual</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/application_edit.png' align='top'> <a class="menulink" href="http://www.rockbox.org/twiki/">wiki</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/book_open.png' align='top'> <a class="menulink" href="http://www.rockbox.org/twiki/bin/view/Main/DocsIndex">docs index</a>
<div class="submenu">
Support
</div>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/email.png' align='top'> <a class="menulink" href="http://www.rockbox.org/mail/">mailing lists</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/group.png' align='top'> <a class="menulink" href="http://www.rockbox.org/irc/">IRC</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/comment_edit.png' align='top'> <a class="menulink" href="http://forums.rockbox.org/">forums</a>
<div class="submenu">
Tracker
</div>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/bug.png' align='top'> <a class="menulink" href="http://www.rockbox.org/tracker/index.php?type=2">bugs</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/brick.png' align='top'> <a class="menulink" href="http://www.rockbox.org/tracker/index.php?type=4">patches</a><br>
<img width=16 height=16 src='http://www.rockbox.org/silk_icons/lightbulb.png' align='top'>&nbsp;<a class="menulink" href="http://www.rockbox.org/tracker/index.php?type=1">requests</a><br>
<div class="submenu">
Search
</div>
<form id="fsform" action="http://www.rockbox.org/tracker/index.php" method="get" onSubmit="return fsstrip();">
<input id="taskid" name="show_task" type="text" size="10" maxlength="10" accesskey="t"><br>
<input class="mainbutton" type="submit" value="Flyspray #">
</form>
<br>
<form action="http://www.google.com/search">
<input name=as_q size=10><br>
<input value="Search" type=submit>
<input type=hidden name=as_sitesearch value="www.rockbox.org">
</form>
<p><form action="https://www.paypal.com/cgi-bin/webscr" method="get">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="bjorn@haxx.se">
<input type="hidden" name="item_name" value="Donation to the Rockbox project">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="cn" value="Note to the Rockbox team">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="image" src="http://www.rockbox.org/paypal-donate.gif" name="submit">
</form>
</div>
</td>
<td class="plugincontent">
<div id="menu">%MENU%</div>
<div id="content">
<a id="top"></a>
<h2>%GROUP_NAME%</h2>
<span class="group">
%FUNCTION_START%
<a id="%FUNCTION_NAME%"></a>
<h3>%FUNCTION%</h3>
%DESCRIPTION_START%
%FUNCTION_DESCRIPTION%
<br /><br />
%DESCRIPTION_END%
%PARAMETER_START%
<span class="extra">Parameters:</span>
<dl>
%PARAMETERS_START%
<dt>%PARAM1%</dt><dd>%PARAM2%</dd>
%PARAMETERS_END%
</dl>
%PARAMETER_END%
%RETURN_START%
<span class="extra">Returns:</span> %RETURN%<br /><br />
%RETURN_END%
%CONDITIONS_START%
<span class="extra">Conditions:</span> %CONDITIONS%<br /><br />
%CONDITIONS_END%
%SEE_START%
<span class="see">Also see %SEE%</span><br /><br />
%SEE_END%
<a href="#top" class="top">To top</a><hr />
%FUNCTION_END%
</span>
</div>
</td>
</tr>
</table>
</body> </body>
</html> </html>