CGI Bash Shell Interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mimetype.h 873B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @PROJECT CGI Bash Shell Interface
  3. * @COPYRIGHT See COPYING in the top level directory
  4. * @FILE mimetype.h
  5. * @PURPOSE Mimetype and file upload handler
  6. * @DEVELOPERS Nathan Angelacos <nangel@users.sourceforge.net>
  7. * Rafal Kupiec <belliash@asiotec.eu.org>
  8. */
  9. #ifndef __MIMETYPE_H
  10. #define __MIMETYPE_H
  11. typedef struct {
  12. char* name;
  13. char* filename;
  14. char* type;
  15. char* tempname;
  16. buffer_t value;
  17. int fh;
  18. } mime_var_t;
  19. void empty_stdin(void);
  20. void mime_exec(mime_var_t* obj, char* fifo);
  21. char* mime_substr(char* start, int len);
  22. void mime_tag_add(mime_var_t* obj, char* str);
  23. void mime_var_destroy(mime_var_t* obj);
  24. void mime_var_init(mime_var_t* obj);
  25. void mime_var_open_target(mime_var_t* obj);
  26. void mime_var_putenv(list_t* env, mime_var_t* obj);
  27. void mime_var_writer(mime_var_t* obj, char* str, int len);
  28. int rfc2388_handler(list_t* env);
  29. #endif