projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mp3dec: Improve bad main_data_begin pointer error handling.
[paraslash.git]
/
recv_common.c
diff --git
a/recv_common.c
b/recv_common.c
index 1df503e4c29d2536450fbbfb0df822034e7e3ad5..953e2a1143ebd28424fb09a978611eaf52bf28d6 100644
(file)
--- a/
recv_common.c
+++ b/
recv_common.c
@@
-15,6
+15,18
@@
#include "string.h"
DEFINE_RECEIVER_ARRAY;
#include "string.h"
DEFINE_RECEIVER_ARRAY;
+
+/**
+ * Call the init function of each paraslash receiver.
+ */
+void recv_init(void)
+{
+ int i;
+
+ FOR_EACH_RECEIVER(i)
+ receivers[i].init(&receivers[i]);
+}
+
static void *parse_receiver_args(int receiver_num, char *options)
{
struct receiver *r = &receivers[receiver_num];
static void *parse_receiver_args(int receiver_num, char *options)
{
struct receiver *r = &receivers[receiver_num];
@@
-85,6
+97,11
@@
void *check_receiver_arg(char *ra, int *receiver_num)
return NULL;
}
return NULL;
}
+/**
+ * Print out the help texts to all receivers.
+ *
+ * \param detailed Whether the detailed help should be printed.
+ */
void print_receiver_helps(int detailed)
{
int i;
void print_receiver_helps(int detailed)
{
int i;
@@
-95,7
+112,6
@@
void print_receiver_helps(int detailed)
printf_or_die("\n\n");
FOR_EACH_RECEIVER(i) {
struct receiver *r = receivers + i;
printf_or_die("\n\n");
FOR_EACH_RECEIVER(i) {
struct receiver *r = receivers + i;
-
if (!r->help.short_help)
continue;
printf_or_die("Options for %s:\n", r->name);
if (!r->help.short_help)
continue;
printf_or_die("Options for %s:\n", r->name);