mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Updated The VDR Plugin System (markdown)
parent
046b7f062e
commit
eedf8c12ef
@ -420,7 +420,7 @@ these arguments. As with any normal C program, the strings pointed to by <tt>arg
|
||||
will survive the entire lifetime of the plugin, so it is safe to store pointers to
|
||||
these values inside the plugin. Here's an example:
|
||||
|
||||
<p><pre>
|
||||
<pre>
|
||||
bool cPluginHello::ProcessArgs(int argc, char *argv[])
|
||||
{
|
||||
// Implement command line argument processing here if applicable.
|
||||
@ -442,7 +442,7 @@ bool cPluginHello::ProcessArgs(int argc, char *argv[])
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</pre><p>
|
||||
</pre>
|
||||
|
||||
The return value must be <i>true</i> if all options have been processed
|
||||
correctly, or <i>false</i> in case of an error. The first plugin that returns
|
||||
|
Loading…
x
Reference in New Issue
Block a user