Canorus  0.0
seqpriv.h
Go to the documentation of this file.
1 /*
2  * File: seqpriv.h
3  *
4  * Copyright (C) 1999-2003 Steve Ratcliffe
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  *
16  * ---------
17  * This file is a set of interfaces to provide a little
18  * higher level view of the sequencer. It is mainly experimental
19  * to investigate new approaches. If successful they will be proposed
20  * as additions/replacements to the existing seq lib.
21  *
22  *
23  *
24  */
25 
26 struct seq_context {
27  snd_seq_t *handle; /* The snd_seq handle to /dev/snd/seq */
28  int client;/* The client associated with this context */
29  int queue; /* The queue to use for all operations */
30  snd_seq_addr_t source; /* Source for events */
31  GArray *destlist; /* Destination list */
32 #define ctxndest destlist->len
33 #define ctxdest destlist->data
34 
35  char timer_started; /* True if timer is running */
36  int port_count; /* Ports allocated */
37 
38  struct seq_context *main; /* Pointer to the main context */
39  GSList *ctlist; /* Context list if a main context */
40 };
41 
seq_context::source
snd_seq_addr_t source
Definition: seqpriv.h:30
_GSList
Definition: glib.h:812
seq_context::destlist
GArray * destlist
Definition: seqpriv.h:31
_GArray
Definition: glib.h:824
seq_context::queue
int queue
Definition: seqpriv.h:29
seq_context::client
int client
Definition: seqpriv.h:28
seq_context
Definition: seqpriv.h:26
seq_context::handle
snd_seq_t * handle
Definition: seqpriv.h:27
seq_context::port_count
int port_count
Definition: seqpriv.h:36
seq_context::main
struct seq_context * main
Definition: seqpriv.h:38
seq_context::ctlist
GSList * ctlist
Definition: seqpriv.h:39
seq_context::timer_started
char timer_started
Definition: seqpriv.h:35