};
+
/**
* @brief Process a command line option
*
* @param value argument, NULL if none was given
* @return #GNUNET_OK to continue processing other options, #GNUNET_SYSERR to abort
*/
-typedef int (*GNUNET_GETOPT_CommandLineOptionProcessor) (struct
- GNUNET_GETOPT_CommandLineProcessorContext *ctx,
- void *scls,
- const char *option,
- const char *value);
+typedef int
+(*GNUNET_GETOPT_CommandLineOptionProcessor) (struct
+ GNUNET_GETOPT_CommandLineProcessorContext *ctx,
+ void *scls,
+ const char *option,
+ const char *value);
/**
* @brief Definition of a command line option.
const char *description;
/**
- * Is an argument required? 0: #GNUNET_NO (includes optional), 1: #GNUNET_YES.
+ * Is an argument required? #GNUNET_NO (includes optional) or
+ * #GNUNET_YES (required)
*/
int require_argument;
*/
const char *env_varname_alt;
+ /**
+ * E-mail address for reporting bugs.
+ */
+ const char *bug_email;
+
+ /**
+ * Project homepage.
+ */
+ const char *homepage;
+
};
GNUNET_OS_project_data_default (void);
+/**
+ * @return current (actual) project data.
+ */
+const struct GNUNET_OS_ProjectData *
+GNUNET_OS_project_data_get (void);
+
+
/**
* Setup OS subsystem with project data.
*
char *scp;
const char *trans;
const struct GNUNET_GETOPT_CommandLineOption *opt;
+ const struct GNUNET_OS_ProjectData *pd;
if (NULL != about)
{
printf ("\n");
i++;
}
- printf ("Report bugs to gnunet-developers@gnu.org.\n"
- "GNUnet home page: http://www.gnu.org/software/gnunet/\n"
- "General help using GNU software: http://www.gnu.org/gethelp/\n");
+ pd = GNUNET_OS_project_data_get ();
+ printf ("Report bugs to %s.\n"
+ "GNUnet home page: %s\n"
+ "General help using GNU software: http://www.gnu.org/gethelp/\n",
+ pd->bug_email,
+ pd->homepage);
return GNUNET_NO;
}
.project_dirname = "gnunet",
.binary_name = "gnunet-arm",
.env_varname = "GNUNET_PREFIX",
+ .bug_email = "gnunet-developers@gnu.org",
+ .homepage = "http://www.gnu.org/s/gnunet/",
};
/**
}
+/**
+ * @return current project data.
+ */
+const struct GNUNET_OS_ProjectData *
+GNUNET_OS_project_data_get ()
+{
+ return current_pd;
+}
+
+
/**
* Setup OS subsystem with project data.
*