public/extensions/IWebternet.h
changeset 3919 116256b519b5
parent 2556 7757e7e4aeef
     1.1 --- a/public/extensions/IWebternet.h	Tue May 14 11:27:06 2013 -0400
     1.2 +++ b/public/extensions/IWebternet.h	Thu May 16 14:49:03 2013 +0100
     1.3 @@ -40,7 +40,7 @@
     1.4   */
     1.5  
     1.6  #define SMINTERFACE_WEBTERNET_NAME		"IWebternet"
     1.7 -#define SMINTERFACE_WEBTERNET_VERSION	2
     1.8 +#define SMINTERFACE_WEBTERNET_VERSION	3
     1.9  
    1.10  namespace SourceMod
    1.11  {
    1.12 @@ -79,6 +79,17 @@
    1.13  		 * @return					True on success, false on failure.
    1.14  		 */
    1.15  		virtual bool AddString(const char *name, const char *data) = 0;
    1.16 +
    1.17 +		/**
    1.18 +		 * @brief Adds a file to the form.
    1.19 +		 *
    1.20 +		 * All data is copied locally and may go out of scope.
    1.21 +		 *
    1.22 +		 * @param name				Field name (null terminated).
    1.23 +		 * @param path				Local file path (null terminated).
    1.24 +		 * @return					True on success, false on failure.
    1.25 +		 */
    1.26 +		virtual bool AddFile(const char *name, const char *path) = 0;
    1.27  	};
    1.28  
    1.29  	/**