/usr/share/doc/libags-audio-doc/html/ch02s02.html is in libags-audio-doc 1.4.24-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Reading XML files</title><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="Advanced Gtk+ Sequencer"><link rel="up" href="ch02.html" title="Chapter 2. XML Input/Output"><link rel="prev" href="ch02.html" title="Chapter 2. XML Input/Output"><link rel="next" href="ch03.html" title="Chapter 3. Multi-/Super-threaded tree"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp53"></a>Reading XML files</h2></div></div></div>
<p>
Normally you instantiate a new application context to be used to load objects into. Create
a file object by passing the application context and filename. Then open it and read the
content. At the end you close the file descriptor. To use your application start the
main loop.
</p>
<div class="example"><a name="idp27"></a><p class="title"><b>Example 2.2. Reading XML</b></p><div class="example-contents">
<pre class="programlisting">
#include <glib.h>
#include <glib-object.h>
#include <ags/libags.h>
AgsApplicationContext *application_context;
AgsFile *file;
GError *error;
static const gchar *filename = "my_file.xml\0";
application_context = ags_audio_application_context_new();
file = g_object_new(AGS_TYPE_FILE,
"application-context\0", application_context,
"filename\0", filename,
NULL);
error = NULL;
ags_file_open(file,
&error);
ags_file_read(file);
ags_file_close(file);
ags_thread_start(application_context->main_loop);
</pre>
</div></div><br class="example-break">
</div></body></html>
|