diff options
Diffstat (limited to 'nanohttp/nanohttp-common.h')
-rw-r--r-- | nanohttp/nanohttp-common.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/nanohttp/nanohttp-common.h b/nanohttp/nanohttp-common.h index 79ca625..1d89d30 100644 --- a/nanohttp/nanohttp-common.h +++ b/nanohttp/nanohttp-common.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-common.h,v 1.14 2004/10/28 10:30:46 snowdrop Exp $ + * $Id: nanohttp-common.h,v 1.15 2004/10/29 09:27:05 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003-2004 Ferhat Ayaz @@ -43,6 +43,7 @@ #define NHTTPD_ARG_TERMSIG "-NHTTPtsig"
#define NHTTPD_ARG_MAXCONN "-NHTTPmaxconn"
#define NHTTP_ARG_LOGFILE "-NHTTPlog"
+#define NHTTP_ARG_TMPDIR "-NHTTPtmpdir"
#ifndef SAVE_STR #define SAVE_STR(str) ((str==0)?("(null)"):(str)) @@ -416,7 +417,8 @@ typedef struct _part char content_type[128]; char transfer_encoding[128]; char filename[250]; - struct _part *next; + struct _part *next;
+ int deleteOnExit; /* default is 0 */ }part_t; @@ -447,8 +449,13 @@ attachments_t *attachments_new(); /* should be used internally */ */ void attachments_free(attachments_t *message); void attachments_add_part(attachments_t *attachments, part_t *part);
+
- +/* tmp directory for multipart/related stuff */
+#define HOPTION_TMP_DIR 2
+void hoption_init_args(int argc, char* argv[]);
+void hoption_set(int opt, const char* value);
+char *hoption_get(int opt); /* logging stuff */ @@ -471,8 +478,9 @@ void log_set_file(const char *filename); char *log_get_file();
#ifdef WIN32 - #ifndef __MINGW32__ - #define __FUNCTION__ "***" + #ifndef __MINGW32__
+ char *VisualC_funcname(const char* file, int line); /* not thread safe!*/ + #define __FUNCTION__ VisualC_funcname(__FILE__, __LINE__) #endif #endif |