/usr/include/gsound-context.h is in libgsound-dev 1.0.2-1ubuntu1.
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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | /* gsound-context.h
*
* Copyright (C) 2013 Tristan Brindle <t.c.brindle@gmail.com>
*
* This file is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This file is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GSOUND_CONTEXT_H
#define GSOUND_CONTEXT_H
#include <gio/gio.h>
#include "gsound-attr.h"
G_BEGIN_DECLS
#define GSOUND_TYPE_CONTEXT (gsound_context_get_type ())
#define GSOUND_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSOUND_TYPE_CONTEXT, GSoundContext))
#define GSOUND_CONTEXT_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GSOUND_TYPE_CONTEXT, GSoundContextClass))
#define GSOUND_IS_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSOUND_TYPE_CONTEXT))
#define GSOUND_IS_CONTEXT_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), GSOUND_TYPE_CONTEXT))
#define GSOUND_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSOUND_TYPE_CONTEXT, GSoundContextClass))
typedef struct _GSoundContext GSoundContext;
typedef struct _GSoundContextClass GSoundContextClass;
/**
* GSoundContext:
* ca: the wrapped context
*
* Wrapper for ca_context.
*/
#define GSOUND_ERROR (gsound_error_quark())
GQuark gsound_error_quark(void);
typedef enum
{
GSOUND_ERROR_NOTSUPPORTED = -1,
GSOUND_ERROR_INVALID = -2,
GSOUND_ERROR_STATE = -3,
GSOUND_ERROR_OOM = -4,
GSOUND_ERROR_NODRIVER = -5,
GSOUND_ERROR_SYSTEM = -6,
GSOUND_ERROR_CORRUPT = -7,
GSOUND_ERROR_TOOBIG = -8,
GSOUND_ERROR_NOTFOUND = -9,
GSOUND_ERROR_DESTROYED = -10,
GSOUND_ERROR_CANCELED = -11,
GSOUND_ERROR_NOTAVAILABLE = -12,
GSOUND_ERROR_ACCESS = -13,
GSOUND_ERROR_IO = -14,
GSOUND_ERROR_INTERNAL = -15,
GSOUND_ERROR_DISABLED = -16,
GSOUND_ERROR_FORKED = -17,
GSOUND_ERROR_DISCONNECTED = -18
} GSoundError;
GType gsound_context_get_type (void);
GSoundContext *gsound_context_new (GCancellable *cancellable,
GError **error);
gboolean gsound_context_open (GSoundContext *context,
GError **error);
gboolean gsound_context_set_attributes (GSoundContext *context,
GError **error,
...) G_GNUC_NULL_TERMINATED;
gboolean gsound_context_set_attributesv (GSoundContext *context,
GHashTable *attrs,
GError **error);
gboolean gsound_context_set_driver (GSoundContext *context,
const char *driver,
GError **error);
gboolean gsound_context_play_simple (GSoundContext *context,
GCancellable *cancellable,
GError **error,
...) G_GNUC_NULL_TERMINATED;
gboolean gsound_context_play_simplev (GSoundContext *context,
GHashTable *attrs,
GCancellable *cancellable,
GError **error);
void gsound_context_play_full (GSoundContext *context,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data,
...) G_GNUC_NULL_TERMINATED;
void gsound_context_play_fullv (GSoundContext *context,
GHashTable *attrs,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
gboolean gsound_context_play_full_finish (GSoundContext *context,
GAsyncResult *result,
GError **error);
gboolean gsound_context_cache (GSoundContext *context,
GError **error,
...) G_GNUC_NULL_TERMINATED;
gboolean gsound_context_cachev (GSoundContext *context,
GHashTable *attrs,
GError **error);
G_END_DECLS
#endif /* GSOUND_CONTEXT_H */
|