Update to version 2.33.1
[profile/ivi/glib2.git] / docs / reference / glib / html / glib-Bookmark-file-parser.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Bookmark file parser</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GLib Reference Manual">
8 <link rel="up" href="glib-utilities.html" title="GLib Utilities">
9 <link rel="prev" href="glib-Key-value-file-parser.html" title="Key-value file parser">
10 <link rel="next" href="glib-Testing.html" title="Testing">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="glib-Key-value-file-parser.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="glib-utilities.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GLib Reference Manual</th>
21 <td><a accesskey="n" href="glib-Testing.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#glib-Bookmark-file-parser.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#glib-Bookmark-file-parser.description" class="shortcut">Description</a>
27 </td></tr>
28 </table>
29 <div class="refentry">
30 <a name="glib-Bookmark-file-parser"></a><div class="titlepage"></div>
31 <div class="refnamediv"><table width="100%"><tr>
32 <td valign="top">
33 <h2><span class="refentrytitle"><a name="glib-Bookmark-file-parser.top_of_page"></a>Bookmark file parser</span></h2>
34 <p>Bookmark file parser — parses files containing bookmarks</p>
35 </td>
36 <td valign="top" align="right"></td>
37 </tr></table></div>
38 <div class="refsynopsisdiv">
39 <a name="glib-Bookmark-file-parser.synopsis"></a><h2>Synopsis</h2>
40 <pre class="synopsis">
41 #include &lt;glib.h&gt;
42
43                     <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile">GBookmarkFile</a>;
44 #define             <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR:CAPS" title="G_BOOKMARK_FILE_ERROR">G_BOOKMARK_FILE_ERROR</a>
45 enum                <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError" title="enum GBookmarkFileError">GBookmarkFileError</a>;
46 <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="returnvalue">GBookmarkFile</span></a> *     <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-new" title="g_bookmark_file_new ()">g_bookmark_file_new</a>                 (<em class="parameter"><code><span class="type">void</span></code></em>);
47 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-free" title="g_bookmark_file_free ()">g_bookmark_file_free</a>                (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>);
48 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-file" title="g_bookmark_file_load_from_file ()">g_bookmark_file_load_from_file</a>      (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
49                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
50                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
51 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data" title="g_bookmark_file_load_from_data ()">g_bookmark_file_load_from_data</a>      (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
52                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *data</code></em>,
53                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> length</code></em>,
54                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
55 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data-dirs" title="g_bookmark_file_load_from_data_dirs ()">g_bookmark_file_load_from_data_dirs</a> (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
56                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file</code></em>,
57                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **full_path</code></em>,
58                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
59 <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-data" title="g_bookmark_file_to_data ()">g_bookmark_file_to_data</a>             (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
60                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
61                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
62 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-file" title="g_bookmark_file_to_file ()">g_bookmark_file_to_file</a>             (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
63                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
64                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
65 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-has-item" title="g_bookmark_file_has_item ()">g_bookmark_file_has_item</a>            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
66                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>);
67 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-has-group" title="g_bookmark_file_has_group ()">g_bookmark_file_has_group</a>           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
68                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
69                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *group</code></em>,
70                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
71 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-has-application" title="g_bookmark_file_has_application ()">g_bookmark_file_has_application</a>     (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
72                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
73                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
74                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
75 <a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-size" title="g_bookmark_file_get_size ()">g_bookmark_file_get_size</a>            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>);
76 <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> **            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-uris" title="g_bookmark_file_get_uris ()">g_bookmark_file_get_uris</a>            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
77                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>);
78
79 <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-title" title="g_bookmark_file_get_title ()">g_bookmark_file_get_title</a>           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
80                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
81                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
82 <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-description" title="g_bookmark_file_get_description ()">g_bookmark_file_get_description</a>     (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
83                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
84                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
85 <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-mime-type" title="g_bookmark_file_get_mime_type ()">g_bookmark_file_get_mime_type</a>       (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
86                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
87                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
88 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-is-private" title="g_bookmark_file_get_is_private ()">g_bookmark_file_get_is_private</a>      (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
89                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
90                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
91 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-icon" title="g_bookmark_file_get_icon ()">g_bookmark_file_get_icon</a>            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
92                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
93                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **href</code></em>,
94                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **mime_type</code></em>,
95                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
96 <span class="returnvalue">time_t</span>              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-added" title="g_bookmark_file_get_added ()">g_bookmark_file_get_added</a>           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
97                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
98                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
99 <span class="returnvalue">time_t</span>              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-modified" title="g_bookmark_file_get_modified ()">g_bookmark_file_get_modified</a>        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
100                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
101                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
102 <span class="returnvalue">time_t</span>              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-visited" title="g_bookmark_file_get_visited ()">g_bookmark_file_get_visited</a>         (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
103                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
104                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
105 <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> **            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-groups" title="g_bookmark_file_get_groups ()">g_bookmark_file_get_groups</a>          (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
106                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
107                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
108                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
109 <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> **            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-applications" title="g_bookmark_file_get_applications ()">g_bookmark_file_get_applications</a>    (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
110                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
111                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
112                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
113 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-app-info" title="g_bookmark_file_get_app_info ()">g_bookmark_file_get_app_info</a>        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
114                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
115                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
116                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **exec</code></em>,
117                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> *count</code></em>,
118                                                          <em class="parameter"><code><span class="type">time_t</span> *stamp</code></em>,
119                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
120
121 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-title" title="g_bookmark_file_set_title ()">g_bookmark_file_set_title</a>           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
122                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
123                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *title</code></em>);
124 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-description" title="g_bookmark_file_set_description ()">g_bookmark_file_set_description</a>     (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
125                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
126                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *description</code></em>);
127 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-mime-type" title="g_bookmark_file_set_mime_type ()">g_bookmark_file_set_mime_type</a>       (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
128                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
129                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *mime_type</code></em>);
130 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-is-private" title="g_bookmark_file_set_is_private ()">g_bookmark_file_set_is_private</a>      (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
131                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
132                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> is_private</code></em>);
133 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-icon" title="g_bookmark_file_set_icon ()">g_bookmark_file_set_icon</a>            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
134                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
135                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *href</code></em>,
136                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *mime_type</code></em>);
137 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-added" title="g_bookmark_file_set_added ()">g_bookmark_file_set_added</a>           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
138                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
139                                                          <em class="parameter"><code><span class="type">time_t</span> added</code></em>);
140 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-groups" title="g_bookmark_file_set_groups ()">g_bookmark_file_set_groups</a>          (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
141                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
142                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **groups</code></em>,
143                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> length</code></em>);
144 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-modified" title="g_bookmark_file_set_modified ()">g_bookmark_file_set_modified</a>        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
145                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
146                                                          <em class="parameter"><code><span class="type">time_t</span> modified</code></em>);
147 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-visited" title="g_bookmark_file_set_visited ()">g_bookmark_file_set_visited</a>         (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
148                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
149                                                          <em class="parameter"><code><span class="type">time_t</span> visited</code></em>);
150 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-app-info" title="g_bookmark_file_set_app_info ()">g_bookmark_file_set_app_info</a>        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
151                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
152                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
153                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *exec</code></em>,
154                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> count</code></em>,
155                                                          <em class="parameter"><code><span class="type">time_t</span> stamp</code></em>,
156                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
157 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-group" title="g_bookmark_file_add_group ()">g_bookmark_file_add_group</a>           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
158                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
159                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *group</code></em>);
160 <span class="returnvalue">void</span>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-application" title="g_bookmark_file_add_application ()">g_bookmark_file_add_application</a>     (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
161                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
162                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
163                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *exec</code></em>);
164 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-group" title="g_bookmark_file_remove_group ()">g_bookmark_file_remove_group</a>        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
165                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
166                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *group</code></em>,
167                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
168 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-application" title="g_bookmark_file_remove_application ()">g_bookmark_file_remove_application</a>  (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
169                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
170                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
171                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
172 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-item" title="g_bookmark_file_remove_item ()">g_bookmark_file_remove_item</a>         (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
173                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
174                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
175 <a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-move-item" title="g_bookmark_file_move_item ()">g_bookmark_file_move_item</a>           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
176                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *old_uri</code></em>,
177                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *new_uri</code></em>,
178                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);
179 </pre>
180 </div>
181 <div class="refsect1">
182 <a name="glib-Bookmark-file-parser.description"></a><h2>Description</h2>
183 <p>
184 GBookmarkFile lets you parse, edit or create files containing bookmarks
185 to URI, along with some meta-data about the resource pointed by the URI
186 like its MIME type, the application that is registering the bookmark and
187 the icon that should be used to represent the bookmark. The data is stored
188 using the
189 <a class="ulink" href="http://www.gnome.org/~ebassi/bookmark-spec" target="_top">Desktop Bookmark
190 Specification</a>.
191 </p>
192 <p>
193 The syntax of the bookmark files is described in detail inside the Desktop
194 Bookmark Specification, here is a quick summary: bookmark files use a
195 sub-class of the <a class="ulink" href="" target="_top">XML Bookmark Exchange Language</a>
196 specification, consisting of valid UTF-8 encoded XML, under the
197 <code class="literal">xbel</code> root element; each bookmark is stored inside a
198 <code class="literal">bookmark</code> element, using its URI: no relative paths can
199 be used inside a bookmark file. The bookmark may have a user defined title
200 and description, to be used instead of the URI. Under the
201 <code class="literal">metadata</code> element, with its <code class="literal">owner</code>
202 attribute set to <code class="literal">http://freedesktop.org</code>, is stored the
203 meta-data about a resource pointed by its URI. The meta-data consists of
204 the resource's MIME type; the applications that have registered a bookmark;
205 the groups to which a bookmark belongs to; a visibility flag, used to set
206 the bookmark as "private" to the applications and groups that has it
207 registered; the URI and MIME type of an icon, to be used when displaying
208 the bookmark inside a GUI.
209 </p>
210 <div class="informalexample"><pre class="programlisting">&lt;?xml version="1.0"?&gt;
211 &lt;!DOCTYPE xbel PUBLIC
212   "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML"
213   "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd"&gt;
214 &lt;xbel version="1.0"
215       xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"
216       xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks"&gt;
217   &lt;bookmark href="file:///home/ebassi/bookmark-spec/bookmark-spec.xml"&gt;
218     &lt;title&gt;Desktop Bookmarks Spec&lt;/title&gt;
219     &lt;info&gt;
220       &lt;metadata owner="http://freedesktop.org"&gt;
221         &lt;mime:mime-type&gt;text/xml&lt;/mime:mime-type&gt;
222         &lt;bookmark:applications&gt;
223           &lt;bookmark:application name="GEdit" count="2" exec="gedit %u" timestamp="1115726763"/&gt;
224           &lt;bookmark:application name="GViM" count="7" exec="gvim %f" timestamp="1115726812"/&gt;
225         &lt;/bookmark:applications&gt;
226         &lt;bookmark:groups&gt;
227           &lt;bookmark:group&gt;Editors&lt;/bookmark:group&gt;
228         &lt;/bookmark:groups&gt;
229       &lt;/metadata&gt;
230     &lt;/info&gt;
231   &lt;/bookmark&gt;
232 &lt;/xbel
233 </pre></div>
234 <p>
235 </p>
236 <p>
237 A bookmark file might contain more than one bookmark; each bookmark
238 is accessed through its URI.
239 </p>
240 <p>
241 The important caveat of bookmark files is that when you add a new
242 bookmark you must also add the application that is registering it, using
243 <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-application" title="g_bookmark_file_add_application ()"><code class="function">g_bookmark_file_add_application()</code></a> or <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-app-info" title="g_bookmark_file_set_app_info ()"><code class="function">g_bookmark_file_set_app_info()</code></a>.
244 If a bookmark has no applications then it won't be dumped when creating
245 the on disk representation, using <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-data" title="g_bookmark_file_to_data ()"><code class="function">g_bookmark_file_to_data()</code></a> or
246 <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-file" title="g_bookmark_file_to_file ()"><code class="function">g_bookmark_file_to_file()</code></a>.
247 </p>
248 <p>
249 The <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> parser was added in GLib 2.12.
250 </p>
251 </div>
252 <div class="refsect1">
253 <a name="glib-Bookmark-file-parser.details"></a><h2>Details</h2>
254 <div class="refsect2">
255 <a name="GBookmarkFile"></a><h3>GBookmarkFile</h3>
256 <pre class="programlisting">typedef struct _GBookmarkFile GBookmarkFile;</pre>
257 <p>
258 The <span class="structname">GBookmarkFile</span> struct contains only
259 private data and should not be directly accessed.
260 </p>
261 </div>
262 <hr>
263 <div class="refsect2">
264 <a name="G-BOOKMARK-FILE-ERROR:CAPS"></a><h3>G_BOOKMARK_FILE_ERROR</h3>
265 <pre class="programlisting">#define G_BOOKMARK_FILE_ERROR (g_bookmark_file_error_quark ())
266 </pre>
267 <p>
268 Error domain for bookmark file parsing.
269 Errors in this domain will be from the <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError" title="enum GBookmarkFileError"><span class="type">GBookmarkFileError</span></a>
270 enumeration. See <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> for information on error domains.
271 </p>
272 </div>
273 <hr>
274 <div class="refsect2">
275 <a name="GBookmarkFileError"></a><h3>enum GBookmarkFileError</h3>
276 <pre class="programlisting">typedef enum {
277   G_BOOKMARK_FILE_ERROR_INVALID_URI,
278   G_BOOKMARK_FILE_ERROR_INVALID_VALUE,
279   G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED,
280   G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND,
281   G_BOOKMARK_FILE_ERROR_READ,
282   G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING,
283   G_BOOKMARK_FILE_ERROR_WRITE,
284   G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND
285 } GBookmarkFileError;
286 </pre>
287 <p>
288 Error codes returned by bookmark file parsing.
289 </p>
290 <div class="variablelist"><table border="0">
291 <col align="left" valign="top">
292 <tbody>
293 <tr>
294 <td><p><a name="G-BOOKMARK-FILE-ERROR-INVALID-URI:CAPS"></a><span class="term"><code class="literal">G_BOOKMARK_FILE_ERROR_INVALID_URI</code></span></p></td>
295 <td>URI was ill-formed
296 </td>
297 </tr>
298 <tr>
299 <td><p><a name="G-BOOKMARK-FILE-ERROR-INVALID-VALUE:CAPS"></a><span class="term"><code class="literal">G_BOOKMARK_FILE_ERROR_INVALID_VALUE</code></span></p></td>
300 <td>a requested field was not found
301 </td>
302 </tr>
303 <tr>
304 <td><p><a name="G-BOOKMARK-FILE-ERROR-APP-NOT-REGISTERED:CAPS"></a><span class="term"><code class="literal">G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED</code></span></p></td>
305 <td>a requested application did
306     not register a bookmark
307 </td>
308 </tr>
309 <tr>
310 <td><p><a name="G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"></a><span class="term"><code class="literal">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</code></span></p></td>
311 <td>a requested URI was not found
312 </td>
313 </tr>
314 <tr>
315 <td><p><a name="G-BOOKMARK-FILE-ERROR-READ:CAPS"></a><span class="term"><code class="literal">G_BOOKMARK_FILE_ERROR_READ</code></span></p></td>
316 <td>document was ill formed
317 </td>
318 </tr>
319 <tr>
320 <td><p><a name="G-BOOKMARK-FILE-ERROR-UNKNOWN-ENCODING:CAPS"></a><span class="term"><code class="literal">G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING</code></span></p></td>
321 <td>the text being parsed was
322     in an unknown encoding
323 </td>
324 </tr>
325 <tr>
326 <td><p><a name="G-BOOKMARK-FILE-ERROR-WRITE:CAPS"></a><span class="term"><code class="literal">G_BOOKMARK_FILE_ERROR_WRITE</code></span></p></td>
327 <td>an error occurred while writing
328 </td>
329 </tr>
330 <tr>
331 <td><p><a name="G-BOOKMARK-FILE-ERROR-FILE-NOT-FOUND:CAPS"></a><span class="term"><code class="literal">G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND</code></span></p></td>
332 <td>requested file was not found
333 </td>
334 </tr>
335 </tbody>
336 </table></div>
337 </div>
338 <hr>
339 <div class="refsect2">
340 <a name="g-bookmark-file-new"></a><h3>g_bookmark_file_new ()</h3>
341 <pre class="programlisting"><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="returnvalue">GBookmarkFile</span></a> *     g_bookmark_file_new                 (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
342 <p>
343 Creates a new empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> object.
344 </p>
345 <p>
346 Use <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-file" title="g_bookmark_file_load_from_file ()"><code class="function">g_bookmark_file_load_from_file()</code></a>, <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data" title="g_bookmark_file_load_from_data ()"><code class="function">g_bookmark_file_load_from_data()</code></a>
347 or <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data-dirs" title="g_bookmark_file_load_from_data_dirs ()"><code class="function">g_bookmark_file_load_from_data_dirs()</code></a> to read an existing bookmark
348 file.
349 </p>
350 <div class="variablelist"><table border="0">
351 <col align="left" valign="top">
352 <tbody><tr>
353 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
354 <td>an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
355 </td>
356 </tr></tbody>
357 </table></div>
358 <p class="since">Since 2.12</p>
359 </div>
360 <hr>
361 <div class="refsect2">
362 <a name="g-bookmark-file-free"></a><h3>g_bookmark_file_free ()</h3>
363 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_free                (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>);</pre>
364 <p>
365 Frees a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>.
366 </p>
367 <div class="variablelist"><table border="0">
368 <col align="left" valign="top">
369 <tbody><tr>
370 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
371 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
372 </td>
373 </tr></tbody>
374 </table></div>
375 <p class="since">Since 2.12</p>
376 </div>
377 <hr>
378 <div class="refsect2">
379 <a name="g-bookmark-file-load-from-file"></a><h3>g_bookmark_file_load_from_file ()</h3>
380 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_load_from_file      (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
381                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
382                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
383 <p>
384 Loads a desktop bookmark file into an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> structure.
385 If the file could not be loaded then <em class="parameter"><code>error</code></em> is set to either a <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a>
386 or <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError" title="enum GBookmarkFileError"><span class="type">GBookmarkFileError</span></a>.
387 </p>
388 <div class="variablelist"><table border="0">
389 <col align="left" valign="top">
390 <tbody>
391 <tr>
392 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
393 <td>an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> struct</td>
394 </tr>
395 <tr>
396 <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
397 <td>the path of a filename to load, in the GLib file name encoding</td>
398 </tr>
399 <tr>
400 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
401 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
402 </td>
403 </tr>
404 <tr>
405 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
406 <td>
407 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if a desktop bookmark file could be loaded</td>
408 </tr>
409 </tbody>
410 </table></div>
411 <p class="since">Since 2.12</p>
412 </div>
413 <hr>
414 <div class="refsect2">
415 <a name="g-bookmark-file-load-from-data"></a><h3>g_bookmark_file_load_from_data ()</h3>
416 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_load_from_data      (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
417                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *data</code></em>,
418                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> length</code></em>,
419                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
420 <p>
421 Loads a bookmark file from memory into an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
422 structure.  If the object cannot be created then <em class="parameter"><code>error</code></em> is set to a
423 <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError" title="enum GBookmarkFileError"><span class="type">GBookmarkFileError</span></a>.
424 </p>
425 <div class="variablelist"><table border="0">
426 <col align="left" valign="top">
427 <tbody>
428 <tr>
429 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
430 <td>an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> struct</td>
431 </tr>
432 <tr>
433 <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
434 <td>desktop bookmarks loaded in memory</td>
435 </tr>
436 <tr>
437 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
438 <td>the length of <em class="parameter"><code>data</code></em> in bytes</td>
439 </tr>
440 <tr>
441 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
442 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
443 </td>
444 </tr>
445 <tr>
446 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
447 <td>
448 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if a desktop bookmark could be loaded.</td>
449 </tr>
450 </tbody>
451 </table></div>
452 <p class="since">Since 2.12</p>
453 </div>
454 <hr>
455 <div class="refsect2">
456 <a name="g-bookmark-file-load-from-data-dirs"></a><h3>g_bookmark_file_load_from_data_dirs ()</h3>
457 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_load_from_data_dirs (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
458                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *file</code></em>,
459                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **full_path</code></em>,
460                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
461 <p>
462 This function looks for a desktop bookmark file named <em class="parameter"><code>file</code></em> in the
463 paths returned from <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-data-dir" title="g_get_user_data_dir ()"><code class="function">g_get_user_data_dir()</code></a> and <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-system-data-dirs" title="g_get_system_data_dirs ()"><code class="function">g_get_system_data_dirs()</code></a>, 
464 loads the file into <em class="parameter"><code>bookmark</code></em> and returns the file's full path in 
465 <em class="parameter"><code>full_path</code></em>.  If the file could not be loaded then an <code class="literal">error</code> is
466 set to either a <a class="link" href="glib-File-Utilities.html#GFileError" title="enum GFileError"><span class="type">GFileError</span></a> or <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError" title="enum GBookmarkFileError"><span class="type">GBookmarkFileError</span></a>.
467 </p>
468 <div class="variablelist"><table border="0">
469 <col align="left" valign="top">
470 <tbody>
471 <tr>
472 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
473 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
474 </td>
475 </tr>
476 <tr>
477 <td><p><span class="term"><em class="parameter"><code>file</code></em> :</span></p></td>
478 <td>a relative path to a filename to open and parse</td>
479 </tr>
480 <tr>
481 <td><p><span class="term"><em class="parameter"><code>full_path</code></em> :</span></p></td>
482 <td>return location for a string containing the full path
483 of the file, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
484 </td>
485 </tr>
486 <tr>
487 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
488 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
489 </td>
490 </tr>
491 <tr>
492 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
493 <td>
494 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if a key file could be loaded, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> otherwise</td>
495 </tr>
496 </tbody>
497 </table></div>
498 <p class="since">Since 2.12</p>
499 </div>
500 <hr>
501 <div class="refsect2">
502 <a name="g-bookmark-file-to-data"></a><h3>g_bookmark_file_to_data ()</h3>
503 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> *             g_bookmark_file_to_data             (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
504                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
505                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
506 <p>
507 This function outputs <em class="parameter"><code>bookmark</code></em> as a string.
508 </p>
509 <div class="variablelist"><table border="0">
510 <col align="left" valign="top">
511 <tbody>
512 <tr>
513 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
514 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
515 </td>
516 </tr>
517 <tr>
518 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
519 <td>return location for the length of the returned string, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
520 </td>
521 </tr>
522 <tr>
523 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
524 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
525 </td>
526 </tr>
527 <tr>
528 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
529 <td>a newly allocated string holding
530 the contents of the <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
531 </td>
532 </tr>
533 </tbody>
534 </table></div>
535 <p class="since">Since 2.12</p>
536 </div>
537 <hr>
538 <div class="refsect2">
539 <a name="g-bookmark-file-to-file"></a><h3>g_bookmark_file_to_file ()</h3>
540 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_to_file             (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
541                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *filename</code></em>,
542                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
543 <p>
544 This function outputs <em class="parameter"><code>bookmark</code></em> into a file.  The write process is
545 guaranteed to be atomic by using <a class="link" href="glib-File-Utilities.html#g-file-set-contents" title="g_file_set_contents ()"><code class="function">g_file_set_contents()</code></a> internally.
546 </p>
547 <div class="variablelist"><table border="0">
548 <col align="left" valign="top">
549 <tbody>
550 <tr>
551 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
552 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
553 </td>
554 </tr>
555 <tr>
556 <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
557 <td>path of the output file</td>
558 </tr>
559 <tr>
560 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
561 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
562 </td>
563 </tr>
564 <tr>
565 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
566 <td>
567 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the file was successfully written.</td>
568 </tr>
569 </tbody>
570 </table></div>
571 <p class="since">Since 2.12</p>
572 </div>
573 <hr>
574 <div class="refsect2">
575 <a name="g-bookmark-file-has-item"></a><h3>g_bookmark_file_has_item ()</h3>
576 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_has_item            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
577                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>);</pre>
578 <p>
579 Looks whether the desktop bookmark has an item with its URI set to <em class="parameter"><code>uri</code></em>.
580 </p>
581 <div class="variablelist"><table border="0">
582 <col align="left" valign="top">
583 <tbody>
584 <tr>
585 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
586 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
587 </td>
588 </tr>
589 <tr>
590 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
591 <td>a valid URI</td>
592 </tr>
593 <tr>
594 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
595 <td>
596 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>uri</code></em> is inside <em class="parameter"><code>bookmark</code></em>, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> otherwise</td>
597 </tr>
598 </tbody>
599 </table></div>
600 <p class="since">Since 2.12</p>
601 </div>
602 <hr>
603 <div class="refsect2">
604 <a name="g-bookmark-file-has-group"></a><h3>g_bookmark_file_has_group ()</h3>
605 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_has_group           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
606                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
607                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *group</code></em>,
608                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
609 <p>
610 Checks whether <em class="parameter"><code>group</code></em> appears in the list of groups to which
611 the bookmark for <em class="parameter"><code>uri</code></em> belongs to.
612 </p>
613 <p>
614 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
615 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
616 </p>
617 <div class="variablelist"><table border="0">
618 <col align="left" valign="top">
619 <tbody>
620 <tr>
621 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
622 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
623 </td>
624 </tr>
625 <tr>
626 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
627 <td>a valid URI</td>
628 </tr>
629 <tr>
630 <td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td>
631 <td>the group name to be searched</td>
632 </tr>
633 <tr>
634 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
635 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
636 </td>
637 </tr>
638 <tr>
639 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
640 <td>
641 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>group</code></em> was found.</td>
642 </tr>
643 </tbody>
644 </table></div>
645 <p class="since">Since 2.12</p>
646 </div>
647 <hr>
648 <div class="refsect2">
649 <a name="g-bookmark-file-has-application"></a><h3>g_bookmark_file_has_application ()</h3>
650 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_has_application     (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
651                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
652                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
653                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
654 <p>
655 Checks whether the bookmark for <em class="parameter"><code>uri</code></em> inside <em class="parameter"><code>bookmark</code></em> has been
656 registered by application <em class="parameter"><code>name</code></em>.
657 </p>
658 <p>
659 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
660 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
661 </p>
662 <div class="variablelist"><table border="0">
663 <col align="left" valign="top">
664 <tbody>
665 <tr>
666 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
667 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
668 </td>
669 </tr>
670 <tr>
671 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
672 <td>a valid URI</td>
673 </tr>
674 <tr>
675 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
676 <td>the name of the application</td>
677 </tr>
678 <tr>
679 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
680 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
681 </td>
682 </tr>
683 <tr>
684 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
685 <td>
686 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the application <em class="parameter"><code>name</code></em> was found</td>
687 </tr>
688 </tbody>
689 </table></div>
690 <p class="since">Since 2.12</p>
691 </div>
692 <hr>
693 <div class="refsect2">
694 <a name="g-bookmark-file-get-size"></a><h3>g_bookmark_file_get_size ()</h3>
695 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="returnvalue">gint</span></a>                g_bookmark_file_get_size            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>);</pre>
696 <p>
697 Gets the number of bookmarks inside <em class="parameter"><code>bookmark</code></em>.
698 </p>
699 <div class="variablelist"><table border="0">
700 <col align="left" valign="top">
701 <tbody>
702 <tr>
703 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
704 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
705 </td>
706 </tr>
707 <tr>
708 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
709 <td>the number of bookmarks</td>
710 </tr>
711 </tbody>
712 </table></div>
713 <p class="since">Since 2.12</p>
714 </div>
715 <hr>
716 <div class="refsect2">
717 <a name="g-bookmark-file-get-uris"></a><h3>g_bookmark_file_get_uris ()</h3>
718 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> **            g_bookmark_file_get_uris            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
719                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>);</pre>
720 <p>
721 Returns all URIs of the bookmarks in the bookmark file <em class="parameter"><code>bookmark</code></em>.
722 The array of returned URIs will be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated, so <em class="parameter"><code>length</code></em> may
723 optionally be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
724 </p>
725 <div class="variablelist"><table border="0">
726 <col align="left" valign="top">
727 <tbody>
728 <tr>
729 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
730 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
731 </td>
732 </tr>
733 <tr>
734 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
735 <td>return location for the number of returned URIs, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
736 </td>
737 </tr>
738 <tr>
739 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
740 <td>a newly allocated <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of strings.
741 Use <a class="link" href="glib-String-Utility-Functions.html#g-strfreev" title="g_strfreev ()"><code class="function">g_strfreev()</code></a> to free it.</td>
742 </tr>
743 </tbody>
744 </table></div>
745 <p class="since">Since 2.12</p>
746 </div>
747 <hr>
748 <div class="refsect2">
749 <a name="g-bookmark-file-get-title"></a><h3>g_bookmark_file_get_title ()</h3>
750 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> *             g_bookmark_file_get_title           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
751                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
752                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
753 <p>
754 Returns the title of the bookmark for <em class="parameter"><code>uri</code></em>.
755 </p>
756 <p>
757 If <em class="parameter"><code>uri</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, the title of <em class="parameter"><code>bookmark</code></em> is returned.
758 </p>
759 <p>
760 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> is returned and
761 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
762 </p>
763 <div class="variablelist"><table border="0">
764 <col align="left" valign="top">
765 <tbody>
766 <tr>
767 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
768 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
769 </td>
770 </tr>
771 <tr>
772 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
773 <td>a valid URI or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
774 </td>
775 </tr>
776 <tr>
777 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
778 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
779 </td>
780 </tr>
781 <tr>
782 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
783 <td>a newly allocated string or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if the specified
784 URI cannot be found.</td>
785 </tr>
786 </tbody>
787 </table></div>
788 <p class="since">Since 2.12</p>
789 </div>
790 <hr>
791 <div class="refsect2">
792 <a name="g-bookmark-file-get-description"></a><h3>g_bookmark_file_get_description ()</h3>
793 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> *             g_bookmark_file_get_description     (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
794                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
795                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
796 <p>
797 Retrieves the description of the bookmark for <em class="parameter"><code>uri</code></em>.
798 </p>
799 <p>
800 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> is returned and
801 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
802 </p>
803 <div class="variablelist"><table border="0">
804 <col align="left" valign="top">
805 <tbody>
806 <tr>
807 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
808 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
809 </td>
810 </tr>
811 <tr>
812 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
813 <td>a valid URI</td>
814 </tr>
815 <tr>
816 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
817 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
818 </td>
819 </tr>
820 <tr>
821 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
822 <td>a newly allocated string or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if the specified
823 URI cannot be found.</td>
824 </tr>
825 </tbody>
826 </table></div>
827 <p class="since">Since 2.12</p>
828 </div>
829 <hr>
830 <div class="refsect2">
831 <a name="g-bookmark-file-get-mime-type"></a><h3>g_bookmark_file_get_mime_type ()</h3>
832 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> *             g_bookmark_file_get_mime_type       (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
833                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
834                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
835 <p>
836 Retrieves the MIME type of the resource pointed by <em class="parameter"><code>uri</code></em>.
837 </p>
838 <p>
839 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> is returned and
840 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.  In the
841 event that the MIME type cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> is returned and
842 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-INVALID-VALUE:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_INVALID_VALUE</span></a>.
843 </p>
844 <div class="variablelist"><table border="0">
845 <col align="left" valign="top">
846 <tbody>
847 <tr>
848 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
849 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
850 </td>
851 </tr>
852 <tr>
853 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
854 <td>a valid URI</td>
855 </tr>
856 <tr>
857 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
858 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
859 </td>
860 </tr>
861 <tr>
862 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
863 <td>a newly allocated string or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> if the specified
864 URI cannot be found.</td>
865 </tr>
866 </tbody>
867 </table></div>
868 <p class="since">Since 2.12</p>
869 </div>
870 <hr>
871 <div class="refsect2">
872 <a name="g-bookmark-file-get-is-private"></a><h3>g_bookmark_file_get_is_private ()</h3>
873 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_get_is_private      (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
874                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
875                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
876 <p>
877 Gets whether the private flag of the bookmark for <em class="parameter"><code>uri</code></em> is set.
878 </p>
879 <p>
880 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
881 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.  In the
882 event that the private flag cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
883 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-INVALID-VALUE:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_INVALID_VALUE</span></a>.
884 </p>
885 <div class="variablelist"><table border="0">
886 <col align="left" valign="top">
887 <tbody>
888 <tr>
889 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
890 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
891 </td>
892 </tr>
893 <tr>
894 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
895 <td>a valid URI</td>
896 </tr>
897 <tr>
898 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
899 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
900 </td>
901 </tr>
902 <tr>
903 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
904 <td>
905 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the private flag is set, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> otherwise.</td>
906 </tr>
907 </tbody>
908 </table></div>
909 <p class="since">Since 2.12</p>
910 </div>
911 <hr>
912 <div class="refsect2">
913 <a name="g-bookmark-file-get-icon"></a><h3>g_bookmark_file_get_icon ()</h3>
914 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_get_icon            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
915                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
916                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **href</code></em>,
917                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **mime_type</code></em>,
918                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
919 <p>
920 Gets the icon of the bookmark for <em class="parameter"><code>uri</code></em>.
921 </p>
922 <p>
923 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
924 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
925 </p>
926 <div class="variablelist"><table border="0">
927 <col align="left" valign="top">
928 <tbody>
929 <tr>
930 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
931 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
932 </td>
933 </tr>
934 <tr>
935 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
936 <td>a valid URI</td>
937 </tr>
938 <tr>
939 <td><p><span class="term"><em class="parameter"><code>href</code></em> :</span></p></td>
940 <td>return location for the icon's location or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
941 </td>
942 </tr>
943 <tr>
944 <td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
945 <td>return location for the icon's MIME type or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
946 </td>
947 </tr>
948 <tr>
949 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
950 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
951 </td>
952 </tr>
953 <tr>
954 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
955 <td>
956 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the icon for the bookmark for the URI was found.
957 You should free the returned strings.</td>
958 </tr>
959 </tbody>
960 </table></div>
961 <p class="since">Since 2.12</p>
962 </div>
963 <hr>
964 <div class="refsect2">
965 <a name="g-bookmark-file-get-added"></a><h3>g_bookmark_file_get_added ()</h3>
966 <pre class="programlisting"><span class="returnvalue">time_t</span>              g_bookmark_file_get_added           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
967                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
968                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
969 <p>
970 Gets the time the bookmark for <em class="parameter"><code>uri</code></em> was added to <em class="parameter"><code>bookmark</code></em>
971 </p>
972 <p>
973 In the event the URI cannot be found, -1 is returned and
974 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
975 </p>
976 <div class="variablelist"><table border="0">
977 <col align="left" valign="top">
978 <tbody>
979 <tr>
980 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
981 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
982 </td>
983 </tr>
984 <tr>
985 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
986 <td>a valid URI</td>
987 </tr>
988 <tr>
989 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
990 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
991 </td>
992 </tr>
993 <tr>
994 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
995 <td>a timestamp</td>
996 </tr>
997 </tbody>
998 </table></div>
999 <p class="since">Since 2.12</p>
1000 </div>
1001 <hr>
1002 <div class="refsect2">
1003 <a name="g-bookmark-file-get-modified"></a><h3>g_bookmark_file_get_modified ()</h3>
1004 <pre class="programlisting"><span class="returnvalue">time_t</span>              g_bookmark_file_get_modified        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1005                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1006                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1007 <p>
1008 Gets the time when the bookmark for <em class="parameter"><code>uri</code></em> was last modified.
1009 </p>
1010 <p>
1011 In the event the URI cannot be found, -1 is returned and
1012 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
1013 </p>
1014 <div class="variablelist"><table border="0">
1015 <col align="left" valign="top">
1016 <tbody>
1017 <tr>
1018 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1019 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1020 </td>
1021 </tr>
1022 <tr>
1023 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1024 <td>a valid URI</td>
1025 </tr>
1026 <tr>
1027 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1028 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1029 </td>
1030 </tr>
1031 <tr>
1032 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1033 <td>a timestamp</td>
1034 </tr>
1035 </tbody>
1036 </table></div>
1037 <p class="since">Since 2.12</p>
1038 </div>
1039 <hr>
1040 <div class="refsect2">
1041 <a name="g-bookmark-file-get-visited"></a><h3>g_bookmark_file_get_visited ()</h3>
1042 <pre class="programlisting"><span class="returnvalue">time_t</span>              g_bookmark_file_get_visited         (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1043                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1044                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1045 <p>
1046 Gets the time the bookmark for <em class="parameter"><code>uri</code></em> was last visited.
1047 </p>
1048 <p>
1049 In the event the URI cannot be found, -1 is returned and
1050 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
1051 </p>
1052 <div class="variablelist"><table border="0">
1053 <col align="left" valign="top">
1054 <tbody>
1055 <tr>
1056 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1057 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1058 </td>
1059 </tr>
1060 <tr>
1061 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1062 <td>a valid URI</td>
1063 </tr>
1064 <tr>
1065 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1066 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1067 </td>
1068 </tr>
1069 <tr>
1070 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1071 <td>a timestamp.</td>
1072 </tr>
1073 </tbody>
1074 </table></div>
1075 <p class="since">Since 2.12</p>
1076 </div>
1077 <hr>
1078 <div class="refsect2">
1079 <a name="g-bookmark-file-get-groups"></a><h3>g_bookmark_file_get_groups ()</h3>
1080 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> **            g_bookmark_file_get_groups          (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1081                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1082                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
1083                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1084 <p>
1085 Retrieves the list of group names of the bookmark for <em class="parameter"><code>uri</code></em>.
1086 </p>
1087 <p>
1088 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> is returned and
1089 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
1090 </p>
1091 <p>
1092 The returned array is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> terminated, so <em class="parameter"><code>length</code></em> may optionally
1093 be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>.
1094 </p>
1095 <div class="variablelist"><table border="0">
1096 <col align="left" valign="top">
1097 <tbody>
1098 <tr>
1099 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1100 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1101 </td>
1102 </tr>
1103 <tr>
1104 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1105 <td>a valid URI</td>
1106 </tr>
1107 <tr>
1108 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
1109 <td>return location for the length of the returned string, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1110 </td>
1111 </tr>
1112 <tr>
1113 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1114 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1115 </td>
1116 </tr>
1117 <tr>
1118 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1119 <td>a newly allocated <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of group names.
1120 Use <a class="link" href="glib-String-Utility-Functions.html#g-strfreev" title="g_strfreev ()"><code class="function">g_strfreev()</code></a> to free it.</td>
1121 </tr>
1122 </tbody>
1123 </table></div>
1124 <p class="since">Since 2.12</p>
1125 </div>
1126 <hr>
1127 <div class="refsect2">
1128 <a name="g-bookmark-file-get-applications"></a><h3>g_bookmark_file_get_applications ()</h3>
1129 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="returnvalue">gchar</span></a> **            g_bookmark_file_get_applications    (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1130                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1131                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> *length</code></em>,
1132                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1133 <p>
1134 Retrieves the names of the applications that have registered the
1135 bookmark for <em class="parameter"><code>uri</code></em>.
1136 </p>
1137 <p>
1138 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> is returned and
1139 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
1140 </p>
1141 <div class="variablelist"><table border="0">
1142 <col align="left" valign="top">
1143 <tbody>
1144 <tr>
1145 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1146 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1147 </td>
1148 </tr>
1149 <tr>
1150 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1151 <td>a valid URI</td>
1152 </tr>
1153 <tr>
1154 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
1155 <td>return location of the length of the returned list, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1156 </td>
1157 </tr>
1158 <tr>
1159 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1160 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1161 </td>
1162 </tr>
1163 <tr>
1164 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1165 <td>a newly allocated <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>-terminated array of strings.
1166 Use <a class="link" href="glib-String-Utility-Functions.html#g-strfreev" title="g_strfreev ()"><code class="function">g_strfreev()</code></a> to free it.</td>
1167 </tr>
1168 </tbody>
1169 </table></div>
1170 <p class="since">Since 2.12</p>
1171 </div>
1172 <hr>
1173 <div class="refsect2">
1174 <a name="g-bookmark-file-get-app-info"></a><h3>g_bookmark_file_get_app_info ()</h3>
1175 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_get_app_info        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1176                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1177                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
1178                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **exec</code></em>,
1179                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#guint" title="guint"><span class="type">guint</span></a> *count</code></em>,
1180                                                          <em class="parameter"><code><span class="type">time_t</span> *stamp</code></em>,
1181                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1182 <p>
1183 Gets the registration informations of <em class="parameter"><code>app_name</code></em> for the bookmark for
1184 <em class="parameter"><code>uri</code></em>.  See <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-app-info" title="g_bookmark_file_set_app_info ()"><code class="function">g_bookmark_file_set_app_info()</code></a> for more informations about
1185 the returned data.
1186 </p>
1187 <p>
1188 The string returned in <em class="parameter"><code>app_exec</code></em> must be freed.
1189 </p>
1190 <p>
1191 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
1192 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.  In the
1193 event that no application with name <em class="parameter"><code>app_name</code></em> has registered a bookmark
1194 for <em class="parameter"><code>uri</code></em>,  <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and error is set to
1195 <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-APP-NOT-REGISTERED:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED</span></a>. In the event that unquoting
1196 the command line fails, an error of the <a class="link" href="glib-Shell-related-Utilities.html#G-SHELL-ERROR:CAPS" title="G_SHELL_ERROR"><span class="type">G_SHELL_ERROR</span></a> domain is
1197 set and <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned.
1198 </p>
1199 <div class="variablelist"><table border="0">
1200 <col align="left" valign="top">
1201 <tbody>
1202 <tr>
1203 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1204 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1205 </td>
1206 </tr>
1207 <tr>
1208 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1209 <td>a valid URI</td>
1210 </tr>
1211 <tr>
1212 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
1213 <td>an application's name</td>
1214 </tr>
1215 <tr>
1216 <td><p><span class="term"><em class="parameter"><code>exec</code></em> :</span></p></td>
1217 <td>location for the command line of the application, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1218 </td>
1219 </tr>
1220 <tr>
1221 <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
1222 <td>return location for the registration count, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1223 </td>
1224 </tr>
1225 <tr>
1226 <td><p><span class="term"><em class="parameter"><code>stamp</code></em> :</span></p></td>
1227 <td>return location for the last registration time, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1228 </td>
1229 </tr>
1230 <tr>
1231 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1232 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1233 </td>
1234 </tr>
1235 <tr>
1236 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1237 <td>
1238 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> on success.</td>
1239 </tr>
1240 </tbody>
1241 </table></div>
1242 <p class="since">Since 2.12</p>
1243 </div>
1244 <hr>
1245 <div class="refsect2">
1246 <a name="g-bookmark-file-set-title"></a><h3>g_bookmark_file_set_title ()</h3>
1247 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_set_title           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1248                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1249                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *title</code></em>);</pre>
1250 <p>
1251 Sets <em class="parameter"><code>title</code></em> as the title of the bookmark for <em class="parameter"><code>uri</code></em> inside the
1252 bookmark file <em class="parameter"><code>bookmark</code></em>.
1253 </p>
1254 <p>
1255 If <em class="parameter"><code>uri</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, the title of <em class="parameter"><code>bookmark</code></em> is set.
1256 </p>
1257 <p>
1258 If a bookmark for <em class="parameter"><code>uri</code></em> cannot be found then it is created.
1259 </p>
1260 <div class="variablelist"><table border="0">
1261 <col align="left" valign="top">
1262 <tbody>
1263 <tr>
1264 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1265 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1266 </td>
1267 </tr>
1268 <tr>
1269 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1270 <td>a valid URI or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1271 </td>
1272 </tr>
1273 <tr>
1274 <td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
1275 <td>a UTF-8 encoded string</td>
1276 </tr>
1277 </tbody>
1278 </table></div>
1279 <p class="since">Since 2.12</p>
1280 </div>
1281 <hr>
1282 <div class="refsect2">
1283 <a name="g-bookmark-file-set-description"></a><h3>g_bookmark_file_set_description ()</h3>
1284 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_set_description     (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1285                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1286                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *description</code></em>);</pre>
1287 <p>
1288 Sets <em class="parameter"><code>description</code></em> as the description of the bookmark for <em class="parameter"><code>uri</code></em>.
1289 </p>
1290 <p>
1291 If <em class="parameter"><code>uri</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, the description of <em class="parameter"><code>bookmark</code></em> is set.
1292 </p>
1293 <p>
1294 If a bookmark for <em class="parameter"><code>uri</code></em> cannot be found then it is created.
1295 </p>
1296 <div class="variablelist"><table border="0">
1297 <col align="left" valign="top">
1298 <tbody>
1299 <tr>
1300 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1301 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1302 </td>
1303 </tr>
1304 <tr>
1305 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1306 <td>a valid URI or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1307 </td>
1308 </tr>
1309 <tr>
1310 <td><p><span class="term"><em class="parameter"><code>description</code></em> :</span></p></td>
1311 <td>a string</td>
1312 </tr>
1313 </tbody>
1314 </table></div>
1315 <p class="since">Since 2.12</p>
1316 </div>
1317 <hr>
1318 <div class="refsect2">
1319 <a name="g-bookmark-file-set-mime-type"></a><h3>g_bookmark_file_set_mime_type ()</h3>
1320 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_set_mime_type       (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1321                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1322                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *mime_type</code></em>);</pre>
1323 <p>
1324 Sets <em class="parameter"><code>mime_type</code></em> as the MIME type of the bookmark for <em class="parameter"><code>uri</code></em>.
1325 </p>
1326 <p>
1327 If a bookmark for <em class="parameter"><code>uri</code></em> cannot be found then it is created.
1328 </p>
1329 <div class="variablelist"><table border="0">
1330 <col align="left" valign="top">
1331 <tbody>
1332 <tr>
1333 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1334 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1335 </td>
1336 </tr>
1337 <tr>
1338 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1339 <td>a valid URI</td>
1340 </tr>
1341 <tr>
1342 <td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
1343 <td>a MIME type</td>
1344 </tr>
1345 </tbody>
1346 </table></div>
1347 <p class="since">Since 2.12</p>
1348 </div>
1349 <hr>
1350 <div class="refsect2">
1351 <a name="g-bookmark-file-set-is-private"></a><h3>g_bookmark_file_set_is_private ()</h3>
1352 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_set_is_private      (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1353                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1354                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="type">gboolean</span></a> is_private</code></em>);</pre>
1355 <p>
1356 Sets the private flag of the bookmark for <em class="parameter"><code>uri</code></em>.
1357 </p>
1358 <p>
1359 If a bookmark for <em class="parameter"><code>uri</code></em> cannot be found then it is created.
1360 </p>
1361 <div class="variablelist"><table border="0">
1362 <col align="left" valign="top">
1363 <tbody>
1364 <tr>
1365 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1366 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1367 </td>
1368 </tr>
1369 <tr>
1370 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1371 <td>a valid URI</td>
1372 </tr>
1373 <tr>
1374 <td><p><span class="term"><em class="parameter"><code>is_private</code></em> :</span></p></td>
1375 <td>
1376 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the bookmark should be marked as private</td>
1377 </tr>
1378 </tbody>
1379 </table></div>
1380 <p class="since">Since 2.12</p>
1381 </div>
1382 <hr>
1383 <div class="refsect2">
1384 <a name="g-bookmark-file-set-icon"></a><h3>g_bookmark_file_set_icon ()</h3>
1385 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_set_icon            (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1386                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1387                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *href</code></em>,
1388                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *mime_type</code></em>);</pre>
1389 <p>
1390 Sets the icon for the bookmark for <em class="parameter"><code>uri</code></em>. If <em class="parameter"><code>href</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, unsets
1391 the currently set icon. <em class="parameter"><code>href</code></em> can either be a full URL for the icon
1392 file or the icon name following the Icon Naming specification.
1393 </p>
1394 <p>
1395 If no bookmark for <em class="parameter"><code>uri</code></em> is found one is created.
1396 </p>
1397 <div class="variablelist"><table border="0">
1398 <col align="left" valign="top">
1399 <tbody>
1400 <tr>
1401 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1402 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1403 </td>
1404 </tr>
1405 <tr>
1406 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1407 <td>a valid URI</td>
1408 </tr>
1409 <tr>
1410 <td><p><span class="term"><em class="parameter"><code>href</code></em> :</span></p></td>
1411 <td>the URI of the icon for the bookmark, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1412 </td>
1413 </tr>
1414 <tr>
1415 <td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
1416 <td>the MIME type of the icon for the bookmark</td>
1417 </tr>
1418 </tbody>
1419 </table></div>
1420 <p class="since">Since 2.12</p>
1421 </div>
1422 <hr>
1423 <div class="refsect2">
1424 <a name="g-bookmark-file-set-added"></a><h3>g_bookmark_file_set_added ()</h3>
1425 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_set_added           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1426                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1427                                                          <em class="parameter"><code><span class="type">time_t</span> added</code></em>);</pre>
1428 <p>
1429 Sets the time the bookmark for <em class="parameter"><code>uri</code></em> was added into <em class="parameter"><code>bookmark</code></em>.
1430 </p>
1431 <p>
1432 If no bookmark for <em class="parameter"><code>uri</code></em> is found then it is created.
1433 </p>
1434 <div class="variablelist"><table border="0">
1435 <col align="left" valign="top">
1436 <tbody>
1437 <tr>
1438 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1439 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1440 </td>
1441 </tr>
1442 <tr>
1443 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1444 <td>a valid URI</td>
1445 </tr>
1446 <tr>
1447 <td><p><span class="term"><em class="parameter"><code>added</code></em> :</span></p></td>
1448 <td>a timestamp or -1 to use the current time</td>
1449 </tr>
1450 </tbody>
1451 </table></div>
1452 <p class="since">Since 2.12</p>
1453 </div>
1454 <hr>
1455 <div class="refsect2">
1456 <a name="g-bookmark-file-set-groups"></a><h3>g_bookmark_file_set_groups ()</h3>
1457 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_set_groups          (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1458                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1459                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> **groups</code></em>,
1460                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gsize" title="gsize"><span class="type">gsize</span></a> length</code></em>);</pre>
1461 <p>
1462 Sets a list of group names for the item with URI <em class="parameter"><code>uri</code></em>.  Each previously
1463 set group name list is removed.
1464 </p>
1465 <p>
1466 If <em class="parameter"><code>uri</code></em> cannot be found then an item for it is created.
1467 </p>
1468 <div class="variablelist"><table border="0">
1469 <col align="left" valign="top">
1470 <tbody>
1471 <tr>
1472 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1473 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1474 </td>
1475 </tr>
1476 <tr>
1477 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1478 <td>an item's URI</td>
1479 </tr>
1480 <tr>
1481 <td><p><span class="term"><em class="parameter"><code>groups</code></em> :</span></p></td>
1482 <td>an array of group names, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a> to remove all groups. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1483 </td>
1484 </tr>
1485 <tr>
1486 <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
1487 <td>number of group name values in <em class="parameter"><code>groups</code></em>
1488 </td>
1489 </tr>
1490 </tbody>
1491 </table></div>
1492 <p class="since">Since 2.12</p>
1493 </div>
1494 <hr>
1495 <div class="refsect2">
1496 <a name="g-bookmark-file-set-modified"></a><h3>g_bookmark_file_set_modified ()</h3>
1497 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_set_modified        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1498                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1499                                                          <em class="parameter"><code><span class="type">time_t</span> modified</code></em>);</pre>
1500 <p>
1501 Sets the last time the bookmark for <em class="parameter"><code>uri</code></em> was last modified.
1502 </p>
1503 <p>
1504 If no bookmark for <em class="parameter"><code>uri</code></em> is found then it is created.
1505 </p>
1506 <p>
1507 The "modified" time should only be set when the bookmark's meta-data
1508 was actually changed.  Every function of <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> that
1509 modifies a bookmark also changes the modification time, except for
1510 <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-visited" title="g_bookmark_file_set_visited ()"><code class="function">g_bookmark_file_set_visited()</code></a>.
1511 </p>
1512 <div class="variablelist"><table border="0">
1513 <col align="left" valign="top">
1514 <tbody>
1515 <tr>
1516 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1517 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1518 </td>
1519 </tr>
1520 <tr>
1521 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1522 <td>a valid URI</td>
1523 </tr>
1524 <tr>
1525 <td><p><span class="term"><em class="parameter"><code>modified</code></em> :</span></p></td>
1526 <td>a timestamp or -1 to use the current time</td>
1527 </tr>
1528 </tbody>
1529 </table></div>
1530 <p class="since">Since 2.12</p>
1531 </div>
1532 <hr>
1533 <div class="refsect2">
1534 <a name="g-bookmark-file-set-visited"></a><h3>g_bookmark_file_set_visited ()</h3>
1535 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_set_visited         (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1536                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1537                                                          <em class="parameter"><code><span class="type">time_t</span> visited</code></em>);</pre>
1538 <p>
1539 Sets the time the bookmark for <em class="parameter"><code>uri</code></em> was last visited.
1540 </p>
1541 <p>
1542 If no bookmark for <em class="parameter"><code>uri</code></em> is found then it is created.
1543 </p>
1544 <p>
1545 The "visited" time should only be set if the bookmark was launched, 
1546 either using the command line retrieved by <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-app-info" title="g_bookmark_file_get_app_info ()"><code class="function">g_bookmark_file_get_app_info()</code></a>
1547 or by the default application for the bookmark's MIME type, retrieved
1548 using <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-mime-type" title="g_bookmark_file_get_mime_type ()"><code class="function">g_bookmark_file_get_mime_type()</code></a>.  Changing the "visited" time
1549 does not affect the "modified" time.
1550 </p>
1551 <div class="variablelist"><table border="0">
1552 <col align="left" valign="top">
1553 <tbody>
1554 <tr>
1555 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1556 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1557 </td>
1558 </tr>
1559 <tr>
1560 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1561 <td>a valid URI</td>
1562 </tr>
1563 <tr>
1564 <td><p><span class="term"><em class="parameter"><code>visited</code></em> :</span></p></td>
1565 <td>a timestamp or -1 to use the current time</td>
1566 </tr>
1567 </tbody>
1568 </table></div>
1569 <p class="since">Since 2.12</p>
1570 </div>
1571 <hr>
1572 <div class="refsect2">
1573 <a name="g-bookmark-file-set-app-info"></a><h3>g_bookmark_file_set_app_info ()</h3>
1574 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_set_app_info        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1575                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1576                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
1577                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *exec</code></em>,
1578                                                          <em class="parameter"><code><a class="link" href="glib-Basic-Types.html#gint" title="gint"><span class="type">gint</span></a> count</code></em>,
1579                                                          <em class="parameter"><code><span class="type">time_t</span> stamp</code></em>,
1580                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1581 <p>
1582 Sets the meta-data of application <em class="parameter"><code>name</code></em> inside the list of
1583 applications that have registered a bookmark for <em class="parameter"><code>uri</code></em> inside
1584 <em class="parameter"><code>bookmark</code></em>.
1585 </p>
1586 <p>
1587 You should rarely use this function; use <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-application" title="g_bookmark_file_add_application ()"><code class="function">g_bookmark_file_add_application()</code></a>
1588 and <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-application" title="g_bookmark_file_remove_application ()"><code class="function">g_bookmark_file_remove_application()</code></a> instead.
1589 </p>
1590 <p>
1591 <em class="parameter"><code>name</code></em> can be any UTF-8 encoded string used to identify an
1592 application.
1593 <em class="parameter"><code>exec</code></em> can have one of these two modifiers: "%f", which will
1594 be expanded as the local file name retrieved from the bookmark's
1595 URI; "%u", which will be expanded as the bookmark's URI.
1596 The expansion is done automatically when retrieving the stored
1597 command line using the <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-app-info" title="g_bookmark_file_get_app_info ()"><code class="function">g_bookmark_file_get_app_info()</code></a> function.
1598 <em class="parameter"><code>count</code></em> is the number of times the application has registered the
1599 bookmark; if is &lt; 0, the current registration count will be increased
1600 by one, if is 0, the application with <em class="parameter"><code>name</code></em> will be removed from
1601 the list of registered applications.
1602 <em class="parameter"><code>stamp</code></em> is the Unix time of the last registration; if it is -1, the
1603 current time will be used.
1604 </p>
1605 <p>
1606 If you try to remove an application by setting its registration count to
1607 zero, and no bookmark for <em class="parameter"><code>uri</code></em> is found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
1608 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>; similarly,
1609 in the event that no application <em class="parameter"><code>name</code></em> has registered a bookmark
1610 for <em class="parameter"><code>uri</code></em>,  <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and error is set to
1611 <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-APP-NOT-REGISTERED:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED</span></a>.  Otherwise, if no bookmark
1612 for <em class="parameter"><code>uri</code></em> is found, one is created.
1613 </p>
1614 <div class="variablelist"><table border="0">
1615 <col align="left" valign="top">
1616 <tbody>
1617 <tr>
1618 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1619 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1620 </td>
1621 </tr>
1622 <tr>
1623 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1624 <td>a valid URI</td>
1625 </tr>
1626 <tr>
1627 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
1628 <td>an application's name</td>
1629 </tr>
1630 <tr>
1631 <td><p><span class="term"><em class="parameter"><code>exec</code></em> :</span></p></td>
1632 <td>an application's command line</td>
1633 </tr>
1634 <tr>
1635 <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
1636 <td>the number of registrations done for this application</td>
1637 </tr>
1638 <tr>
1639 <td><p><span class="term"><em class="parameter"><code>stamp</code></em> :</span></p></td>
1640 <td>the time of the last registration for this application</td>
1641 </tr>
1642 <tr>
1643 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1644 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1645 </td>
1646 </tr>
1647 <tr>
1648 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1649 <td>
1650 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the application's meta-data was successfully
1651 changed.</td>
1652 </tr>
1653 </tbody>
1654 </table></div>
1655 <p class="since">Since 2.12</p>
1656 </div>
1657 <hr>
1658 <div class="refsect2">
1659 <a name="g-bookmark-file-add-group"></a><h3>g_bookmark_file_add_group ()</h3>
1660 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_add_group           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1661                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1662                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *group</code></em>);</pre>
1663 <p>
1664 Adds <em class="parameter"><code>group</code></em> to the list of groups to which the bookmark for <em class="parameter"><code>uri</code></em>
1665 belongs to.
1666 </p>
1667 <p>
1668 If no bookmark for <em class="parameter"><code>uri</code></em> is found then it is created.
1669 </p>
1670 <div class="variablelist"><table border="0">
1671 <col align="left" valign="top">
1672 <tbody>
1673 <tr>
1674 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1675 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1676 </td>
1677 </tr>
1678 <tr>
1679 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1680 <td>a valid URI</td>
1681 </tr>
1682 <tr>
1683 <td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td>
1684 <td>the group name to be added</td>
1685 </tr>
1686 </tbody>
1687 </table></div>
1688 <p class="since">Since 2.12</p>
1689 </div>
1690 <hr>
1691 <div class="refsect2">
1692 <a name="g-bookmark-file-add-application"></a><h3>g_bookmark_file_add_application ()</h3>
1693 <pre class="programlisting"><span class="returnvalue">void</span>                g_bookmark_file_add_application     (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1694                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1695                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
1696                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *exec</code></em>);</pre>
1697 <p>
1698 Adds the application with <em class="parameter"><code>name</code></em> and <em class="parameter"><code>exec</code></em> to the list of
1699 applications that have registered a bookmark for <em class="parameter"><code>uri</code></em> into
1700 <em class="parameter"><code>bookmark</code></em>.
1701 </p>
1702 <p>
1703 Every bookmark inside a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> must have at least an
1704 application registered.  Each application must provide a name, a
1705 command line useful for launching the bookmark, the number of times
1706 the bookmark has been registered by the application and the last
1707 time the application registered this bookmark.
1708 </p>
1709 <p>
1710 If <em class="parameter"><code>name</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, the name of the application will be the
1711 same returned by <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-application-name" title="g_get_application_name ()"><code class="function">g_get_application_name()</code></a>; if <em class="parameter"><code>exec</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, the
1712 command line will be a composition of the program name as
1713 returned by <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-prgname" title="g_get_prgname ()"><code class="function">g_get_prgname()</code></a> and the "%u" modifier, which will be
1714 expanded to the bookmark's URI.
1715 </p>
1716 <p>
1717 This function will automatically take care of updating the
1718 registrations count and timestamping in case an application
1719 with the same <em class="parameter"><code>name</code></em> had already registered a bookmark for
1720 <em class="parameter"><code>uri</code></em> inside <em class="parameter"><code>bookmark</code></em>.
1721 </p>
1722 <p>
1723 If no bookmark for <em class="parameter"><code>uri</code></em> is found, one is created.
1724 </p>
1725 <div class="variablelist"><table border="0">
1726 <col align="left" valign="top">
1727 <tbody>
1728 <tr>
1729 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1730 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1731 </td>
1732 </tr>
1733 <tr>
1734 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1735 <td>a valid URI</td>
1736 </tr>
1737 <tr>
1738 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
1739 <td>the name of the application registering the bookmark
1740 or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1741 </td>
1742 </tr>
1743 <tr>
1744 <td><p><span class="term"><em class="parameter"><code>exec</code></em> :</span></p></td>
1745 <td>command line to be used to launch the bookmark or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1746 </td>
1747 </tr>
1748 </tbody>
1749 </table></div>
1750 <p class="since">Since 2.12</p>
1751 </div>
1752 <hr>
1753 <div class="refsect2">
1754 <a name="g-bookmark-file-remove-group"></a><h3>g_bookmark_file_remove_group ()</h3>
1755 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_remove_group        (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1756                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1757                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *group</code></em>,
1758                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1759 <p>
1760 Removes <em class="parameter"><code>group</code></em> from the list of groups to which the bookmark
1761 for <em class="parameter"><code>uri</code></em> belongs to.
1762 </p>
1763 <p>
1764 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
1765 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
1766 In the event no group was defined, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
1767 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-INVALID-VALUE:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_INVALID_VALUE</span></a>.
1768 </p>
1769 <div class="variablelist"><table border="0">
1770 <col align="left" valign="top">
1771 <tbody>
1772 <tr>
1773 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1774 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1775 </td>
1776 </tr>
1777 <tr>
1778 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1779 <td>a valid URI</td>
1780 </tr>
1781 <tr>
1782 <td><p><span class="term"><em class="parameter"><code>group</code></em> :</span></p></td>
1783 <td>the group name to be removed</td>
1784 </tr>
1785 <tr>
1786 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1787 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1788 </td>
1789 </tr>
1790 <tr>
1791 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1792 <td>
1793 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if <em class="parameter"><code>group</code></em> was successfully removed.</td>
1794 </tr>
1795 </tbody>
1796 </table></div>
1797 <p class="since">Since 2.12</p>
1798 </div>
1799 <hr>
1800 <div class="refsect2">
1801 <a name="g-bookmark-file-remove-application"></a><h3>g_bookmark_file_remove_application ()</h3>
1802 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_remove_application  (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1803                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1804                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *name</code></em>,
1805                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1806 <p>
1807 Removes application registered with <em class="parameter"><code>name</code></em> from the list of applications
1808 that have registered a bookmark for <em class="parameter"><code>uri</code></em> inside <em class="parameter"><code>bookmark</code></em>.
1809 </p>
1810 <p>
1811 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
1812 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
1813 In the event that no application with name <em class="parameter"><code>app_name</code></em> has registered
1814 a bookmark for <em class="parameter"><code>uri</code></em>,  <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and error is set to
1815 <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-APP-NOT-REGISTERED:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED</span></a>.
1816 </p>
1817 <div class="variablelist"><table border="0">
1818 <col align="left" valign="top">
1819 <tbody>
1820 <tr>
1821 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1822 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1823 </td>
1824 </tr>
1825 <tr>
1826 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1827 <td>a valid URI</td>
1828 </tr>
1829 <tr>
1830 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
1831 <td>the name of the application</td>
1832 </tr>
1833 <tr>
1834 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1835 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1836 </td>
1837 </tr>
1838 <tr>
1839 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1840 <td>
1841 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the application was successfully removed.</td>
1842 </tr>
1843 </tbody>
1844 </table></div>
1845 <p class="since">Since 2.12</p>
1846 </div>
1847 <hr>
1848 <div class="refsect2">
1849 <a name="g-bookmark-file-remove-item"></a><h3>g_bookmark_file_remove_item ()</h3>
1850 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_remove_item         (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1851                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *uri</code></em>,
1852                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1853 <p>
1854 Removes the bookmark for <em class="parameter"><code>uri</code></em> from the bookmark file <em class="parameter"><code>bookmark</code></em>.
1855 </p>
1856 <div class="variablelist"><table border="0">
1857 <col align="left" valign="top">
1858 <tbody>
1859 <tr>
1860 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1861 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1862 </td>
1863 </tr>
1864 <tr>
1865 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
1866 <td>a valid URI</td>
1867 </tr>
1868 <tr>
1869 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1870 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1871 </td>
1872 </tr>
1873 <tr>
1874 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1875 <td>
1876 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the bookmark was removed successfully.</td>
1877 </tr>
1878 </tbody>
1879 </table></div>
1880 <p class="since">Since 2.12</p>
1881 </div>
1882 <hr>
1883 <div class="refsect2">
1884 <a name="g-bookmark-file-move-item"></a><h3>g_bookmark_file_move_item ()</h3>
1885 <pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean" title="gboolean"><span class="returnvalue">gboolean</span></a>            g_bookmark_file_move_item           (<em class="parameter"><code><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a> *bookmark</code></em>,
1886                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *old_uri</code></em>,
1887                                                          <em class="parameter"><code>const <a class="link" href="glib-Basic-Types.html#gchar" title="gchar"><span class="type">gchar</span></a> *new_uri</code></em>,
1888                                                          <em class="parameter"><code><a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> **error</code></em>);</pre>
1889 <p>
1890 Changes the URI of a bookmark item from <em class="parameter"><code>old_uri</code></em> to <em class="parameter"><code>new_uri</code></em>.  Any
1891 existing bookmark for <em class="parameter"><code>new_uri</code></em> will be overwritten.  If <em class="parameter"><code>new_uri</code></em> is
1892 <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>, then the bookmark is removed.
1893 </p>
1894 <p>
1895 In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS" title="FALSE"><code class="literal">FALSE</code></a> is returned and
1896 <em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
1897 </p>
1898 <div class="variablelist"><table border="0">
1899 <col align="left" valign="top">
1900 <tbody>
1901 <tr>
1902 <td><p><span class="term"><em class="parameter"><code>bookmark</code></em> :</span></p></td>
1903 <td>a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile" title="GBookmarkFile"><span class="type">GBookmarkFile</span></a>
1904 </td>
1905 </tr>
1906 <tr>
1907 <td><p><span class="term"><em class="parameter"><code>old_uri</code></em> :</span></p></td>
1908 <td>a valid URI</td>
1909 </tr>
1910 <tr>
1911 <td><p><span class="term"><em class="parameter"><code>new_uri</code></em> :</span></p></td>
1912 <td>a valid URI, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1913 </td>
1914 </tr>
1915 <tr>
1916 <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
1917 <td>return location for a <a class="link" href="glib-Error-Reporting.html#GError" title="struct GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS" title="NULL"><code class="literal">NULL</code></a>
1918 </td>
1919 </tr>
1920 <tr>
1921 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1922 <td>
1923 <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a> if the URI was successfully changed</td>
1924 </tr>
1925 </tbody>
1926 </table></div>
1927 <p class="since">Since 2.12</p>
1928 </div>
1929 </div>
1930 </div>
1931 <div class="footer">
1932 <hr>
1933           Generated by GTK-Doc V1.18</div>
1934 </body>
1935 </html>