## soup-misc

soup-misc —

## Synopsis

    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);
    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);
    extern      gboolean soup_ssl_supported;

## Description

## Details

### soup_base64_encode ()

    char*       soup_base64_encode              (const char *text,
                                                 int len);

Encode a sequence of binary data into it's Base-64 stringified representation.

`text` : | the binary data to encode.
`len` : | the length of `text`.
Returns : | The Base-64 encoded string representing `text`.

### soup_base64_encode_close ()

    int         soup_base64_encode_close        (const guchar *in,
                                                 int inlen,
                                                 gboolean break_lines,
                                                 guchar *out,
                                                 int *state,
                                                 int *save);

`in` : |
`inlen` : |
`break_lines` : |
`out` : |
`state` : |
`save` : |
Returns : |

### soup_base64_encode_step ()

    int         soup_base64_encode_step         (const guchar *in,
                                                 int len,
                                                 gboolean break_lines,
                                                 guchar *out,
                                                 int *state,
                                                 int *save);

`in` : |
`len` : |
`break_lines` : |
`out` : |
`state` : |
`save` : |
Returns : |

### soup_base64_decode ()

    char*       soup_base64_decode              (const gchar *text,
                                                 int *out_len);

`text` : |
`out_len` : |
Returns : |

### soup_base64_decode_step ()

    int         soup_base64_decode_step         (const guchar *in,
                                                 int len,
                                                 guchar *out,
                                                 int *state,
                                                 guint *save);

`in` : |
`len` : |
`out` : |
`state` : |
`save` : |
Returns : |

### soup_signal_connect_once ()

    guint       soup_signal_connect_once        (gpointer instance,
                                                 const char *detailed_signal,
                                                 GCallback c_handler,
                                                 gpointer data);

Connects a GCallback function to a signal as with `g_signal_connect()`, but automatically removes the signal handler after its first invocation.

`instance` : | an object
`detailed_signal` : | "signal-name" or "signal-name::detail" to connect to
`c_handler` : | the GCallback to connect
`data` : | data to pass to `c_handler` calls
Returns : | the signal handler id

### soup_str_case_hash ()

    guint       soup_str_case_hash              (gconstpointer key);

Hashes `key` in a case-insensitive manner.

`key` : | ASCII string to hash
Returns : | the hash code.

### soup_str_case_equal ()

    gboolean    soup_str_case_equal             (gconstpointer v1,
                                                 gconstpointer v2);

Compares `v1` and `v2` in a case-insensitive manner

`v1` : | an ASCII string
`v2` : | another ASCII string
Returns : | `TRUE` if they are equal (modulo case)

### soup_ssl_supported

    extern gboolean soup_ssl_supported;