[Openvas-commits] r7985 - in trunk/openvas-manager: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jun 9 18:07:26 CEST 2010
Author: felix
Date: 2010-06-09 18:07:24 +0200 (Wed, 09 Jun 2010)
New Revision: 7985
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/src/omp.c
Log:
* src/omp.c: Updated documentation.
(omp_xml_handle_start_element): Fixed some alignment issues.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2010-06-09 15:27:19 UTC (rev 7984)
+++ trunk/openvas-manager/ChangeLog 2010-06-09 16:07:24 UTC (rev 7985)
@@ -1,5 +1,10 @@
-2010-06-04 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
+2010-06-09 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
+ * src/omp.c: Updated documentation.
+ (omp_xml_handle_start_element): Fixed some alignment issues.
+
+2010-06-09 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
+
* src/omp.c (append_attribute): New function, extracted from
omp_xml_handle_start_element.
(omp_xml_handle_start_element): Call new function.
@@ -181,11 +186,6 @@
2010-06-04 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
- * src/omp.c (omp_xml_handle_end_element) [CLIENT_CREATE_TARGET]:
- Added missing breaks in switch statement.
-
-2010-06-04 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
-
* src/manage.h (create_target): Removed names from arguments.
2010-06-04 Felix Wolfsteller <felix.wolfsteller at greenbone.net>
Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c 2010-06-09 15:27:19 UTC (rev 7984)
+++ trunk/openvas-manager/src/omp.c 2010-06-09 16:07:24 UTC (rev 7985)
@@ -162,6 +162,16 @@
return "Log";
}
+/**
+ * @brief Compares two textual threat level representations, sorting
+ * @brief descending.
+ *
+ * @param[in] arg_one First threat level.
+ * @param[in] arg_two Second threat level.
+ *
+ * @return 1, 0 or -1 if first given threat is less than, equal to or greater
+ * than second.
+ */
static gint
compare_ports_desc (gconstpointer arg_one, gconstpointer arg_two)
{
@@ -172,6 +182,15 @@
strlen (one), one);
}
+/**
+ * @brief Compares two textual threat level representations, sorting ascending.
+ *
+ * @param[in] arg_one First threat level.
+ * @param[in] arg_two Second threat level.
+ *
+ * @return -1, 0 or 1 if first given threat is less than, equal to or greater
+ * than second.
+ */
static gint
compare_ports_asc (gconstpointer arg_one, gconstpointer arg_two)
{
@@ -2469,7 +2488,7 @@
else if (strcasecmp ("DELETE_AGENT", element_name) == 0)
{
append_attribute (attribute_names, attribute_values,
- "agent_id", &delete_agent_data->agent_id);
+ "agent_id", &delete_agent_data->agent_id);
set_client_state (CLIENT_DELETE_AGENT);
}
else if (strcasecmp ("DELETE_CONFIG", element_name) == 0)
@@ -2506,7 +2525,7 @@
else if (strcasecmp ("DELETE_SCHEDULE", element_name) == 0)
{
append_attribute (attribute_names, attribute_values, "schedule_id",
- &delete_schedule_data->schedule_id);
+ &delete_schedule_data->schedule_id);
set_client_state (CLIENT_DELETE_SCHEDULE);
}
else if (strcasecmp ("DELETE_TARGET", element_name) == 0)
@@ -2725,7 +2744,7 @@
append_attribute (attribute_names, attribute_values,
"search_phrase",
- &get_report_data->search_phrase);
+ &get_report_data->search_phrase);
if (find_attribute (attribute_names, attribute_values,
"notes", &attribute))
@@ -4533,7 +4552,7 @@
/**
* @brief Send XML for an NVT.
*
- * @param[in] key The plugin OID.
+ * @param[in] nvts The NVT.
* @param[in] details If true, detailed XML, else simple XML.
* @param[in] pref_count Preference count. Used if details is true.
* @param[in] timeout Timeout. Used if details is true.
@@ -4901,7 +4920,7 @@
*
* @return The maximum number of chars of \param text which the caller must
* write out in order to write out at most line_width characters of the
- * next line in \param text. As a special case if a newline occurs
+ * next line in \param text . As a special case if a newline occurs
* before line width then just return one more than number of chars
* needed to write up to the newline.
*/
@@ -4984,7 +5003,7 @@
/**
* @brief Write verbatim LaTeX text to a stream, with wrapping.
*
- * Write \ref text to \ref file, doing line wraps at 80 chars, adding a
+ * Write \param text to \param file , doing line wraps at 80 chars, adding a
* symbol to indicate each line wrap, and putting each line in a separate
* verbatim environment so that the text breaks across pages.
*
@@ -5982,8 +6001,8 @@
* @brief Buffer XML for some results.
*
* @param[in] results Result iterator.
- * @param[in] task Task associated with results. Only needed
- * with include_notes.
+ * @param[in] task Task associated with results. Only
+ * needed with include_notes.
* @param[in] include_notes Whether to include notes.
* @param[in] include_notes_details Whether to include details of notes.
*/
More information about the Openvas-commits
mailing list