Constructor
SoupCookieJarTextnew
Declaration [src]
SoupCookieJar*
soup_cookie_jar_text_new (
const char* filename,
gboolean read_only
)
Description [src]
Creates a SoupCookieJarText
.
filename
will be read in at startup to create an initial set of cookies. If
read_only
is FALSE
, then the non-session cookies will be written to
filename
when the SoupCookieJar::changed
signal is emitted from the
jar. (If read_only
is TRUE
, then the cookie jar will only be used for this
session, and changes made to it will be lost when the jar is destroyed.)
Parameters
filename |
const char* |
The filename to read to/write from. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
read_only |
gboolean |
|
Return value
Returns: | SoupCookieJar |
The new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |