📄 glib-bookmark-file-parser.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>Bookmark file parser</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="GLib Reference Manual"><link rel="up" href="glib-utilities.html" title="GLib Utilities"><link rel="prev" href="glib-Key-value-file-parser.html" title="Key-value file parser"><link rel="next" href="glib-Testing.html" title="Testing"><meta name="generator" content="GTK-Doc V1.9 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="chapter" href="glib.html" title="GLib Overview"><link rel="chapter" href="glib-fundamentals.html" title="GLib Fundamentals"><link rel="chapter" href="glib-core.html" title="GLib Core Application Support"><link rel="chapter" href="glib-utilities.html" title="GLib Utilities"><link rel="chapter" href="glib-data-types.html" title="GLib Data Types"><link rel="chapter" href="tools.html" title="GLib Tools"><link rel="index" href="ix01.html" title="Index"><link rel="index" href="ix02.html" title="Index of deprecated symbols"><link rel="index" href="ix03.html" title="Index of new symbols in 2.2"><link rel="index" href="ix04.html" title="Index of new symbols in 2.4"><link rel="index" href="ix05.html" title="Index of new symbols in 2.6"><link rel="index" href="ix06.html" title="Index of new symbols in 2.8"><link rel="index" href="ix07.html" title="Index of new symbols in 2.10"><link rel="index" href="ix08.html" title="Index of new symbols in 2.12"><link rel="index" href="ix09.html" title="Index of new symbols in 2.14"><link rel="index" href="ix10.html" title="Index of new symbols in 2.16"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><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><td><a accesskey="u" href="glib-utilities.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GLib Reference Manual</th><td><a accesskey="n" href="glib-Testing.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr><tr><td colspan="5" class="shortcuts"><nobr><a href="#id3196332" class="shortcut">Top</a>  |  <a href="#id3198004" class="shortcut">Description</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="glib-Bookmark-file-parser"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><a name="id3196332"></a><span class="refentrytitle">Bookmark file parser</span></h2><p>Bookmark file parser — parses files containing bookmarks</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">#include <glib.h> <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a>;#define <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR:CAPS">G_BOOKMARK_FILE_ERROR</a>enum <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError">GBookmarkFileError</a>;<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a>* <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-new">g_bookmark_file_new</a> (void);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-free">g_bookmark_file_free</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-file">g_bookmark_file_load_from_file</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *filename, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data">g_bookmark_file_load_from_data</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *data, <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> length, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data-dirs">g_bookmark_file_load_from_data_dirs</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *file, <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **full_path, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>* <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-data">g_bookmark_file_to_data</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-file">g_bookmark_file_to_file</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *filename, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-has-item">g_bookmark_file_has_item</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-has-group">g_bookmark_file_has_group</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *group, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-has-application">g_bookmark_file_has_application</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gint">gint</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-size">g_bookmark_file_get_size</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark);<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>** <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-uris">g_bookmark_file_get_uris</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length);<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>* <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-title">g_bookmark_file_get_title</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>* <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-description">g_bookmark_file_get_description</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>* <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-mime-type">g_bookmark_file_get_mime_type</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-is-private">g_bookmark_file_get_is_private</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-icon">g_bookmark_file_get_icon</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **href, <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **mime_type, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);time_t <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-added">g_bookmark_file_get_added</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);time_t <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-modified">g_bookmark_file_get_modified</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);time_t <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-visited">g_bookmark_file_get_visited</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>** <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-groups">g_bookmark_file_get_groups</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>** <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-applications">g_bookmark_file_get_applications</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-app-info">g_bookmark_file_get_app_info</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name, <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **exec, <a class="link" href="glib-Basic-Types.html#guint">guint</a> *count, time_t *stamp, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-title">g_bookmark_file_set_title</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *title);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-description">g_bookmark_file_set_description</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *description);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-mime-type">g_bookmark_file_set_mime_type</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *mime_type);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-is-private">g_bookmark_file_set_is_private</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> is_private);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-icon">g_bookmark_file_set_icon</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *href, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *mime_type);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-added">g_bookmark_file_set_added</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, time_t added);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-groups">g_bookmark_file_set_groups</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **groups, <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> length);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-modified">g_bookmark_file_set_modified</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, time_t modified);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-visited">g_bookmark_file_set_visited</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, time_t visited);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-app-info">g_bookmark_file_set_app_info</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *exec, <a class="link" href="glib-Basic-Types.html#gint">gint</a> count, time_t stamp, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-group">g_bookmark_file_add_group</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *group);void <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-application">g_bookmark_file_add_application</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *exec);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-group">g_bookmark_file_remove_group</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *group, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-application">g_bookmark_file_remove_application</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-item">g_bookmark_file_remove_item</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri, <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-move-item">g_bookmark_file_move_item</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *old_uri, const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *new_uri,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -