File: rack.h

package info (click to toggle)
zynjacku 6-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,440 kB
  • sloc: sh: 10,430; ansic: 8,133; python: 3,250; makefile: 118
file content (85 lines) | stat: -rw-r--r-- 2,678 bytes parent folder | download | duplicates (2)
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
/* -*- Mode: C ; c-basic-offset: 2 -*- */
/*****************************************************************************
 *
 *   This file is part of zynjacku
 *
 *   Copyright (C) 2006,2007,2008,2009 Nedko Arnaudov <nedko@arnaudov.name>
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; version 2 of the License
 *
 *   This program 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 General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 *****************************************************************************/

#ifndef RACK_H__512BF192_2626_4759_839B_47B7780A971B__INCLUDED
#define RACK_H__512BF192_2626_4759_839B_47B7780A971B__INCLUDED

G_BEGIN_DECLS

#define ZYNJACKU_RACK_TYPE (zynjacku_rack_get_type())
#define ZYNJACKU_RACK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ZYNJACKU_RACK_TYPE, ZynjackuRack))
#define ZYNJACKU_RACK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ZYNJACKU_RACK_TYPE, ZynjackuRackClass))
#define ZYNJACKU_IS_RACK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ZYNJACKU_RACK_TYPE))
#define ZYNJACKU_IS_RACK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ZYNJACKU_RACK_TYPE))
#define ZYNJACKU_RACK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ZYNJACKU_RACK_TYPE, ZynjackuRackClass))

#define ZYNJACKU_TYPE_RACK ZYNJACKU_RACK_TYPE

typedef struct _ZynjackuRack ZynjackuRack;
typedef struct _ZynjackuRackClass ZynjackuRackClass;

struct _ZynjackuRack {
  GObject parent;
  /* instance members */
};

struct _ZynjackuRackClass {
  GObjectClass parent;
  /* class members */
};

/* used by ZYNJACKU_RACK_TYPE */
GType zynjacku_rack_get_type();

gboolean
zynjacku_rack_start_jack(
  ZynjackuRack * obj_ptr,
  const char * client_name);

void
zynjacku_rack_stop_jack(
  ZynjackuRack * obj_ptr);

guint
zynjacku_rack_get_sample_rate(
  ZynjackuRack * rack_obj_ptr);

void
zynjacku_rack_ui_run(
  ZynjackuRack * rack_obj_ptr);

const gchar *
zynjacku_rack_get_version();

const gchar *
zynjacku_rack_get_supported_feature(
  ZynjackuRack * rack_obj_ptr,
  guint index);

gboolean
zynjacku_rack_construct_plugin(
  ZynjackuRack * rack_obj_ptr,
  ZynjackuPlugin * plugin_obj_ptr);

G_END_DECLS

#endif /* #ifndef RACK_H__512BF192_2626_4759_839B_47B7780A971B__INCLUDED */