Move stuff that should *only* be known by the lowest-level code that
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 4 Jan 2012 03:02:13 +0000 (03:02 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 4 Jan 2012 03:02:13 +0000 (03:02 +0000)
deals with the sync pipe - i.e., only by sync_pipe.c and dumpcap.c -
into sync_pipe.h.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40366 f5534014-38df-0310-8fa8-9805f1628bb7

capture_sync.h
sync_pipe.h

index ff1bd31ab4567ca0bbb5e5087a2bb505cc5ab66e..d38e2ddd77d6cdf95f045af2c845764903038936 100644 (file)
@@ -57,12 +57,6 @@ sync_pipe_stop(capture_options *capture_opts);
 extern void
 sync_pipe_kill(int fork_child);
 
-/** Has the parent signalled the child to stop? */
-#define SIGNAL_PIPE_CTRL_ID_NONE "none"
-#ifdef _WIN32
-#define SIGNAL_PIPE_FORMAT "\\\\.\\pipe\\wireshark.%s.signal"
-#endif
-
 /** Get an interface list using dumpcap */
 extern int
 sync_interface_list_open(gchar **data, gchar **primary_msg,
index b5d80cb706312a0dfe5d2378741abf9d61d36e8c..029f29fed17d91326497eea6ed739705fb323e73 100644 (file)
@@ -78,4 +78,10 @@ extern void
 sync_pipe_errmsg_to_parent(int pipe_fd, const char *error_msg,
                            const char *secondary_error_msg);
 
+/** Has the parent signalled the child to stop? */
+#define SIGNAL_PIPE_CTRL_ID_NONE "none"
+#ifdef _WIN32
+#define SIGNAL_PIPE_FORMAT "\\\\.\\pipe\\wireshark.%s.signal"
+#endif
+
 #endif /* sync_pipe.h */