summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-common.h
diff options
context:
space:
mode:
authorGravatar snowdrop2006-01-10 11:29:04 +0000
committerGravatar snowdrop2006-01-10 11:29:04 +0000
commit07c7c81772c4b60b7980880847f3b21455a0f3c9 (patch)
treed7f8ea3508586842124684aa8f0b860f3a3a1c47 /nanohttp/nanohttp-common.h
parente96ea6884919f551111c32de0b63af4dff791f12 (diff)
downloadcsoap-07c7c81772c4b60b7980880847f3b21455a0f3c9.tar.gz
csoap-07c7c81772c4b60b7980880847f3b21455a0f3c9.tar.bz2
indent with 'indent -nut -bli0 -fca -npcs' command
Diffstat (limited to 'nanohttp/nanohttp-common.h')
-rw-r--r--nanohttp/nanohttp-common.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/nanohttp/nanohttp-common.h b/nanohttp/nanohttp-common.h
index 36136b5..7a957ce 100644
--- a/nanohttp/nanohttp-common.h
+++ b/nanohttp/nanohttp-common.h
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: nanohttp-common.h,v 1.21 2006/01/10 11:21:55 snowdrop Exp $
+ * $Id: nanohttp-common.h,v 1.22 2006/01/10 11:29:05 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -152,8 +152,8 @@ Set Sleep function platform depended
#ifdef WIN32
#include <string.h>
-char *strtok_r (char *s, const char *delim, char **save_ptr);
-struct tm *localtime_r (const time_t * const timep, struct tm *p_tm);
+char *strtok_r(char *s, const char *delim, char **save_ptr);
+struct tm *localtime_r(const time_t * const timep, struct tm *p_tm);
#endif
typedef unsigned char byte_t;
@@ -182,18 +182,18 @@ typedef enum _hreq_method
} hreq_method_t;
-herror_t herror_new (const char *func, int errcode, const char *format, ...);
-int herror_code (herror_t err);
-char *herror_func (herror_t err);
-char *herror_message (herror_t err);
-void herror_release (herror_t err);
+herror_t herror_new(const char *func, int errcode, const char *format, ...);
+int herror_code(herror_t err);
+char *herror_func(herror_t err);
+char *herror_message(herror_t err);
+void herror_release(herror_t err);
/*
string function to compare strings ignoring case
Returns 1 if s1 equals s2 and 0 otherwise.
*/
-int strcmpigcase (const char *s1, const char *s2);
+int strcmpigcase(const char *s1, const char *s2);
@@ -221,7 +221,7 @@ struct hpair
@returns A newly crated hpair_t object. Use hpair_free()
or hpair_free_deep() to free the pair.
*/
-hpair_t *hpairnode_new (const char *key, const char *value, hpair_t * next);
+hpair_t *hpairnode_new(const char *key, const char *value, hpair_t * next);
/**
@@ -239,7 +239,7 @@ hpair_t *hpairnode_new (const char *key, const char *value, hpair_t * next);
@returns A newly crated hpair_t object. Use hpair_free()
or hpair_free_deep() to free the pair.
*/
-hpair_t *hpairnode_parse (const char *str, const char *delim, hpair_t * next);
+hpair_t *hpairnode_parse(const char *str, const char *delim, hpair_t * next);
/**
@@ -247,7 +247,7 @@ hpair_t *hpairnode_parse (const char *str, const char *delim, hpair_t * next);
@param pair the pair to free
*/
-void hpairnode_free (hpair_t * pair);
+void hpairnode_free(hpair_t * pair);
/**
@@ -257,7 +257,7 @@ void hpairnode_free (hpair_t * pair);
@param pair the pair to start to free the linked list
*/
-void hpairnode_free_deep (hpair_t * pair);
+void hpairnode_free_deep(hpair_t * pair);
/**
@@ -270,7 +270,7 @@ void hpairnode_free_deep (hpair_t * pair);
return the value (do not free this string) or NULL
if no pair was found with the key 'key'.
*/
-char *hpairnode_get (hpair_t * pair, const char *key);
+char *hpairnode_get(hpair_t * pair, const char *key);
/**
@@ -284,7 +284,7 @@ char *hpairnode_get (hpair_t * pair, const char *key);
return the value (do not free this string) or NULL
if no pair was found with the key 'key'.
*/
-char *hpairnode_get_ignore_case (hpair_t * pair, const char *key);
+char *hpairnode_get_ignore_case(hpair_t * pair, const char *key);
/**
@@ -300,7 +300,7 @@ char *hpairnode_get_ignore_case (hpair_t * pair, const char *key);
@see hpairnode_copy_deep
*/
-hpair_t *hpairnode_copy (const hpair_t * src);
+hpair_t *hpairnode_copy(const hpair_t * src);
/**
@@ -312,11 +312,11 @@ hpair_t *hpairnode_copy (const hpair_t * src);
@see hpairnode_copy
*/
-hpair_t *hpairnode_copy_deep (const hpair_t * src);
+hpair_t *hpairnode_copy_deep(const hpair_t * src);
/* Debug functions */
-void hpairnode_dump_deep (hpair_t * pair);
-void hpairnode_dump (hpair_t * pair);
+void hpairnode_dump_deep(hpair_t * pair);
+void hpairnode_dump(hpair_t * pair);
/**
The protocol types in enumeration
@@ -378,7 +378,7 @@ typedef struct _hurl
URL_ERROR_NO_PROTOCOL
URL_ERROR_NO_HOST
*/
-herror_t hurl_parse (hurl_t * obj, const char *url);
+herror_t hurl_parse(hurl_t * obj, const char *url);
/*
Object representation of the content-type field
@@ -407,13 +407,13 @@ typedef struct _content_type
@see content_type_free
*/
-content_type_t *content_type_new (const char *content_type_str);
+content_type_t *content_type_new(const char *content_type_str);
/**
Frees the given content_type_t object
*/
-void content_type_free (content_type_t * ct);
+void content_type_free(content_type_t * ct);
@@ -433,10 +433,10 @@ typedef struct _part
} part_t;
-part_t *part_new (const char *id, const char *filename,
- const char *content_type, const char *transfer_encoding,
- part_t * next);
-void part_free (part_t * part);
+part_t *part_new(const char *id, const char *filename,
+ const char *content_type, const char *transfer_encoding,
+ part_t * next);
+void part_free(part_t * part);
@@ -451,7 +451,7 @@ typedef struct _attachments
part_t *root_part;
} attachments_t;
-attachments_t *attachments_new (); /* should be used internally */
+attachments_t *attachments_new(); /* should be used internally */
/*
Free a attachment. Create attachments with MIME
@@ -459,15 +459,15 @@ attachments_t *attachments_new (); /* should be used internally */
@see mime_get_attachments
*/
-void attachments_free (attachments_t * message);
-void attachments_add_part (attachments_t * attachments, part_t * part);
+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);
+void hoption_init_args(int argc, char *argv[]);
+void hoption_set(int opt, const char *value);
+char *hoption_get(int opt);
/* logging stuff */
typedef enum log_level
@@ -482,15 +482,15 @@ typedef enum log_level
-log_level_t log_set_level (log_level_t level);
-log_level_t log_get_level ();
+log_level_t log_set_level(log_level_t level);
+log_level_t log_get_level();
-void log_set_file (const char *filename);
-char *log_get_file ();
+void log_set_file(const char *filename);
+char *log_get_file();
#ifdef WIN32
#if defined(_MSC_VER) && _MSC_VER <= 1200
-char *VisualC_funcname (const char *file, int line); /* not thread safe! */
+char *VisualC_funcname(const char *file, int line); /* not thread safe! */
#define __FUNCTION__ VisualC_funcname(__FILE__, __LINE__)
#endif
#endif
@@ -525,11 +525,11 @@ char *VisualC_funcname (const char *file, int line); /* not thread safe! */
#define log_error4(a1,a2,a3,a4) log_error(__FUNCTION__, a1,a2,a3,a4)
#define log_error5(a1,a2,a3,a4,a5) log_error(__FUNCTION__, a1,a2,a3,a4,a5)
-void log_verbose (const char *FUNC, const char *format, ...);
-void log_debug (const char *FUNC, const char *format, ...);
-void log_info (const char *FUNC, const char *format, ...);
-void log_warn (const char *FUNC, const char *format, ...);
-void log_error (const char *FUNC, const char *format, ...);
+void log_verbose(const char *FUNC, const char *format, ...);
+void log_debug(const char *FUNC, const char *format, ...);
+void log_info(const char *FUNC, const char *format, ...);
+void log_warn(const char *FUNC, const char *format, ...);
+void log_error(const char *FUNC, const char *format, ...);