Diff for /libaitwww/inc/aitwww.h between versions 1.3.4.1 and 1.4.2.3

version 1.3.4.1, 2012/07/31 11:56:16 version 1.4.2.3, 2012/08/06 12:02:05
Line 50  SUCH DAMAGE. Line 50  SUCH DAMAGE.
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/queue.h>  #include <sys/queue.h>
 #include <sys/uio.h>  #include <sys/uio.h>
   #include <aitio.h>
   
   
 /* URL staff ... */  /* URL staff ... */
Line 89  struct tagReqXML { Line 90  struct tagReqXML {
 /* CGI variables */  /* CGI variables */
   
 struct tagCGI {  struct tagCGI {
        char                    *cgi_name;        ait_val_t                *cgi_name;
        char                    *cgi_value;        ait_val_t                *cgi_value;
   
         SLIST_ENTRY(tagCGI)     cgi_node;          SLIST_ENTRY(tagCGI)     cgi_node;
 };  };
Line 133  cgi_t *www_initCGI(void); Line 134  cgi_t *www_initCGI(void);
  * return: none   * return: none
  */   */
 void www_closeCGI(cgi_t ** __restrict cgi);  void www_closeCGI(cgi_t ** __restrict cgi);
   #define www_freeAttributes      www_closeCGI
 /*  /*
  * www_parseQuery() - Parse CGI query string   * www_parseQuery() - Parse CGI query string
  *   *
Line 200  inline int www_header(FILE *output); Line 202  inline int www_header(FILE *output);
  */   */
 inline cgi_t *www_parseAttributes(const char **ct);  inline cgi_t *www_parseAttributes(const char **ct);
 /*  /*
 * www_freeAttributes() - Free attributes * www_getAttribute() - Get Attribute from attribute session
  *   *
 * @attr = Attributes * @cgi = Inited attribute session
 * return: none * @name = Name of attribute variable
  * return: NULL not found or !=NULL value
  */   */
inline void www_freeAttributes(cgi_t ** __restrict attr);inline ait_val_t *www_getAttribute(cgi_t * __restrict cgi, const char *name);
/* 
 * www_getAttribute() - Get attribute by name 
 * 
 * @attr = Attributes 
 * @name = Name of attribute 
 * return: NULL not found or !=NULL attribute value 
 */ 
inline const char *www_getAttribute(cgi_t * __restrict attr, const char *name); 
   
   
 /*  /*
Line 237  int www_cmptype(const char *ct, const char *type); Line 232  int www_cmptype(const char *ct, const char *type);
  *   *
  * @str = query string   * @str = query string
  * @delim = delimiter   * @delim = delimiter
 * return: NULL error or AV pair, must be free() after use! * return: NULL error or AV pair, must be io_free() after use!
  */   */
char *www_getpair(char ** __restrict str, const char *delim);ait_val_t *www_getpair(char ** __restrict str, const char *delim);
 /*  /*
  * www_x2c() - Hex from string to digit   * www_x2c() - Hex from string to digit
  *   *
Line 254  inline char www_x2c(const char *str); Line 249  inline char www_x2c(const char *str);
  * return: none   * return: none
  */   */
 inline void www_unescape(char * __restrict str);  inline void www_unescape(char * __restrict str);
   /*
    * www_undot() - Undotted and clean WWW query filename
    *
    * @pname = query filename
    * return: =NULL error or !=NULL allocated valid filename, after use you must call io_freeVar()
    */
   ait_val_t *www_undot(const char * __restrict pname);
   
   
 /*  /*

Removed from v.1.3.4.1  
changed lines
  Added in v.1.4.2.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>