1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2000-2003, Ximian, Inc.
*/
#ifndef SOUP_MISC_H
#define SOUP_MISC_H 1
#include <glib-object.h>
/* Base64 encoding/decoding */
char *soup_base64_encode (const char *text,
int len);
int soup_base64_encode_close (const guchar *in,
int inlen,
gboolean break_lines,
guchar *out,
int *state,
int *save);
int soup_base64_encode_step (const guchar *in,
int len,
gboolean break_lines,
guchar *out,
int *state,
int *save);
char *soup_base64_decode (const gchar *text,
int *out_len);
int soup_base64_decode_step (const guchar *in,
int len,
guchar *out,
int *state,
guint *save);
/* Non-default-GMainContext operations */
GSource *soup_add_io_watch (GMainContext *async_context,
GIOChannel *chan,
GIOCondition condition,
GIOFunc function,
gpointer data);
GSource *soup_add_idle (GMainContext *async_context,
GSourceFunc function,
gpointer data);
GSource *soup_add_timeout (GMainContext *async_context,
guint interval,
GSourceFunc function,
gpointer data);
/* Misc utils */
guint soup_signal_connect_once (gpointer instance,
const char *detailed_signal,
GCallback c_handler,
gpointer data);
guint soup_str_case_hash (gconstpointer key);
gboolean soup_str_case_equal (gconstpointer v1,
gconstpointer v2);
/**
* soup_ssl_supported:
*
* Can be used to test if libsoup was compiled with ssl support.
**/
extern gboolean soup_ssl_supported;
#endif /* SOUP_MISC_H */
|