aboutsummaryrefslogtreecommitdiffstats
path: root/capture.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-02-05 11:37:56 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-02-05 11:37:56 +0000
commit49b4e57a10cc293ea43d2d5181ca4a457861f28a (patch)
tree5fd6b06ad22ecabbdbd5e8027e205ce3df7f8606 /capture.h
parent84d4f0e508ce2876a19515a13c983314b1cfeff2 (diff)
updated some comments
svn path=/trunk/; revision=13301
Diffstat (limited to 'capture.h')
-rw-r--r--capture.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/capture.h b/capture.h
index 8e16b791e1..e52582aa80 100644
--- a/capture.h
+++ b/capture.h
@@ -48,7 +48,7 @@ typedef struct capture_options_tag {
int linktype; /**< Data link type to use, or -1 for
"use default" */
gboolean capture_child; /**< True if this is the child for "-S" */
- gchar *save_file; /**< File that user saved capture to */
+ gchar *save_file; /**< File the capture was saved in */
int save_file_fd; /**< File descriptor for saved file */
/* GUI related */
@@ -85,16 +85,20 @@ typedef struct capture_options_tag {
} capture_options;
-/** Open a specified file, or create a temporary file, and start a capture
+/**
+ * Open a specified file, or create a temporary file, and start a capture
* to the file in question.
*
- * @return TRUE if the capture starts successfully, FALSE otherwise. */
+ * @param capture_opts the numerous capture options
+ * @param save_file the name of the capture file, or NULL for a temporary file
+ * @return TRUE if the capture starts successfully, FALSE otherwise.
+ */
extern gboolean do_capture(capture_options *capture_opts, const char *save_file);
/** Do the low-level work of a capture (start the capture child). */
extern int capture_start(capture_options *capture_opts, gboolean *stats_known, struct pcap_stat *stats);
-/** Stop a capture from a menu item. */
+/** Stop a capture (usually from a menu item). */
extern void capture_stop(capture_options *capture_opts);
/** Terminate the capture child cleanly when exiting. */