[Openvas-commits] r2629 - in trunk/openvas-client: . nessus/prefs_dialog

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 2 11:32:55 CET 2009


Author: felix
Date: 2009-03-02 11:32:53 +0100 (Mon, 02 Mar 2009)
New Revision: 2629

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/nessus/prefs_dialog/prefs_dialog_scan_opt.c
Log:
* nessus/prefs_dialog/prefs_dialog_scan_opts.c: Tranformed doc blocks,
K&R style replacements.


Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-03-02 10:14:53 UTC (rev 2628)
+++ trunk/openvas-client/ChangeLog	2009-03-02 10:32:53 UTC (rev 2629)
@@ -1,5 +1,10 @@
 2009-03-02  Felix Wolfsteller <felix.wolfsteller at intevation.de>
 
+	* nessus/prefs_dialog/prefs_dialog_scan_opts.c: Tranformed doc blocks,
+	K&R style replacements.
+
+2009-03-02  Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
 	In module data_mining, added GPL header from implementation file to
 	header file.
 

Modified: trunk/openvas-client/nessus/prefs_dialog/prefs_dialog_scan_opt.c
===================================================================
--- trunk/openvas-client/nessus/prefs_dialog/prefs_dialog_scan_opt.c	2009-03-02 10:14:53 UTC (rev 2628)
+++ trunk/openvas-client/nessus/prefs_dialog/prefs_dialog_scan_opt.c	2009-03-02 10:32:53 UTC (rev 2629)
@@ -40,22 +40,19 @@
 
 #include "../nessus_i18n.h"
 
-/* column IDs of scanner TreeView Model */
+/** Column IDs of scanner TreeView Model. */
 enum {
   COL_NAME,
   COL_PLUGIN,
   NUM_COLS
 };
 
-/* Set the "active" property of the toggle cell renderer
+/**
+ * @brief Set the "active" property of the toggle cell renderer.
  */
 static void
-active_data_func(tree_column, cell, model, iter, data)
-  GtkTreeViewColumn *tree_column;
-  GtkCellRenderer *cell;
-  GtkTreeModel *model;
-  GtkTreeIter *iter;
-  gpointer data;
+active_data_func (GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
+                  GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
 {
   struct nessus_plugin *plugin;
   gboolean is_active = FALSE;
@@ -72,7 +69,8 @@
       NULL);
 }
 
-/* Toggle the active/launch flag of a plugin
+/**
+ * @brief Toggle the active/launch flag of a plugin.
  *
  * This function is called when the checkbox in the scanners
  * tree view widget has been toggled by the user.
@@ -81,10 +79,8 @@
  * path_str must describe the path in the model of that tree view.
  */
 static void
-prefs_scanner_list_toggle_callback(cell, path_str, data)
-  GtkCellRendererToggle *cell;
-  gchar                 *path_str;
-  gpointer               data;
+prefs_scanner_list_toggle_callback (GtkCellRendererToggle *cell, gchar *path_str,
+                                    gpointer data)
 {
   GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(data));
   GtkTreeIter iter;
@@ -95,15 +91,14 @@
   plugin->enabled = ! plugin->enabled;
 }
 
-/* Called when the user double clicks on a row of the scanner tree view.
- * Pop up the plugin info dialog.
+/**
+ * @brief Pop up the plugin info dialog.
+ * 
+ * Called when the user double clicks on a row of the scanner tree view.
  */
 static void
-scanners_row_activated(treeview, path, column, user_data)
-  GtkTreeView *treeview;
-  GtkTreePath *path;
-  GtkTreeViewColumn *column;
-  gpointer user_data;
+scanners_row_activated (GtkTreeView *treeview, GtkTreePath *path,
+                        GtkTreeViewColumn *column, gpointer user_data)
 {
   GtkTreeModel * model = gtk_tree_view_get_model(treeview);
   GtkTreeIter iter;
@@ -115,8 +110,8 @@
   plugin_info_window_setup(Context->scanners, plugin_name);
 }
 
-struct arglist *prefs_dialog_scan_opt(context)
-  struct context *context;
+struct arglist *
+prefs_dialog_scan_opt (struct context *context)
 {
  GtkWidget * frame;
  GtkWidget * table;
@@ -285,13 +280,12 @@
  return(ctrls);
 }
 
-/* Clean the store and then fill it with the Scanners of the given
- * context.
+/**
+ * @brief Clean the store and then fill it with the Scanners of the given
+ * @brief context.
  */
 void
-fill_scanner_list(context, store)
-  struct context *context;
-  GtkListStore *store;
+fill_scanner_list (struct context *context, GtkListStore *store)
 {
   GtkTreeIter   iter;
   struct nessus_plugin * scans = context->scanners;
@@ -310,10 +304,10 @@
 }
 
 void
-prefs_dialog_scan_opt_readonly(struct arglist * ctrls, gboolean readonly)
+prefs_dialog_scan_opt_readonly (struct arglist * ctrls, gboolean readonly)
 {
   read_only_set_read_only(GTK_WIDGET(arg_get_value(ctrls, "FRAME")),
       readonly);
 }
 
-#endif
+#endif /* USE_GTK */



More information about the Openvas-commits mailing list