summaryrefslogtreecommitdiff
path: root/libsoup/soup-value-utils.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2008-02-01 15:23:31 +0000
committerDan Winship <danw@src.gnome.org>2008-02-01 15:23:31 +0000
commit9adc9e9d0dea849093e4520091dd06c9fb850e6f (patch)
treeca28ed1edb70e88d6bd4a957fa6ec6d1628ccbd1 /libsoup/soup-value-utils.h
parenta49e0bcee33eeede3a2764277ae5096192d9d726 (diff)
downloadlibsoup-9adc9e9d0dea849093e4520091dd06c9fb850e6f.tar.gz
new
* libsoup/soup-date.c (soup_date_to_time_t): new * libsoup/soup-form.c (soup_form_decode): Remove "_urlencoded" from name. (And add back-compat #define.) (soup_form_encode): New, takes varargs parameters for each form construction. (soup_form_encode_hash, soup_form_encode_datalist): renamed, with back-compat #defines (soup_form_request_new, soup_form_request_new_from_hash) (soup_form_request_new_from_datalist): New methods to construct a GET or POST message with form data. * libsoup/soup-uri.c (soup_uri_set_query_from_fields): New, takes varargs like soup_form_encode(). * libsoup/soup-value-utils.c (soup_value_hash_new_with_vals) (soup_value_hash_insert_vals, soup_value_hash_lookup_vals): New routines to work with multiple value hash values at once. (soup_value_array_new): tiny wrapper, for naming consistency (soup_value_array_new_with_vals, soup_value_array_append_vals): New routines to work with multiple value array values at once. svn path=/trunk/; revision=1063
Diffstat (limited to 'libsoup/soup-value-utils.h')
-rw-r--r--libsoup/soup-value-utils.h69
1 files changed, 42 insertions, 27 deletions
diff --git a/libsoup/soup-value-utils.h b/libsoup/soup-value-utils.h
index 19f7ccec..a7f48b62 100644
--- a/libsoup/soup-value-utils.h
+++ b/libsoup/soup-value-utils.h
@@ -31,37 +31,52 @@ G_STMT_START { \
g_free (error); \
} G_STMT_END
-GHashTable *soup_value_hash_new (void);
-void soup_value_hash_insert_value (GHashTable *hash,
- const char *key,
- GValue *value);
-void soup_value_hash_insert (GHashTable *hash,
- const char *key,
- GType type,
- ...);
-gboolean soup_value_hash_lookup (GHashTable *hash,
- const char *key,
- GType type,
- ...);
+GHashTable *soup_value_hash_new (void);
+GHashTable *soup_value_hash_new_with_vals (const char *first_key,
+ ...) G_GNUC_NULL_TERMINATED;
+void soup_value_hash_insert_value (GHashTable *hash,
+ const char *key,
+ GValue *value);
+void soup_value_hash_insert (GHashTable *hash,
+ const char *key,
+ GType type,
+ ...);
+void soup_value_hash_insert_vals (GHashTable *hash,
+ const char *first_key,
+ ...) G_GNUC_NULL_TERMINATED;
+gboolean soup_value_hash_lookup (GHashTable *hash,
+ const char *key,
+ GType type,
+ ...);
+gboolean soup_value_hash_lookup_vals (GHashTable *hash,
+ const char *first_key,
+ ...);
-GValueArray *soup_value_array_from_args (va_list args);
-gboolean soup_value_array_to_args (GValueArray *array,
- va_list args);
+GValueArray *soup_value_array_from_args (va_list args);
+gboolean soup_value_array_to_args (GValueArray *array,
+ va_list args);
-void soup_value_array_insert (GValueArray *array,
- guint index_,
- GType type,
- ...);
-void soup_value_array_append (GValueArray *array,
- GType type,
- ...);
-gboolean soup_value_array_get_nth (GValueArray *array,
- guint index_,
- GType type,
- ...);
+GValueArray *soup_value_array_new (void);
+GValueArray *soup_value_array_new_with_vals (GType first_type,
+ ...) G_GNUC_NULL_TERMINATED;
+void soup_value_array_insert (GValueArray *array,
+ guint index_,
+ GType type,
+ ...);
+void soup_value_array_append (GValueArray *array,
+ GType type,
+ ...);
+void soup_value_array_append_vals (GValueArray *array,
+ GType first_type,
+ ...) G_GNUC_NULL_TERMINATED;
+gboolean soup_value_array_get_nth (GValueArray *array,
+ guint index_,
+ GType type,
+ ...);
-GType soup_byte_array_get_type (void);
+
+GType soup_byte_array_get_type (void);
#define SOUP_TYPE_BYTE_ARRAY (soup_byte_array_get_type ())
G_END_DECLS