1/* Copyright (C) 2005-2018 Joël Krähemann
2 * Permission is granted to copy, distribute and/or modify this document
3 * under the terms of the GNU Free Documentation License, Version 1.3
4 * or any later version published by the Free Software Foundation;
5 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
6 * A copy of the license is included in the section entitled "GNU
7 * Free Documentation License".
8 */
9
10#include <glib.h>
11#include <glib-object.h>
12
13#include <ags/libags.h>
14
15AgsApplicationContext *application_context;
16AgsFile *file;
17
18GError *error;
19
20static const gchar *filename = "my_file.xml";
21
22application_context = ags_audio_application_context_new();
23
24file = g_object_new(AGS_TYPE_FILE,
25                    "application-context", application_context,
26                    "filename", filename,
27                    NULL);
28error = NULL;
29ags_file_open(file,
30              &error);
31
32ags_file_read(file);
33ags_file_close(file);
34
35ags_thread_start(application_context->main_loop);
36