/*****************************************************************************
- * zip.h: Module (access+demux) to extract different archives, based on zlib
+ * zip.h: Module (access+filter) to extract different archives, based on zlib
*****************************************************************************
- * Copyright (C) 2007 the VideoLAN team
+ * Copyright (C) 2009 the VideoLAN team
* $Id$
*
* Authors: Jean-Philippe André <jpeg@videolan.org>
#ifndef ZIP_ACCESSDEMUX_H
#define ZIP_ACCESSDEMUX_H
-#include <vlc/vlc.h>
#include <vlc_common.h>
#include <vlc_url.h>
#include <vlc_strings.h>
#define ZIP_FILENAME_LEN 512
#define ZIP_BUFFER_LEN 32768
-#define ZIP_SEP "|"
-#define ZIP_SEP_CHAR '|'
+#define ZIP_SEP "!/"
+#define ZIP_SEP_LEN 2
/** **************************************************************************
int AccessOpen( vlc_object_t *p_this );
void AccessClose( vlc_object_t *p_this );
+/** Common function */
+bool isAllowedChar( char c );
+
/** **************************************************************************
* zipIO function headers : how to use vlc_stream to read the zip
* Note: static because the implementations differ