*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <glib.h>
#include <wsutil/file_util.h>
+#include <wsutil/filesystem.h>
#include "globals.h"
-#include <epan/filesystem.h>
+#include <epan/strutil.h>
#include "fileset.h"
/* test, if both files could be in the same file set */
/* (the filenames must already be in correct shape) */
-gboolean
+static gboolean
fileset_is_file_in_set(const char *fname1, const char *fname2)
{
char *pfx1;
/* add all file set entries to the dialog */
-void fileset_update_dlg(void)
+void fileset_update_dlg(void *window)
{
GList *le;
/* add all entires to the dialog */
le = g_list_first(set.entries);
while(le) {
- fileset_dlg_add_file((fileset_entry *)le->data);
+ fileset_dlg_add_file((fileset_entry *)le->data, window);
le = g_list_next(le);
}
}
/* walk through the directory of the loaded file and add every file matching the current file */
void
-fileset_add_dir(const char *fname)
+fileset_add_dir(const char *fname, void *window)
{
WS_DIR *dir; /* scanned directory */
WS_DIRENT *file; /* current file */
/* sort entries by creation time */
set.entries = g_list_sort(set.entries, fileset_sort_compare);
- fileset_update_dlg();
+ fileset_update_dlg(window);
}
set.dirname = NULL;
}
}
-
-